mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
112f4be382
commit
f5ac32000a
16
theme.py
16
theme.py
|
@ -366,16 +366,12 @@ def _setThemeFromDict(baseDir: str, name: str,
|
||||||
with open(filename, 'w+') as cssfile:
|
with open(filename, 'w+') as cssfile:
|
||||||
cssfile.write(css)
|
cssfile.write(css)
|
||||||
|
|
||||||
if bgParams.get('login'):
|
screenName = (
|
||||||
_setBackgroundFormat(baseDir, name, 'login', bgParams['login'])
|
'login', 'follow', 'options', 'search', 'welcome'
|
||||||
if bgParams.get('follow'):
|
)
|
||||||
_setBackgroundFormat(baseDir, name, 'follow', bgParams['follow'])
|
for s in screenName:
|
||||||
if bgParams.get('options'):
|
if bgParams.get(s):
|
||||||
_setBackgroundFormat(baseDir, name, 'options', bgParams['options'])
|
_setBackgroundFormat(baseDir, name, s, bgParams[s])
|
||||||
if bgParams.get('search'):
|
|
||||||
_setBackgroundFormat(baseDir, name, 'search', bgParams['search'])
|
|
||||||
if bgParams.get('welcome'):
|
|
||||||
_setBackgroundFormat(baseDir, name, 'welcome', bgParams['welcome'])
|
|
||||||
|
|
||||||
|
|
||||||
def _setBackgroundFormat(baseDir: str, name: str,
|
def _setBackgroundFormat(baseDir: str, name: str,
|
||||||
|
|
Loading…
Reference in New Issue