mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-21 15:36:22 -05:00
Changelog: Added option to set specific mention color
This commit is contained in:
parent
814cd043b8
commit
859aaeeba9
3 changed files with 23 additions and 2 deletions
|
|
@ -158,6 +158,7 @@ class NomadNetworkApp:
|
|||
self.rrc_ephemeral_notices = 600
|
||||
self.rrc_nick_colors = True
|
||||
self.rrc_nick_colors_theme = None
|
||||
self.rrc_mention_color = None
|
||||
self.rrc_color_mention_timestamps = True
|
||||
self.rrc_ui_justify_msgs = True
|
||||
self.rrc_ui_space_msgs = False
|
||||
|
|
@ -1013,6 +1014,13 @@ class NomadNetworkApp:
|
|||
except Exception: value = True
|
||||
self.rrc_nick_colors = value
|
||||
|
||||
if option == "mention_color":
|
||||
value = self.config["rrc"][option]
|
||||
if len(value) == 6:
|
||||
try: bytes.fromhex(value)
|
||||
except Exception: value = None
|
||||
self.rrc_mention_color = value
|
||||
|
||||
if option == "color_mention_timestamps":
|
||||
try: value = self.config["rrc"].as_bool(option)
|
||||
except Exception: value = True
|
||||
|
|
@ -1409,6 +1417,10 @@ show_gutters = yes
|
|||
# for nick color assignment
|
||||
# nick_colors_theme = f68787, 00c394, d59e00, ...
|
||||
|
||||
# You can set a specific color for mentions
|
||||
# of your nick
|
||||
# mention_color = FFBB44
|
||||
|
||||
|
||||
[node]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue