mirror of https://gitlab.com/bashrc2/epicyon
Don't copy from template when setting custom font
parent
80a9634572
commit
b6dc900305
4
theme.py
4
theme.py
|
@ -123,9 +123,7 @@ def setCustomFont(baseDir: str):
|
||||||
themeFiles = ('epicyon.css', 'login.css', 'follow.css',
|
themeFiles = ('epicyon.css', 'login.css', 'follow.css',
|
||||||
'suspended.css', 'calendar.css', 'blog.css')
|
'suspended.css', 'calendar.css', 'blog.css')
|
||||||
for filename in themeFiles:
|
for filename in themeFiles:
|
||||||
templateFilename = baseDir + '/epicyon-' + filename
|
templateFilename = baseDir + '/' + filename
|
||||||
if filename == 'epicyon.css':
|
|
||||||
templateFilename = baseDir + '/epicyon-profile.css'
|
|
||||||
if not os.path.isfile(templateFilename):
|
if not os.path.isfile(templateFilename):
|
||||||
continue
|
continue
|
||||||
with open(templateFilename, 'r') as cssfile:
|
with open(templateFilename, 'r') as cssfile:
|
||||||
|
|
Loading…
Reference in New Issue