Philipp Hörist pushed to branch master at gajim / gajim
Commits:
54285168 by Philipp Hörist at 2024-12-15T12:13:16+01:00
imprv: FullMessageWindow: Wrap text and add padding
- - - - -
2 changed files:
- gajim/data/style/gajim.css
- gajim/gtk/conversation/message_widget.py
Changes:
=====================================
gajim/data/style/gajim.css
=====================================
@@ -1087,6 +1087,9 @@ #ContactNameEntry text:disabled {
color: @theme_fg_color;
}
+/* FullMessageWindow */
+#FullMessageWindow textview { padding: 10px }
+
/* HistorySyncAssistant */
#HistorySyncAssistant notebook { padding: 18px; }
#HistorySyncAssistant progressbar text { color: #000; font-size: 1.6rem;
padding: 10px;}
=====================================
gajim/gtk/conversation/message_widget.py
=====================================
@@ -120,15 +120,13 @@ def __init__(self, text: str) -> None:
default_height=800,
)
- textview = Gtk.TextView()
- textview.set_editable(False)
- textview.set_left_margin(3)
- textview.set_top_margin(3)
+ textview = Gtk.TextView(
+ editable=False,
+ wrap_mode=Gtk.WrapMode.WORD_CHAR,
+ )
textview.get_buffer().set_text(text)
- scrolled = Gtk.ScrolledWindow()
- scrolled.set_hexpand(True)
- scrolled.set_child(textview)
+ scrolled = Gtk.ScrolledWindow(child=textview, hexpand=True)
box = Gtk.Box()
box.append(scrolled)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5428516878a1b2562ebc76bbdbac6f67a8a32ea2
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5428516878a1b2562ebc76bbdbac6f67a8a32ea2
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]