diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-01 12:20:03 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-11-02 14:18:30 +0100 |
commit | 7d90c781e7b7fbc580fa828c2c2fa655f3aa7bf4 (patch) | |
tree | 984a3239797447eab028f9ee089719450bdaf72b | |
parent | 9a34673d2b99359b0e9f36006fb9b221b5cacbb1 (diff) | |
download | mate-notification-daemon-7d90c781e7b7fbc580fa828c2c2fa655f3aa7bf4.tar.bz2 mate-notification-daemon-7d90c781e7b7fbc580fa828c2c2fa655f3aa7bf4.tar.xz |
Nodoka: use a fixed font color
fixes https://github.com/mate-desktop/mate-notification-daemon/issues/86
Currenty the theme use the font color from gtk theme,
which give us unreadable notifications text in case of
using a dark gtk theme with mostly light font colors.
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 15d176e..27b1912 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -1002,11 +1002,15 @@ set_notification_text(GtkWindow *nw, const char *summary, const char *body) WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata"); g_assert(windata != NULL); - str = g_strdup_printf("<b><big>%s</big></b>", summary); + str = g_strdup_printf( + "<span color=\"#000000\"><b><big>%s</big></b></span>", summary); gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); g_free(str); - gtk_label_set_markup(GTK_LABEL(windata->body_label), body); + str = g_strdup_printf( + "<span color=\"#000000\">%s</span>", body); + gtk_label_set_markup(GTK_LABEL(windata->body_label), str); + g_free(str); if (body == NULL || *body == '\0') gtk_widget_hide(windata->body_label); |