Add padding for search field and contacts nicknames in default theme
This commit is contained in:
parent
89caef6905
commit
124decc34a
@ -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()
|
||||
|
@ -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):
|
||||
|
@ -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
4
toxygen/styles/style.qss
Normal file
@ -0,0 +1,4 @@
|
||||
#contact_name
|
||||
{
|
||||
padding-left: 22px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user