diff options
author | hwspeedy <ns@bigbear.dk> | 2024-04-09 16:49:04 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-04-09 16:49:04 +0200 |
commit | c3198605ba2220b3c2a990a6af053729f2b86777 (patch) | |
tree | be1bb4bafda893c4e234624bd7eae4b1a81ac263 /shell | |
parent | e970960ecfbca469b2dc1638ac3a26517291e722 (diff) |
FIX Improve fix #22 - use static foreground color for note
Diffstat (limited to 'shell')
-rw-r--r-- | shell/shell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c index 816f2c41..a97dd5da 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -373,6 +373,13 @@ static ShellNote *note_new(void) gtk_container_add(GTK_CONTAINER(note->event_box), border_box); gtk_widget_show(border_box); +#if GTK_CHECK_VERSION(3, 0, 0) + GdkRGBA info_default_text_color = { .red = 1.0, .green = 1.0, .blue = 1.0, .alpha = 1.0 }; + gtk_widget_override_color(note->label, GTK_STATE_FLAG_NORMAL, &info_default_text_color); +#else + GdkColor info_default_text_color = { 0, 0xffff, 0xffff, 0xffff }; + gtk_widget_modify_fg(note->label, GTK_STATE_NORMAL, &info_default_text_color); +#endif gtk_widget_modify_bg(border_box, GTK_STATE_NORMAL, &info_default_fill_color); gtk_widget_modify_bg(note->event_box, GTK_STATE_NORMAL, &info_default_border_color); |