diff --git a/src/gui/views/gcal-week-hour-bar.c b/src/gui/views/gcal-week-hour-bar.c index 5d0c7be8..3fd12dda 100644 --- a/src/gui/views/gcal-week-hour-bar.c +++ b/src/gui/views/gcal-week-hour-bar.c @@ -105,7 +105,6 @@ gcal_week_hour_bar_init (GcalWeekHourBar *self) { GtkWidget *label = gtk_label_new (""); - gtk_widget_add_css_class (label, "line"); gtk_widget_add_css_class (label, "dimmed"); gtk_widget_set_vexpand (label, TRUE); gtk_label_set_yalign (GTK_LABEL (label), 0.0); diff --git a/src/gui/views/gcal-week-view-common.c b/src/gui/views/gcal-week-view-common.c index 67460421..6d614e05 100644 --- a/src/gui/views/gcal-week-view-common.c +++ b/src/gui/views/gcal-week-view-common.c @@ -28,7 +28,6 @@ gcal_week_view_common_snapshot_hour_lines (GtkWidget *widget, gint width, gint height) { - GtkStyleContext *context; GdkRGBA color; gboolean ltr; gdouble column_width; @@ -36,11 +35,10 @@ gcal_week_view_common_snapshot_hour_lines (GtkWidget *widget, ltr = gtk_widget_get_direction (widget) != GTK_TEXT_DIR_RTL; - context = gtk_widget_get_style_context (widget); - gtk_style_context_save (context); - gtk_style_context_add_class (context, "lines"); - gtk_style_context_get_color (context, &color); - gtk_style_context_restore (context); + gtk_snapshot_save (snapshot); + gtk_widget_get_color (widget, &color); + color.alpha = 0.15; + gtk_snapshot_restore (snapshot); column_width = width / 7.0; diff --git a/src/theme/style.css b/src/theme/style.css index 0ecb9c1b..b8c50606 100644 --- a/src/theme/style.css +++ b/src/theme/style.css @@ -221,19 +221,11 @@ label.month-name { /* Week View CSS */ -.week-header.lines { - color: rgb(from var(--window-fg-color) r g b / 15%); -} - weekhourbar > label { font-size: 10pt; padding: 4px 6px; } -.week-view .lines { - color: rgb(from var(--window-fg-color) r g b / 15%); -} - .week-main-content { border: 0 solid var(--border-color); border-width: 1px 0;