From 86e3c74a1c5b25552c73f70d52d44fcafeed198a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 17 May 2021 23:24:45 +0300 Subject: [PATCH 35/35] gtk3.22: Make tab notice color different from alert color Reported by pjlsergeant See osdn #42295 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/gui_stuff.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/gui-gtk-3.22/gui_stuff.c b/client/gui-gtk-3.22/gui_stuff.c index 758d170717..501e6b7d43 100644 --- a/client/gui-gtk-3.22/gui_stuff.c +++ b/client/gui-gtk-3.22/gui_stuff.c @@ -433,6 +433,8 @@ static void gui_dialog_switch_page_handler(GtkNotebook *notebook, if (n == num) { gtk_style_context_remove_class(gtk_widget_get_style_context(dlg->v.tab.label), "alert"); + gtk_style_context_remove_class(gtk_widget_get_style_context(dlg->v.tab.label), + "notice"); } } @@ -843,7 +845,7 @@ void gui_dialog_present(struct gui_dialog *dlg) GtkWidget *label = dlg->v.tab.label; gtk_style_context_add_class(gtk_widget_get_style_context(label), - "alert"); + "notice"); } } break; @@ -1143,6 +1145,9 @@ void dlg_tab_provider_prepare(void) gtk_css_provider_load_from_data(dlg_tab_provider, ".alert {\n" "color: rgba(255, 0, 0, 255);\n" + "}\n" + ".notice {\n" + "color: rgba(0, 0, 255, 255);\n" "}\n", -1, NULL); } -- 2.30.2