mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-09-01 19:28:17 +00:00
Thanks neutral :)
This commit is contained in:
@@ -156,7 +156,7 @@ class NomadNetworkApp:
|
||||
self.rrc_history_per_room_cap = 500
|
||||
self.rrc_filter_loaded_history = True
|
||||
self.rrc_ephemeral_notices = 600
|
||||
self.rrc_ui_justify_msgs = False
|
||||
self.rrc_ui_justify_msgs = True
|
||||
self.rrc_ui_space_msgs = False
|
||||
self.rrc_ui_render_markdown = True
|
||||
self.rrc_ui_render_micron = True
|
||||
@@ -936,7 +936,7 @@ class NomadNetworkApp:
|
||||
|
||||
if option == "justify_msgs":
|
||||
try: value = self.config["rrc"].as_bool(option)
|
||||
except Exception: value = False
|
||||
except Exception: value = True
|
||||
self.rrc_ui_justify_msgs = value
|
||||
|
||||
if option == "space_msgs":
|
||||
@@ -1296,7 +1296,7 @@ ephemeral_notices = 10
|
||||
# Other display and formatting options:
|
||||
render_markdown = yes
|
||||
render_micron = yes
|
||||
justify_msgs = no
|
||||
justify_msgs = yes
|
||||
space_msgs = no
|
||||
|
||||
[node]
|
||||
|
||||
@@ -985,7 +985,7 @@ def _message_widget(app, hub, m, link_delegate=None):
|
||||
nick_micron = f"`f{nick_attr}<{sender}>`f "
|
||||
if app.rrc_ui_justify_msgs:
|
||||
prefix_rendered = _render_body(f"{prefix_micron}", fg=t["text"])
|
||||
body_rendered = _render_body(f"{nick_micron}{message_body}", fg=t["text"])
|
||||
body_rendered = _render_body(f"{nick_micron}{message_body}", link_delegate=ld, fg=t["text"])
|
||||
if app.rrc_ui_space_msgs: body_rendered.append(urwid.Text(""))
|
||||
columns = urwid.Columns([(urwid.PACK, urwid.Pile(prefix_rendered)), urwid.Pile(body_rendered)], dividechars=1)
|
||||
final_widget = urwid.Padding(columns, left=1)
|
||||
|
||||
@@ -812,7 +812,7 @@ Whether or not to render micron formatting in messages. When using micron in mes
|
||||
<
|
||||
|
||||
>>>
|
||||
`!justify_msgs = no`!
|
||||
`!justify_msgs = yes`!
|
||||
`!space_msgs = no`!
|
||||
>>>>
|
||||
Rendering layout options for messages.
|
||||
|
||||
Reference in New Issue
Block a user