mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
Move graphical banner into common, and display it in GUI too
This commit is contained in:
parent
dac508d06e
commit
ee3761af6c
3 changed files with 35 additions and 36 deletions
|
@ -62,6 +62,39 @@ class Common:
|
|||
with open(self.get_resource_path("version.txt")) as f:
|
||||
self.version = f.read().strip()
|
||||
|
||||
def display_banner(self):
|
||||
print(f"OnionShare {self.version} | https://onionshare.org/")
|
||||
print(self.C_DARKPURPLE)
|
||||
print(" ▄▄█████████▄▄ ")
|
||||
print(" ▄███████████████████▄ ")
|
||||
print(" ▄█████████████████████████▄ ")
|
||||
print(" █████████████████████████████ ")
|
||||
print(" ▀████████████████████████████▄ ")
|
||||
print(" ▄▄ ▀██████▀▀▀ ▀▀▀█████████████ ")
|
||||
print(" ▄████▄ ▀█▀ ▀███████████ ")
|
||||
print(" ▄████████▄ ██████████ ")
|
||||
print(" ▄████████████▄ ██████████ ")
|
||||
print(" ▄████████████████▄ █████████ ")
|
||||
print(" █████████ ▀████████████████▀ ")
|
||||
print(" ██████████ ▀████████████▀ ")
|
||||
print(" ██████████ ▀████████▀ ")
|
||||
print(" ███████████▄ ▄█▄ ▀████▀ ")
|
||||
print(" █████████████▄▄▄ ▄▄▄██████▄ ▀▀ ")
|
||||
print(" █████████████████████████████▄ ")
|
||||
print(" ▀█████████████████████████████ ")
|
||||
print(" ▀█████████████████████████ ")
|
||||
print(" ▀███████████████████ ")
|
||||
print(" ▀▀█████████▀▀ ")
|
||||
print("")
|
||||
print(self.C_LIGHTPURPLE)
|
||||
print(" ▄██▄ ███ █ ")
|
||||
print(" █ █ █▀ █ ")
|
||||
print(" █ █ ▀ █▄▄ █ ")
|
||||
print(" █ █ █▄█▄ █ ▄██▄ █▄█▄ ▀▀█ █▄█▄ ▄██▄ █▄█▄ ▄██▄ ")
|
||||
print(" █ █ █▀ █ █ █ █ █▀ █ ▄█ █▀ █ █ █ █▀ █▄▄▀ ")
|
||||
print(" ▀██▀ █ █ █ ▀██▀ █ █ ███ █ █ ▀█▀█ █ ▀▄▄▄ ")
|
||||
print(self.C_RESET)
|
||||
|
||||
def load_settings(self, config=None):
|
||||
"""
|
||||
Loading settings, optionally from a custom config json file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue