[evolution/gnome-3-32] I#439 - Calendar Month view weekday names unreadable in dark theme



commit 7734c7f8bb08697033fc68e5017416028ebad96f
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 10 12:41:29 2019 +0200

    I#439 - Calendar Month view weekday names unreadable in dark theme
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/439

 src/calendar/gui/e-week-view-titles-item.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/gui/e-week-view-titles-item.c b/src/calendar/gui/e-week-view-titles-item.c
index 746c2a38a1..24f4f9eba7 100644
--- a/src/calendar/gui/e-week-view-titles-item.c
+++ b/src/calendar/gui/e-week-view-titles-item.c
@@ -124,7 +124,7 @@ week_view_titles_item_draw (GnomeCanvasItem *canvas_item,
 {
        EWeekViewTitlesItem *titles_item;
        EWeekView *week_view;
-       GdkRGBA bg_bg, light_bg, dark_bg;
+       GdkRGBA bg_bg, light_bg, dark_bg, fg;
        gint col_width, col, date_width, date_x;
        gchar buffer[128];
        GtkAllocation allocation;
@@ -146,6 +146,7 @@ week_view_titles_item_draw (GnomeCanvasItem *canvas_item,
                GTK_WIDGET (canvas_item->canvas), &allocation);
 
        e_utils_get_theme_color (GTK_WIDGET (week_view), "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, 
&bg_bg);
+       e_utils_get_theme_color (GTK_WIDGET (week_view), "theme_fg_color", E_UTILS_DEFAULT_THEME_FG_COLOR, 
&fg);
        e_utils_shade_color (&bg_bg, &dark_bg, E_UTILS_DARKNESS_MULT);
        e_utils_shade_color (&bg_bg, &light_bg, E_UTILS_LIGHTNESS_MULT);
 
@@ -206,6 +207,7 @@ week_view_titles_item_draw (GnomeCanvasItem *canvas_item,
                        + (week_view->col_widths[col] - date_width) / 2;
                date_x = MAX (date_x, week_view->col_offsets[col]);
 
+               gdk_cairo_set_source_rgba (cr, &fg);
                pango_layout_set_text (layout, buffer, -1);
                cairo_move_to (cr, date_x - x, 3 - y);
                pango_cairo_show_layout (cr, layout);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]