From 40b99450eae9a8c007ecb520160780b056df32d0 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub Date: Thu, 26 Mar 2026 17:34:44 -0600 Subject: [PATCH] Use topicbox selector to isolate topic CSS --- src/fe-gtk/maingui.c | 2 +- src/fe-gtk/theme/theme-css.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 71d3e22c..764e9881 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -2998,7 +2998,7 @@ mg_create_topicbar (session *sess, GtkWidget *box) sess->res->tab = NULL; gui->topic_entry = topic = gtk_text_view_new (); - gtk_widget_set_name (topic, "zoitechat-inputbox"); + gtk_widget_set_name (topic, "zoitechat-topicbox"); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (topic), GTK_WRAP_WORD_CHAR); gtk_text_view_set_justification (GTK_TEXT_VIEW (topic), GTK_JUSTIFY_LEFT); gtk_text_view_set_left_margin (GTK_TEXT_VIEW (topic), 4); diff --git a/src/fe-gtk/theme/theme-css.c b/src/fe-gtk/theme/theme-css.c index bf6d98c9..0826593e 100644 --- a/src/fe-gtk/theme/theme-css.c +++ b/src/fe-gtk/theme/theme-css.c @@ -167,10 +167,14 @@ theme_css_build_input (const char *theme_name, guint16 fg_red, guint16 fg_green, "background-color: #%02x%02x%02x;" "color: #%02x%02x%02x;" "caret-color: #%02x%02x%02x;" + "word-spacing: normal;" + "letter-spacing: normal;" "}" "%s {" "color: #%02x%02x%02x;" "caret-color: #%02x%02x%02x;" + "word-spacing: normal;" + "letter-spacing: normal;" "}" "%s selection, %s text selection, %s:focus selection, %s:focus text selection, %s *:selected, %s *:selected:focus {" "background-color: #%02x%02x%02x;"