Auto start

Auto connect
Dns settings
ui fixes
This commit is contained in:
pokamest 2021-02-24 21:58:32 +03:00
parent ad643bf76e
commit c63990f720
14 changed files with 801 additions and 99 deletions

View file

@ -60,31 +60,26 @@ QLineEdit:disabled {
QCheckBox {
color: rgb(200, 200, 200);
color: #181922;
font: 63 11pt "Open Sans";
/*font: 11pt "JMH Cthulhumbus";*/
background: transparent;
}
QCheckBox::indicator {
min-height: 20px;
min-width: 20px;
border-image: url(:/images/controls/checkbox_unchecked.png) 0 0 0 0 stretch stretch;
border-image: url(:/images/controls/check_off.png) 0 0 0 0 stretch stretch;
}
QCheckBox::indicator:unchecked {
border-image: url(:/images/controls/checkbox_unchecked.png) 0 0 0 0 stretch stretch;
}
QCheckBox::indicator:unchecked:hover {
border-image: url(:/images/controls/checkbox_hover.png);
border-image: url(:/images/controls/check_off.png) 0 0 0 0 stretch stretch;
}
QCheckBox::indicator:checked {
border-image: url(:/images/controls/checkbox_checked.png);
border-image: url(:/images/controls/check_on.png);
}
@ -259,7 +254,7 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<widget class="QWidget" name="page_start">
<widget class="QLabel" name="label_23">
@ -383,6 +378,10 @@ line-height: 21px;
background: #100A44;
border-radius: 4px;
}
QPushButton:hover {
background: #211966;
}
</string>
</property>
<property name="text">
@ -634,7 +633,9 @@ line-height: 21px;
background: #100A44;
border-radius: 4px;
}
</string>
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>Connect</string>
@ -952,6 +953,10 @@ line-height: 21px;
QPushButton:!enabled {
background: #484952;
}
QPushButton:hover {
background: #282932;
}</string>
</property>
<property name="text">
@ -1119,9 +1124,9 @@ color: #181922;
<property name="geometry">
<rect>
<x>0</x>
<y>300</y>
<y>290</y>
<width>381</width>
<height>51</height>
<height>61</height>
</rect>
</property>
<property name="text">
@ -1243,10 +1248,10 @@ QPushButton:hover {
</property>
<property name="geometry">
<rect>
<x>19</x>
<x>20</x>
<y>50</y>
<width>341</width>
<height>41</height>
<width>340</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
@ -1255,11 +1260,8 @@ font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
/* or 125% */
/* black */
color: #181922;</string>
color: #100A44;
</string>
</property>
<property name="text">
<string>These sites will be opened using VPN</string>
@ -1338,10 +1340,15 @@ border: 1px solid #A7A7A7;
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">background: #100A44;
<string notr="true">QPushButton {
background: #100A44;
border-radius: 4px;
font-size: 24px;
color: white</string>
color: white
}
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>+</string>
@ -1434,7 +1441,7 @@ QPushButton:hover {
<x>10</x>
<y>40</y>
<width>360</width>
<height>1</height>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
@ -1448,7 +1455,7 @@ QPushButton:hover {
<property name="geometry">
<rect>
<x>30</x>
<y>60</y>
<y>180</y>
<width>330</width>
<height>30</height>
</rect>
@ -1456,6 +1463,9 @@ QPushButton:hover {
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Reinstall server, clear server</string>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
@ -1474,16 +1484,16 @@ background-repeat: no-repeat;
background-position: left center;</string>
</property>
<property name="text">
<string>Server settings</string>
<string>Server management</string>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<y>160</y>
<width>360</width>
<height>1</height>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
@ -1500,7 +1510,7 @@ background-repeat: no-repeat;
<property name="geometry">
<rect>
<x>30</x>
<y>130</y>
<y>240</y>
<width>330</width>
<height>30</height>
</rect>
@ -1533,9 +1543,9 @@ background-repeat: no-repeat;
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<y>220</y>
<width>360</width>
<height>1</height>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
@ -1551,7 +1561,7 @@ background-repeat: no-repeat;
<x>10</x>
<y>620</y>
<width>360</width>
<height>1</height>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
@ -1568,7 +1578,7 @@ background-repeat: no-repeat;
<property name="geometry">
<rect>
<x>30</x>
<y>570</y>
<y>580</y>
<width>330</width>
<height>30</height>
</rect>
@ -1600,9 +1610,9 @@ background-repeat: no-repeat;
<property name="geometry">
<rect>
<x>10</x>
<y>550</y>
<y>560</y>
<width>360</width>
<height>1</height>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
@ -1612,6 +1622,463 @@ background-repeat: no-repeat;
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_app_settings">
<property name="geometry">
<rect>
<x>30</x>
<y>60</y>
<width>330</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Auto start, Auto connect</string>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
Text-align:left;
padding-left: 30px;
/* black */
color: #100A44;
background-image: url(:/images/settings.png);
background-repeat: no-repeat;
background-position: left center;</string>
</property>
<property name="text">
<string>App settings</string>
</property>
</widget>
<widget class="QLabel" name="label_19">
<property name="geometry">
<rect>
<x>10</x>
<y>280</y>
<width>360</width>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/images/line.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_21">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>360</width>
<height>10</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/images/line.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_network_settings">
<property name="geometry">
<rect>
<x>30</x>
<y>120</y>
<width>330</width>
<height>30</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Dns, Kill Switch</string>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
Text-align:left;
padding-left: 30px;
/* black */
color: #100A44;
background-image: url(:/images/settings.png);
background-repeat: no-repeat;
background-position: left center;</string>
</property>
<property name="text">
<string>Network settings</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_app_settings">
<widget class="QPushButton" name="pushButton_back_from_app_settings">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>26</width>
<height>20</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
image: url(:/images/arrow_right.png);
image-position: left;
text-align: left;
/*font: 17pt &quot;Ancient&quot;;*/
padding: 1px;
image: url(:/images/arrow_left.png);
}
QPushButton:hover {
padding: 0px;
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_22">
<property name="geometry">
<rect>
<x>110</x>
<y>590</y>
<width>150</width>
<height>22</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/images/AmneziaVPN.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_autostart">
<property name="geometry">
<rect>
<x>30</x>
<y>100</y>
<width>211</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Auto start</string>
</property>
</widget>
<widget class="QLabel" name="label_27">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>340</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
color: #100A44;
</string>
</property>
<property name="text">
<string>Application Settings</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_autoconnect">
<property name="geometry">
<rect>
<x>30</x>
<y>140</y>
<width>211</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Auto connect</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_check_for_updates">
<property name="geometry">
<rect>
<x>30</x>
<y>220</y>
<width>321</width>
<height>41</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
color:rgb(212, 212, 212);
border-radius: 4px;
font-family: Lato;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 21px;
background: #100A44;
border-radius: 4px;
}
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>Check for updates</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_network_settings">
<widget class="QPushButton" name="pushButton_back_from_network_settings">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>26</width>
<height>20</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
image: url(:/images/arrow_right.png);
image-position: left;
text-align: left;
/*font: 17pt &quot;Ancient&quot;;*/
padding: 1px;
image: url(:/images/arrow_left.png);
}
QPushButton:hover {
padding: 0px;
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_26">
<property name="geometry">
<rect>
<x>120</x>
<y>600</y>
<width>150</width>
<height>22</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/images/AmneziaVPN.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_network_settings_dns1">
<property name="geometry">
<rect>
<x>40</x>
<y>120</y>
<width>271</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background: #F4F4F4;
/* grey */
border: 1px solid #A7A7A7;
color: #333333;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_28">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>340</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
color: #100A44;
</string>
</property>
<property name="text">
<string>DNS Servers</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_network_settings_dns2">
<property name="geometry">
<rect>
<x>40</x>
<y>200</y>
<width>271</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background: #F4F4F4;
/* grey */
border: 1px solid #A7A7A7;
color: #333333;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_network_settings_resetdns1">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>320</x>
<y>130</y>
<width>18</width>
<height>18</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Reset to default value</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
image: url(:/images/reload.png);
padding:1px;
}
QPushButton:hover {
padding:0px;
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_network_settings_resetdns2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>320</x>
<y>210</y>
<width>18</width>
<height>18</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Reset to default value</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
image: url(:/images/reload.png);
padding:1px;
}
QPushButton:hover {
padding:0px;
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_new_server_wait_info_2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>40</x>
<y>95</y>
<width>291</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Primary DNS server</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label_new_server_wait_info_3">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>40</x>
<y>175</y>
<width>291</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Secondray DNS server</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_server_settings">
<widget class="QLabel" name="label_server_settings_wait_info">
@ -1633,31 +2100,6 @@ background-repeat: no-repeat;
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>40</x>
<y>100</y>
<width>171</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 150%;
/* or 24px */
/* text */
color: #333333;</string>
</property>
<property name="text">
<string>You connected to</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_server_settings_reinstall">
<property name="geometry">
<rect>
@ -1684,7 +2126,9 @@ line-height: 21px;
background: #100A44;
border-radius: 4px;
}
</string>
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>Reinstall Amnezia server</string>
@ -1725,17 +2169,17 @@ QPushButton:hover {
<widget class="QLabel" name="label_16">
<property name="geometry">
<rect>
<x>10</x>
<x>20</x>
<y>40</y>
<width>361</width>
<height>71</height>
<width>340</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 24px;
font-size: 20px;
line-height: 25px;
color: #100A44;
</string>
@ -1836,7 +2280,9 @@ line-height: 21px;
background: #100A44;
border-radius: 4px;
}
</string>
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>Clear server from Amnezia software</string>
@ -1868,7 +2314,9 @@ line-height: 21px;
background: #100A44;
border-radius: 4px;
}
</string>
QPushButton:hover {
background: #211966;
}</string>
</property>
<property name="text">
<string>Forget this server</string>
@ -1877,9 +2325,9 @@ border-radius: 4px;
<widget class="QLabel" name="label_server_settings_server">
<property name="geometry">
<rect>
<x>40</x>
<y>130</y>
<width>321</width>
<x>20</x>
<y>80</y>
<width>341</width>
<height>41</height>
</rect>
</property>
@ -1893,9 +2341,11 @@ color: #333333;</string>
<property name="text">
<string>root@yourserver.org</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<zorder>label_server_settings_wait_info</zorder>
<zorder>label_13</zorder>
<zorder>pushButton_back_from_server_settings</zorder>
<zorder>label_16</zorder>
<zorder>progressBar_server_settings_reinstall</zorder>
@ -1949,8 +2399,8 @@ QPushButton:hover {
<rect>
<x>20</x>
<y>40</y>
<width>341</width>
<height>41</height>
<width>340</width>
<height>40</height>
</rect>
</property>
<property name="styleSheet">
@ -1959,17 +2409,14 @@ font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 25px;
/* or 125% */
/* black */
color: #181922;</string>
color: #100A44;
</string>
</property>
<property name="text">
<string>Connection string</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
@ -2049,7 +2496,9 @@ font-size: 16px;
line-height: 21px;
}
</string>
QPushButton:hover {
background: #282932;
}</string>
</property>
<property name="text">
<string>Copy</string>
@ -2065,21 +2514,18 @@ line-height: 21px;
</rect>
</property>
<property name="styleSheet">
<string notr="true">
font-family: Lato;
<string notr="true">font-family: Lato;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 150%;
/* or 24px */
/* grey */
color: #A7A7A7;
color: #181922;
</string>
</property>
<property name="text">
<string>Anyone who logs in with this code will have the same rights to use the VPN as you. To create a new code, change your login and / or password for connection in your server settings.</string>
<string>Anyone who logs in with this code will have the same rights to use the VPN as you. This code includes your server credentials!
Provide this code only to TRUSTED users.</string>
</property>
<property name="alignment">
<set>Qt::AlignJustify|Qt::AlignVCenter</set>