mirror of https://gitlab.com/bashrc2/epicyon
Copy text mode banner when changing theme
parent
83e1190b0a
commit
d63aa8763f
9
theme.py
9
theme.py
|
@ -439,6 +439,15 @@ def _setThemeImages(baseDir: str, name: str) -> None:
|
|||
rightColImageFilename = \
|
||||
baseDir + '/theme/' + themeNameLower + '/right_col_image.png'
|
||||
|
||||
textModeBannerFilename = \
|
||||
baseDir + '/theme/' + themeNameLower + '/banner.txt'
|
||||
if os.path.isfile(textModeBannerFilename):
|
||||
try:
|
||||
copyfile(textModeBannerFilename,
|
||||
baseDir + '/accounts/banner.txt')
|
||||
except BaseException:
|
||||
pass
|
||||
|
||||
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
||||
'options', 'block', 'search', 'calendar')
|
||||
extensions = getImageExtensions()
|
||||
|
|
Loading…
Reference in New Issue