mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-30 10:08:41 -04:00
Dark/light mode theme support
This commit is contained in:
parent
96d671e9a2
commit
29071fbdfc
3 changed files with 37 additions and 5 deletions
|
@ -155,6 +155,7 @@ class SidebandCore():
|
|||
self.config = {}
|
||||
# Settings
|
||||
self.config["display_name"] = "Anonymous Peer"
|
||||
self.config["dark_ui"] = True
|
||||
self.config["start_announce"] = False
|
||||
self.config["propagation_by_default"] = False
|
||||
self.config["home_node_as_broadcast_repeater"] = False
|
||||
|
@ -199,6 +200,11 @@ class SidebandCore():
|
|||
self.config = msgpack.unpackb(config_file.read())
|
||||
config_file.close()
|
||||
|
||||
# Migration actions from earlier config formats
|
||||
if not "dark_ui" in self.config:
|
||||
self.config["dark_ui"] = True
|
||||
|
||||
# Make sure we have a database
|
||||
if not os.path.isfile(self.db_path):
|
||||
self.__db_init()
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue