Add padding for search field and contacts nicknames in default theme

This commit is contained in:
SHooZ 2017-05-03 19:42:37 +03:00
parent 89caef6905
commit 124decc34a
4 changed files with 11 additions and 7 deletions

View file

@ -187,12 +187,9 @@ class Toxygen:
# application color scheme
for theme in settings.built_in_themes().keys():
if settings['theme'] == theme:
try:
with open(curr_directory() + settings.built_in_themes()[theme]) as fl:
style = fl.read()
app.setStyleSheet(style)
except IsADirectoryError:
app.setStyleSheet('') # for default style
with open(curr_directory() + settings.built_in_themes()[theme]) as fl:
style = fl.read()
app.setStyleSheet(style)
lang = Settings.supported_languages()[settings['language']]
translator = QtCore.QTranslator()

View file

@ -156,7 +156,7 @@ class Settings(dict, Singleton):
def built_in_themes():
return {
'dark': '/styles/dark_style.qss',
'default': ''
'default': '/styles/style.qss'
}
def upgrade(self):

View file

@ -43,4 +43,7 @@
<qresource prefix="qdarkstyle">
<file>dark_style.qss</file>
</qresource>
<qresource prefix="defaultstyle">
<file>style.qss</file>
</qresource>
</RCC>

4
toxygen/styles/style.qss Normal file
View file

@ -0,0 +1,4 @@
#contact_name
{
padding-left: 22px;
}