mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
allow user to select theme they want to use
This commit is contained in:
parent
61e4e3665a
commit
4d20f4e086
11 changed files with 1304 additions and 242 deletions
|
|
@ -1530,6 +1530,10 @@ class ReticulumMeshChat:
|
|||
if "display_name" in data and data["display_name"] != "":
|
||||
self.config.display_name.set(data["display_name"])
|
||||
|
||||
# update theme in config
|
||||
if "theme" in data and data["theme"] != "":
|
||||
self.config.theme.set(data["theme"])
|
||||
|
||||
# update auto announce interval
|
||||
if "auto_announce_interval_seconds" in data:
|
||||
|
||||
|
|
@ -1796,6 +1800,7 @@ class ReticulumMeshChat:
|
|||
"auto_announce_enabled": self.config.auto_announce_enabled.get(),
|
||||
"auto_announce_interval_seconds": self.config.auto_announce_interval_seconds.get(),
|
||||
"last_announced_at": self.config.last_announced_at.get(),
|
||||
"theme": self.config.theme.get(),
|
||||
"auto_resend_failed_messages_when_announce_received": self.config.auto_resend_failed_messages_when_announce_received.get(),
|
||||
"allow_auto_resending_failed_messages_with_attachments": self.config.allow_auto_resending_failed_messages_with_attachments.get(),
|
||||
"auto_send_failed_messages_to_propagation_node": self.config.auto_send_failed_messages_to_propagation_node.get(),
|
||||
|
|
@ -2725,6 +2730,7 @@ class Config:
|
|||
auto_announce_enabled = BoolConfig("auto_announce_enabled", False)
|
||||
auto_announce_interval_seconds = IntConfig("auto_announce_interval_seconds", 0)
|
||||
last_announced_at = IntConfig("last_announced_at", None)
|
||||
theme = StringConfig("theme", "light")
|
||||
auto_resend_failed_messages_when_announce_received = BoolConfig("auto_resend_failed_messages_when_announce_received", True)
|
||||
allow_auto_resending_failed_messages_with_attachments = BoolConfig("allow_auto_resending_failed_messages_with_attachments", False)
|
||||
auto_send_failed_messages_to_propagation_node = BoolConfig("auto_send_failed_messages_to_propagation_node", False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue