mirror of https://gitlab.com/bashrc2/epicyon
News avatar
parent
3d88c65f8a
commit
e7533bdf97
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
11
theme.py
11
theme.py
|
@ -1004,7 +1004,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def setTheme(baseDir: str, name: str) -> bool:
|
def setTheme(baseDir: str, name: str, domain: str) -> bool:
|
||||||
result = False
|
result = False
|
||||||
|
|
||||||
prevThemeName = getTheme(baseDir)
|
prevThemeName = getTheme(baseDir)
|
||||||
|
@ -1027,6 +1027,15 @@ def setTheme(baseDir: str, name: str) -> bool:
|
||||||
result = True
|
result = True
|
||||||
|
|
||||||
setCustomFont(baseDir)
|
setCustomFont(baseDir)
|
||||||
|
|
||||||
|
# set the news avatar
|
||||||
|
newsAvatarThemeFilename = \
|
||||||
|
baseDir + '/img/icons/' + name + '/avatar_news.png'
|
||||||
|
if os.path.isfile(newsAvatarThemeFilename):
|
||||||
|
newsAvatarFilename = \
|
||||||
|
baseDir + '/accounts/news@' + domain + '/avatar.png'
|
||||||
|
copyfile(newsAvatarThemeFilename, newsAvatarFilename)
|
||||||
|
|
||||||
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
||||||
if os.path.isfile(grayscaleFilename):
|
if os.path.isfile(grayscaleFilename):
|
||||||
enableGrayscale(baseDir)
|
enableGrayscale(baseDir)
|
||||||
|
|
Loading…
Reference in New Issue