forked from indymedia/epicyon
Don't remove theme
parent
5c5ee0a687
commit
bbd83dbb52
2
theme.py
2
theme.py
|
@ -164,7 +164,6 @@ def setCustomFont(baseDir: str):
|
||||||
|
|
||||||
|
|
||||||
def enableGrayscale(baseDir: str):
|
def enableGrayscale(baseDir: str):
|
||||||
removeTheme(baseDir)
|
|
||||||
setSingleThemeParam(baseDir, 'grayscale', '100%')
|
setSingleThemeParam(baseDir, 'grayscale', '100%')
|
||||||
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
||||||
if not os.path.isfile(grayscaleFilename):
|
if not os.path.isfile(grayscaleFilename):
|
||||||
|
@ -173,7 +172,6 @@ def enableGrayscale(baseDir: str):
|
||||||
|
|
||||||
|
|
||||||
def disableGrayscale(baseDir: str):
|
def disableGrayscale(baseDir: str):
|
||||||
removeTheme(baseDir)
|
|
||||||
setSingleThemeParam(baseDir, 'grayscale', '0%')
|
setSingleThemeParam(baseDir, 'grayscale', '0%')
|
||||||
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
||||||
if os.path.isfile(grayscaleFilename):
|
if os.path.isfile(grayscaleFilename):
|
||||||
|
|
Loading…
Reference in New Issue