From d0a24eb2256604344ad928a4dbaa7d1f6942c523 Mon Sep 17 00:00:00 2001 From: pokamest Date: Wed, 25 Nov 2020 23:43:51 +0300 Subject: [PATCH] ui fixes --- client/images/AmneziaVPN.png | Bin 2263 -> 1219 bytes client/images/Line.png | Bin 136 -> 0 bytes client/images/arrow_left.png | Bin 214 -> 282 bytes client/images/connected_line.png | Bin 87 -> 0 bytes client/images/listitembg.png | Bin 318 -> 0 bytes client/images/underline.png | Bin 80 -> 0 bytes client/res.qrc | 4 - client/ui/mainwindow.ui | 479 ++++++++++++++++++------------- 8 files changed, 282 insertions(+), 201 deletions(-) delete mode 100644 client/images/Line.png delete mode 100644 client/images/connected_line.png delete mode 100644 client/images/listitembg.png delete mode 100644 client/images/underline.png diff --git a/client/images/AmneziaVPN.png b/client/images/AmneziaVPN.png index 81448fefabf67fb82b3e92c61d9d30a8f4167e9d..84c395c5b1db39a38006673edb3ee4922701b9dd 100644 GIT binary patch delta 1184 zcmV;R1Yi5t5yJ@~iBL{Q4GJ0x0000DNk~Le0001%0000M2nGNE03xwvI*}nXe*{=b zL_t(|0qvU0Z%t7Y#y{#&k4B;csb@&k$RlBbG!a9OKY&h*B>V+BG{S%(VPqoy0FMy~ zAxsE@0R!R@kAw&<)oRQ7a`x`s_uRG4+2^XZ+Wkwu+J9YVi0?#}^5NpheKb$IXoYB==(8L9 zA$p5=cnu4K_u;w09d{6u6MCWrSvB+i_$?Z78g`!xsZt7iBI6dh*h9v4f12i!GQL-| zU$h6c$q3=Z+!UR3pZ7UwvE;Jotmu6(wpDZ>7x&D?ZWC=3%{PumGu#zjM`pA0bt&6+iEb<7ma%w}f0ju?n7Q~RERBd|liH11w$O}K6=p7)J2cm3r)FU0x`SFq z9&cmuM&kEgwJq{|6MfGQ#vbg9F@DTRBR0c%VoXKC(pLuK_F!yTj{1o&GL_FtUIR+Z z9MKL;Oq0#*#0sPNU?`^%;}|^eh6EK;3VFwC4Lh^dYo`k?E`(W(e~tWU#KG)x6xp52 z388^l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&4A|_~Q z$-E+uaW=<|zf?|C3A^DpT8DXo;H}qxjKI@+>?>@wmX^Cb920v#Aab_=m7ZM%1sjP5tvQ?X-e$45jMqv28>_hThBQDwj2TOR&Jcy z@QKYa#cOeh9Ef0BBkf})m^&b)NQp^|x0C?SK{ zRL-Jc=MG&yn@Z_7KptE6os%?lEakt!T9!oAtM6=&!G)x_aDn*l$JTm eZ0UJv4wKO=<{3ZK8QOpf89ZJ6T-G@yGywpCvmtQ+ diff --git a/client/images/arrow_left.png b/client/images/arrow_left.png index 091b4097784275f40b4e1e91695ae78ef4bf93d1..3a4d149dc2d14bcd12fce876e2df8b3fb2c68ada 100644 GIT binary patch delta 239 zcmVC^&^SRKQ*duf$g4l7=fKW+oVepLRJ?D(B98GI1;82jX(!)!Ze}{y4L~D$Q-17TpQGcSjYfkA|Hs2^w2+$3~i3L zj1Z$Zg&G~1lO;5DWMQL|Xg_G9MSF5ammYbYxY*bB=3#}xaQv@@gk(Gc@@?G0Yuil$r{6ea)w002ovPDHLkV1ldoVK)E( delta 171 zcmbQmbd6E5Gr-TCmrII^fq{Y7)59eQNNa#F2OE&=`L`o?qM~Viwx^3@NCo5Diw8Ly z9C%zVI_jJ_w}tugO4ST@sSA6nI0QF+l0WnJum{71sXrqZfISgZdhAEQIOp6kaD VvxKX%AO|scy85}Sb4p-r0stffKgR$7 diff --git a/client/images/connected_line.png b/client/images/connected_line.png deleted file mode 100644 index 9ed7fd74da435fda980297d6b16e9418a8a1d0f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 87 zcmeAS@N?(olHy`uVBq!ia0vp^3xSx4gAGU;+}!gGNXdD+IEGmCCdce9dt2WYXu!oL lVDRt%|9TU_z9vRi1}6)4R?f4D_kk)IJYD@<);T3K0RV-Y7iIte diff --git a/client/images/listitembg.png b/client/images/listitembg.png deleted file mode 100644 index 4107a7ea4198c86310370c2c07b64ebfa21c81cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0y~yU@Qc(O*q(qWKAl^d7uERr;B4q#hka-HfAz2GO!%1 zPMqMh^xb}oY#&+l_B`zO`e}I+weCeeU`1zyB70m16k!+@kOO zZJUCIRlnc9Vr8iDJHmL#MMlAA&{A)sA!XR(ipWB~%KKFa~afT1&&$nIIXaB|3 V`JnpEE?~GYc)I$ztaD0e0syG5cNG8t diff --git a/client/images/underline.png b/client/images/underline.png deleted file mode 100644 index e38c37b64d37985864554762adec1cc0c6a0b235..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 80 zcmeAS@N?(olHy`uVBq!ia0y~yVAKGz89CU1WbS3-U?3&#>Eak-(VOh!?fv__0hilB e4GGp}0R{#QPbOm)&emN(B@CXfelF{r5}E)}>k#Gu diff --git a/client/res.qrc b/client/res.qrc index 667df8cd..cf0eaa83 100644 --- a/client/res.qrc +++ b/client/res.qrc @@ -1,9 +1,7 @@ images/close.png - images/listitembg.png images/settings.png - images/underline.png images/min.png images/favorites_disabled.png images/favorites_enabled.png @@ -12,7 +10,6 @@ images/controls/check_on.png images/controls/radio_off.png images/controls/radio_on.png - images/connected_line.png images/download.png images/upload.png images/controls/checkbox_hover.png @@ -33,7 +30,6 @@ fonts/Lato-Regular.ttf fonts/Lato-Thin.ttf fonts/Lato-ThinItalic.ttf - images/Line.png images/AmneziaVPN.png diff --git a/client/ui/mainwindow.ui b/client/ui/mainwindow.ui index 2cfad309..a8a1576b 100644 --- a/client/ui/mainwindow.ui +++ b/client/ui/mainwindow.ui @@ -268,56 +268,12 @@ QStackedWidget QWidget { } - - - - - 60 - 20 - 121 - 101 - - - - PointingHandCursor - - - image: url(:/images/tray/active.png); - - - - - - true - - - - - - 190 - 40 - 131 - 71 - - - - PointingHandCursor - - - image: url(:/images/AmneziaVPN.png); - - - - - - true - - - + + 10 - 150 + 40 361 71 @@ -327,7 +283,211 @@ QStackedWidget QWidget { font-style: normal; font-weight: bold; font-size: 24px; -line-height: 25px; +line-height: 25px; +color: #100A44; + + + + Подключиться к уже + созданному серверу VPN + + + Qt::AlignCenter + + + + + + 40 + 130 + 171 + 21 + + + + font-family: Lato; +font-style: normal; +font-weight: normal; +font-size: 16px; +line-height: 150%; + +/* or 24px */ + +/* text */ +color: #333333; + + + Код для подключения + + + + + + 40 + 220 + 301 + 41 + + + + background: #181922; +border-radius: 4px; + + + 24 + + + Qt::AlignCenter + + + true + + + Подключение... + + + + + + 110 + 590 + 150 + 22 + + + + image: url(:/images/AmneziaVPN.png); + + + + + + + + + 40 + 160 + 300 + 40 + + + + background: #F4F4F4; + +/* grey */ +border: 1px solid #A7A7A7; +box-sizing: border-box; +color: #333333; + + + + + + + + + 40 + 220 + 301 + 40 + + + + PointingHandCursor + + + QPushButton { + font-size: 13pt; + font: "Open Sans Semibold"; + 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; +} + + + + Подключиться + + + + + + 40 + 320 + 301 + 40 + + + + PointingHandCursor + + + QPushButton { + +font-family: Lato; +font-style: normal; +font-weight: normal; +font-size: 16px; + +color: #100A44; + +font-family: Lato; +font-style: normal; +font-weight: normal; +font-size: 16px; +line-height: 21px; + +border: 1px solid #211C4A; +border-radius: 4px; +} + + + + Настроить собственный сервер + + + + + + QLabel { +font-family: Lato; +font-style: normal; +font-weight: normal; +font-size: 16px; +color: #211C4A; +} + +QLineEdit { +padding-left: 10px; +border: 1px solid #A7A7A7; +} + + + + + 10 + 40 + 361 + 71 + + + + font-family: Lato; +font-style: normal; +font-weight: bold; +font-size: 24px; +line-height: 25px; +color: #100A44; + Подключите ваш сервер, @@ -341,7 +501,7 @@ line-height: 25px; 40 - 290 + 170 171 21 @@ -366,7 +526,7 @@ color: #333333; 40 - 370 + 255 261 21 @@ -391,7 +551,7 @@ color: #333333; 40 - 450 + 340 171 21 @@ -416,9 +576,9 @@ color: #333333; 40 - 320 - 301 - 31 + 200 + 300 + 40 @@ -437,9 +597,9 @@ color: #333333; 40 - 400 - 301 - 31 + 285 + 300 + 40 @@ -458,9 +618,9 @@ color: #333333; 40 - 480 - 301 - 31 + 370 + 300 + 40 @@ -482,7 +642,7 @@ color: #333333; 40 - 550 + 440 301 40 @@ -496,7 +656,6 @@ color: #333333; font: "Open Sans Semibold"; color:rgb(212, 212, 212); -background: #181922; border-radius: 4px; font-family: Lato; @@ -505,18 +664,20 @@ font-weight: normal; font-size: 16px; line-height: 21px; +background: #100A44; +border-radius: 4px; } - Подключить + Подключиться 50 - 230 + 120 281 16 @@ -540,11 +701,11 @@ color: #15CDCB; Где взять данные для подключения → - + 40 - 550 + 440 301 41 @@ -566,9 +727,55 @@ border-radius: 4px; Подключение... - progressBar - pushButton_amnezia_logo_2 - pushButton_amnezia_logo_3 + + + + 10 + 10 + 26 + 20 + + + + PointingHandCursor + + + QPushButton { + image: url(:/images/arrow_right.png); + image-position: left; + text-align: left; + /*font: 17pt "Ancient";*/ + + padding: 1px; + image: url(:/images/arrow_left.png); +} +QPushButton:hover { + padding: 0px; +} + + + + + + + + + + + 110 + 590 + 150 + 22 + + + + image: url(:/images/AmneziaVPN.png); + + + + + + progressBar_new_server_connection label_2 label_4 label_5 @@ -578,130 +785,8 @@ border-radius: 4px; lineEdit_new_server_password pushButton_new_server pushButton - - - - - - - - - 0 - 200 - 380 - 25 - - - - Discovering network... - - - Qt::AlignCenter - - - true - - - - - - 119 - 30 - 142 - 122 - - - - - - - Qt::AlignCenter - - - true - - - - - - 0 - 225 - 380 - 25 - - - - - - - Qt::AlignCenter - - - true - - - - - - 0 - 250 - 380 - 25 - - - - - - - Qt::AlignCenter - - - true - - - - - - 0 - 230 - 380 - 41 - - - - - - - Qt::AlignCenter - - - true - - - - - - 270 - 670 - 91 - 31 - - - - /*font: 8pt "JMH Cthulhumbus";*/ -font-size: 10px; - -color: rgb(62, 62, 62); - - - - Build v. 1.1 - 07 Oct 2020 - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - + pushButton_back_from_new_server + label_7 @@ -1070,9 +1155,9 @@ color: #181922; 10 - 0 - 381 - 25 + 10 + 28 + 20 @@ -1095,7 +1180,7 @@ QPushButton:hover { - Back +