themed profile background

alt-html-css
Bob Mottram 2020-12-20 18:23:54 +00:00
parent 49d99488df
commit 2cf3c806ba
1 changed files with 4 additions and 3 deletions

View File

@ -293,7 +293,8 @@ def getProfileHeader(baseDir: str, nickname: str, domain: str,
displayName: str, displayName: str,
avatarDescription: str, avatarDescription: str,
profileDescriptionShort: str, profileDescriptionShort: str,
loginButton: str, avatarUrl: str) -> str: loginButton: str, avatarUrl: str,
theme: str) -> str:
"""The header of the profile screen, containing background """The header of the profile screen, containing background
image and avatar image and avatar
""" """
@ -302,7 +303,7 @@ def getProfileHeader(baseDir: str, nickname: str, domain: str,
nickname + '/' + defaultTimeline + '" title="' + \ nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '">\n' translate['Switch to timeline view'] + '">\n'
htmlStr += ' <img class="profileBackground" ' + \ htmlStr += ' <img class="profileBackground" ' + \
'src="/users/' + nickname + '/image.png" /></a>\n' 'src="/users/' + nickname + '/image_' + theme + '.png" /></a>\n'
htmlStr += ' <figcaption>\n' htmlStr += ' <figcaption>\n'
htmlStr += \ htmlStr += \
' <a href="/users/' + \ ' <a href="/users/' + \
@ -572,7 +573,7 @@ def htmlProfile(rssIconAtTop: bool,
defaultTimeline, displayName, defaultTimeline, displayName,
avatarDescription, avatarDescription,
profileDescriptionShort, profileDescriptionShort,
loginButton, avatarUrl) loginButton, avatarUrl, theme)
profileStr = profileHeaderStr + donateSection profileStr = profileHeaderStr + donateSection
profileStr += '<div class="container" id="buttonheader">\n' profileStr += '<div class="container" id="buttonheader">\n'