dark theme added
@ -7,6 +7,7 @@ from mainscreen import MainWindow
|
||||
from profile import ProfileHelper, tox_factory
|
||||
from callbacks import init_callbacks
|
||||
from util import curr_directory, get_style
|
||||
import styles.style
|
||||
|
||||
|
||||
class Toxygen(object):
|
||||
@ -59,6 +60,10 @@ 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()
|
||||
|
BIN
src/styles/rc/Hmovetoolbar.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
src/styles/rc/Hsepartoolbar.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
src/styles/rc/Vmovetoolbar.png
Normal file
After Width: | Height: | Size: 228 B |
BIN
src/styles/rc/Vsepartoolbar.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
src/styles/rc/branch_closed-on.png
Normal file
After Width: | Height: | Size: 147 B |
BIN
src/styles/rc/branch_closed.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
src/styles/rc/branch_open-on.png
Normal file
After Width: | Height: | Size: 150 B |
BIN
src/styles/rc/branch_open.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
src/styles/rc/checkbox_checked.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
src/styles/rc/checkbox_checked_disabled.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
src/styles/rc/checkbox_checked_focus.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
src/styles/rc/checkbox_indeterminate.png
Normal file
After Width: | Height: | Size: 493 B |
BIN
src/styles/rc/checkbox_indeterminate_disabled.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
src/styles/rc/checkbox_indeterminate_focus.png
Normal file
After Width: | Height: | Size: 514 B |
BIN
src/styles/rc/checkbox_unchecked.png
Normal file
After Width: | Height: | Size: 464 B |
BIN
src/styles/rc/checkbox_unchecked_disabled.png
Normal file
After Width: | Height: | Size: 464 B |
BIN
src/styles/rc/checkbox_unchecked_focus.png
Normal file
After Width: | Height: | Size: 483 B |
BIN
src/styles/rc/close-hover.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
src/styles/rc/close-pressed.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
src/styles/rc/close.png
Normal file
After Width: | Height: | Size: 586 B |
BIN
src/styles/rc/down_arrow.png
Normal file
After Width: | Height: | Size: 165 B |
BIN
src/styles/rc/down_arrow_disabled.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
src/styles/rc/left_arrow.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
src/styles/rc/left_arrow_disabled.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
src/styles/rc/radio_checked.png
Normal file
After Width: | Height: | Size: 940 B |
BIN
src/styles/rc/radio_checked_disabled.png
Normal file
After Width: | Height: | Size: 972 B |
BIN
src/styles/rc/radio_checked_focus.png
Normal file
After Width: | Height: | Size: 933 B |
BIN
src/styles/rc/radio_unchecked.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
src/styles/rc/radio_unchecked_disabled.png
Normal file
After Width: | Height: | Size: 760 B |
BIN
src/styles/rc/radio_unchecked_focus.png
Normal file
After Width: | Height: | Size: 724 B |
BIN
src/styles/rc/right_arrow.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
src/styles/rc/right_arrow_disabled.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
src/styles/rc/sizegrip.png
Normal file
After Width: | Height: | Size: 129 B |
BIN
src/styles/rc/stylesheet-branch-end.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
src/styles/rc/stylesheet-branch-more.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
src/styles/rc/stylesheet-vline.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
src/styles/rc/transparent.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
src/styles/rc/undock.png
Normal file
After Width: | Height: | Size: 578 B |
BIN
src/styles/rc/up_arrow.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
src/styles/rc/up_arrow_disabled.png
Normal file
After Width: | Height: | Size: 159 B |
21
src/styles/style.py
Normal file
46
src/styles/style.qrc
Normal file
@ -0,0 +1,46 @@
|
||||
<RCC>
|
||||
<qresource prefix="qss_icons">
|
||||
<file>rc/up_arrow_disabled.png</file>
|
||||
<file>rc/Hmovetoolbar.png</file>
|
||||
<file>rc/stylesheet-branch-end.png</file>
|
||||
<file>rc/branch_closed-on.png</file>
|
||||
<file>rc/stylesheet-vline.png</file>
|
||||
<file>rc/branch_closed.png</file>
|
||||
<file>rc/branch_open-on.png</file>
|
||||
<file>rc/transparent.png</file>
|
||||
<file>rc/right_arrow_disabled.png</file>
|
||||
<file>rc/sizegrip.png</file>
|
||||
<file>rc/close.png</file>
|
||||
<file>rc/close-hover.png</file>
|
||||
<file>rc/close-pressed.png</file>
|
||||
<file>rc/down_arrow.png</file>
|
||||
<file>rc/Vmovetoolbar.png</file>
|
||||
<file>rc/left_arrow.png</file>
|
||||
<file>rc/stylesheet-branch-more.png</file>
|
||||
<file>rc/up_arrow.png</file>
|
||||
<file>rc/right_arrow.png</file>
|
||||
<file>rc/left_arrow_disabled.png</file>
|
||||
<file>rc/Hsepartoolbar.png</file>
|
||||
<file>rc/branch_open.png</file>
|
||||
<file>rc/Vsepartoolbar.png</file>
|
||||
<file>rc/down_arrow_disabled.png</file>
|
||||
<file>rc/undock.png</file>
|
||||
<file>rc/checkbox_checked_disabled.png</file>
|
||||
<file>rc/checkbox_checked_focus.png</file>
|
||||
<file>rc/checkbox_checked.png</file>
|
||||
<file>rc/checkbox_indeterminate.png</file>
|
||||
<file>rc/checkbox_indeterminate_focus.png</file>
|
||||
<file>rc/checkbox_unchecked_disabled.png</file>
|
||||
<file>rc/checkbox_unchecked_focus.png</file>
|
||||
<file>rc/checkbox_unchecked.png</file>
|
||||
<file>rc/radio_checked_disabled.png</file>
|
||||
<file>rc/radio_checked_focus.png</file>
|
||||
<file>rc/radio_checked.png</file>
|
||||
<file>rc/radio_unchecked_disabled.png</file>
|
||||
<file>rc/radio_unchecked_focus.png</file>
|
||||
<file>rc/radio_unchecked.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="qdarkstyle">
|
||||
<file>style.qss</file>
|
||||
</qresource>
|
||||
</RCC>
|