Add padding for search field and contacts nicknames in default theme
This commit is contained in:
parent
89caef6905
commit
124decc34a
4 changed files with 11 additions and 7 deletions
|
@ -187,12 +187,9 @@ class Toxygen:
|
||||||
# application color scheme
|
# application color scheme
|
||||||
for theme in settings.built_in_themes().keys():
|
for theme in settings.built_in_themes().keys():
|
||||||
if settings['theme'] == theme:
|
if settings['theme'] == theme:
|
||||||
try:
|
with open(curr_directory() + settings.built_in_themes()[theme]) as fl:
|
||||||
with open(curr_directory() + settings.built_in_themes()[theme]) as fl:
|
style = fl.read()
|
||||||
style = fl.read()
|
app.setStyleSheet(style)
|
||||||
app.setStyleSheet(style)
|
|
||||||
except IsADirectoryError:
|
|
||||||
app.setStyleSheet('') # for default style
|
|
||||||
|
|
||||||
lang = Settings.supported_languages()[settings['language']]
|
lang = Settings.supported_languages()[settings['language']]
|
||||||
translator = QtCore.QTranslator()
|
translator = QtCore.QTranslator()
|
||||||
|
|
|
@ -156,7 +156,7 @@ class Settings(dict, Singleton):
|
||||||
def built_in_themes():
|
def built_in_themes():
|
||||||
return {
|
return {
|
||||||
'dark': '/styles/dark_style.qss',
|
'dark': '/styles/dark_style.qss',
|
||||||
'default': ''
|
'default': '/styles/style.qss'
|
||||||
}
|
}
|
||||||
|
|
||||||
def upgrade(self):
|
def upgrade(self):
|
||||||
|
|
|
@ -43,4 +43,7 @@
|
||||||
<qresource prefix="qdarkstyle">
|
<qresource prefix="qdarkstyle">
|
||||||
<file>dark_style.qss</file>
|
<file>dark_style.qss</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
<qresource prefix="defaultstyle">
|
||||||
|
<file>style.qss</file>
|
||||||
|
</qresource>
|
||||||
</RCC>
|
</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 a new issue