Customisable desktop client banner

merge-requests/30/head
Bob Mottram 2021-03-15 14:36:03 +00:00
parent 0a7f214163
commit 42e11d3b83
1 changed files with 5 additions and 2 deletions

View File

@ -45,9 +45,12 @@ def _clearScreen() -> None:
def _showDesktopBanner() -> None: def _showDesktopBanner() -> None:
"""Shows the banner at the top """Shows the banner at the top
""" """
bannerFilename = 'theme/starlight/banner.txt' bannerFilename = 'banner.txt'
if not os.path.isfile(bannerFilename): if not os.path.isfile(bannerFilename):
return bannerTheme = 'starlight'
bannerFilename = 'theme/' + bannerTheme + '/banner.txt'
if not os.path.isfile(bannerFilename):
return
with open(bannerFilename, 'r') as bannerFile: with open(bannerFilename, 'r') as bannerFile:
banner = bannerFile.read() banner = bannerFile.read()
if banner: if banner: