mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-27 15:50:19 +00:00
Use topicbox selector to isolate topic CSS
This commit is contained in:
@@ -2998,7 +2998,7 @@ mg_create_topicbar (session *sess, GtkWidget *box)
|
|||||||
sess->res->tab = NULL;
|
sess->res->tab = NULL;
|
||||||
|
|
||||||
gui->topic_entry = topic = gtk_text_view_new ();
|
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_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_justification (GTK_TEXT_VIEW (topic), GTK_JUSTIFY_LEFT);
|
||||||
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (topic), 4);
|
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (topic), 4);
|
||||||
|
|||||||
@@ -167,10 +167,14 @@ theme_css_build_input (const char *theme_name, guint16 fg_red, guint16 fg_green,
|
|||||||
"background-color: #%02x%02x%02x;"
|
"background-color: #%02x%02x%02x;"
|
||||||
"color: #%02x%02x%02x;"
|
"color: #%02x%02x%02x;"
|
||||||
"caret-color: #%02x%02x%02x;"
|
"caret-color: #%02x%02x%02x;"
|
||||||
|
"word-spacing: normal;"
|
||||||
|
"letter-spacing: normal;"
|
||||||
"}"
|
"}"
|
||||||
"%s {"
|
"%s {"
|
||||||
"color: #%02x%02x%02x;"
|
"color: #%02x%02x%02x;"
|
||||||
"caret-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 {"
|
"%s selection, %s text selection, %s:focus selection, %s:focus text selection, %s *:selected, %s *:selected:focus {"
|
||||||
"background-color: #%02x%02x%02x;"
|
"background-color: #%02x%02x%02x;"
|
||||||
|
|||||||
Reference in New Issue
Block a user