mirror of https://gitlab.com/bashrc2/epicyon
Themed welcome screen background
parent
7e9937cbd0
commit
a7e0985ac8
12
daemon.py
12
daemon.py
|
@ -10383,12 +10383,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
nickname = nickname.split('?')[0]
|
nickname = nickname.split('?')[0]
|
||||||
if nickname == self.authorizedNickname and \
|
if nickname == self.authorizedNickname and \
|
||||||
self.path != '/users/' + nickname:
|
self.path != '/users/' + nickname:
|
||||||
if not isWelcomeScreenComplete(self.server.baseDir,
|
if not isWelcomeScreenComplete(self.server.baseDir,
|
||||||
nickname,
|
nickname,
|
||||||
self.server.domain):
|
self.server.domain):
|
||||||
self._redirect_headers('/users/' + nickname + '/welcome',
|
self._redirect_headers('/users/' + nickname + '/welcome',
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not htmlGET and \
|
if not htmlGET and \
|
||||||
usersInPath and self.path.endswith('/pinned'):
|
usersInPath and self.path.endswith('/pinned'):
|
||||||
|
|
5
theme.py
5
theme.py
|
@ -265,6 +265,8 @@ def _setThemeFromDict(baseDir: str, name: str,
|
||||||
_setBackgroundFormat(baseDir, name, 'options', bgParams['options'])
|
_setBackgroundFormat(baseDir, name, 'options', bgParams['options'])
|
||||||
if bgParams.get('search'):
|
if bgParams.get('search'):
|
||||||
_setBackgroundFormat(baseDir, name, 'search', bgParams['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,
|
||||||
|
@ -508,7 +510,8 @@ def _setThemeImages(baseDir: str, name: str) -> None:
|
||||||
_setTextModeTheme(baseDir, themeNameLower)
|
_setTextModeTheme(baseDir, themeNameLower)
|
||||||
|
|
||||||
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
||||||
'options', 'block', 'search', 'calendar')
|
'options', 'block', 'search', 'calendar',
|
||||||
|
'welcome')
|
||||||
extensions = getImageExtensions()
|
extensions = getImageExtensions()
|
||||||
|
|
||||||
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
||||||
|
|
Loading…
Reference in New Issue