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()