From c5116415731a4da13cc932c7d48d641088be02df Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 21 Mar 2016 17:23:34 +0300 Subject: [PATCH] login screen dark theme, buttons images --- src/images/file.png | Bin 0 -> 885 bytes src/images/screenshot.png | Bin 0 -> 481 bytes src/images/send.png | Bin 0 -> 1129 bytes src/main.py | 10 ++++++---- src/mainscreen.py | 15 ++++++++++++--- 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100755 src/images/file.png create mode 100755 src/images/screenshot.png create mode 100755 src/images/send.png diff --git a/src/images/file.png b/src/images/file.png new file mode 100755 index 0000000000000000000000000000000000000000..3041b01466d1acefe5abd293551d49a29bdf0511 GIT binary patch literal 885 zcmV-*1B(2KP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;`$Lr$ZV1zJHQA|XD6_Fx1-PiZh>pa}iJF)>il zw`ee^2_ zH2C%j?#8>#z_zB^4uqXuZ)5Au#t-kE;QKqVavx1JK^0FX-ml`VHlgbJv&r`lv2il6 zO5%MCKj&od=Wwk_pW%t%s;H&5U_2+V8yWizV|^pA+x^<@D>z;HEWL77<c{>mD_EthV2T3k!N>R(kCh3mFS4rv9K_nPfYlOV_$+*ZSIYo) zF%{dvd-y80c}i;4!On_*sxR@(!JQ5Iz8EL&r3T=+fIWvn^yAS;`+DMOHqQ$Y8L!V8 z*=7Zsi_ar1YgL0djiEekY+;*Fb-k9g1d$aiuLNZrm-7TWiZeO5lXdtZPa8WIKI!SO zw|YLhAnFu7Q8<}QZ%5f6_fz?0JW2J(9DQ*OeI0d)w07c+>F{H9T}UL#r=!G>)=;wo zN)cd5%}9kVe_=~xJvs?iNo?auJRjk*PJ>+t1Ha#`+S(uOOqM6ucz~5IP%Lc(`~L*1 zO(kZ^S+z7+()Y~79UV&D`X^hl*?6P_V7+k%{|j2hkyM9m9RM4`1Bv(1E(6YEO{xO( zP!vSY77X+tHb>zlX;LEvRg|wU3eg^p}DD&?f$_T+53KvLi zG^!)yTt)U zz5;yA9a0yg88@_Sm(cBe&o{s7;PV+C-|u_b9S}Fo3Da1-{nZWc;!584BEd7R9W#)s z-Io8*aruTd9Xq_3ch6nwwP*U5JdrOGrFCBKfADs-pXwobYQ) z(YC$*;W^%n=Qi>`@67ahWS?g^d-3|nmxf+a7jPU%usD@I_aG*=R;uhFnGH9xvXa literal 0 HcmV?d00001 diff --git a/src/images/send.png b/src/images/send.png new file mode 100755 index 0000000000000000000000000000000000000000..a2aeed88e6914db82d5c9117e7bd2d6c77397834 GIT binary patch literal 1129 zcmV-v1eW`WP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZchgdKG$=)As zIs;GVTs6zWwNq@szcF5d+XjeN@4-!YJSW=^S;4}~aeMN-4Ab#XKPJ09bbLMaSKOPQ z*j$*sSc+q?C}gW}A>PH&Jy2{j-ir9J3lnf%jW|*-e#6z_iW19wsAzJNR$FmIjm@6N zJ&E&A!aF$SAQXEn%x&udI&gFN+vt*euEq8EF*(3zafc#X-eG6f&4zRE0a}vieLg-Z zsn~2hP(Zd?9=wW+@pp+mKf(nG*-=bMp**oyZnpVHaz5VQO*;58{#BocCkjJs5^{ zII)X8m*mprlyI}jx;xrBOghCRd={6Cl<;h{*I3h*kez~u3+7D6wJ~mwld4r2&&iQJ z7oT@awxmg?7#%)6E0HbDnOBORlJR*Fpo%ap8E-6jzb*dbg+z8kxZ0R91j-T?mD!8A zFTE;)*)IhVI8Ar8FLJeY+88NuWg?pwG2pPW$~X5Q|1HK*k+wR*x2Hw)oLr#%nl4J! zFKc|H-{V8BPh^iq#6KwXgfQHN9rJ!JG z2pUPaDCbTrkd2LBcWe7S;UaunAp1GePoJQ#2`@}aP52XYv2(Bz-Vjw;6|GUI7z~6f zHRL1e@YTvdB%F28l1Y0}jZT++voTJpA%8ON-xWMnW6p%erH=X=0A;aRXMcN3$#o+m znosO?dn?%hD2s7;ucYEFc&XRP_K``$**ZImZ^o&0)zBXwx31$FsZgT{!{NA9KS5@Q zA!}sa+FuE`4;i*iDjB{R5@b6t!qyDW3?YkNKFoCMaHP&Q&HokdVEFBi)tFmNOLyz+ vEzMJLf?a)*t{RWwI%GEK>~=nZz5fjWtKiK}j#UA+00000NkvXXu0mjfPW%cN literal 0 HcmV?d00001 diff --git a/src/main.py b/src/main.py index 03cb464..6721aa5 100644 --- a/src/main.py +++ b/src/main.py @@ -22,6 +22,12 @@ class Toxygen(object): """ app = QtGui.QApplication(sys.argv) app.setWindowIcon(QtGui.QIcon(curr_directory() + '/images/icon.png')) + + # application color scheme + with open(curr_directory() + '/styles/style.qss') as fl: + dark_style = fl.read() + app.setStyleSheet(dark_style) + auto_profile = Settings.get_auto_profile() if not auto_profile: # show login screen if default profile not found @@ -60,10 +66,6 @@ class Toxygen(object): self.tray = QtGui.QSystemTrayIcon(QtGui.QIcon(curr_directory() + '/images/icon.png')) self.tray.setContextMenu(QtGui.QMenu()) self.tray.show() - # application color scheme - with open(curr_directory() + '/styles/style.qss') as fl: - dark_style = fl.read() - app.setStyleSheet(dark_style) self.ms = MainWindow(self.tox, self.reset) self.ms.show() diff --git a/src/mainscreen.py b/src/mainscreen.py index 7c56f2f..3093972 100644 --- a/src/mainscreen.py +++ b/src/mainscreen.py @@ -102,9 +102,18 @@ class MainWindow(QtGui.QMainWindow): self.sendMessageButton.setGeometry(QtCore.QRect(550, 10, 60, 110)) self.sendMessageButton.setObjectName("sendMessageButton") self.sendMessageButton.clicked.connect(self.send_message) - self.screenshotButton.setText(QtGui.QApplication.translate("Form", "Screenshot", None, QtGui.QApplication.UnicodeUTF8)) - self.fileTransferButton.setText(QtGui.QApplication.translate("Form", "File", None, QtGui.QApplication.UnicodeUTF8)) - self.sendMessageButton.setText(QtGui.QApplication.translate("Form", "Send", None, QtGui.QApplication.UnicodeUTF8)) + pixmap = QtGui.QPixmap(curr_directory() + '/images/send.png') + icon = QtGui.QIcon(pixmap) + self.sendMessageButton.setIcon(icon) + self.sendMessageButton.setIconSize(QtCore.QSize(50, 100)) + pixmap = QtGui.QPixmap(curr_directory() + '/images/file.png') + icon = QtGui.QIcon(pixmap) + self.fileTransferButton.setIcon(icon) + self.fileTransferButton.setIconSize(QtCore.QSize(90, 40)) + pixmap = QtGui.QPixmap(curr_directory() + '/images/screenshot.png') + icon = QtGui.QIcon(pixmap) + self.screenshotButton.setIcon(icon) + self.screenshotButton.setIconSize(QtCore.QSize(90, 40)) QtCore.QMetaObject.connectSlotsByName(Form) def setup_left_bottom(self, Form):