diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index 723756b7..72203632 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -517,31 +517,6 @@ gcal_month_cell_set_date (GcalMonthCell *self, update_weather (self); } -gboolean -gcal_month_cell_get_different_month (GcalMonthCell *self) -{ - g_return_val_if_fail (GCAL_IS_MONTH_CELL (self), FALSE); - - return self->different_month; -} - -void -gcal_month_cell_set_different_month (GcalMonthCell *self, - gboolean different) -{ - g_return_if_fail (GCAL_IS_MONTH_CELL (self)); - - if (self->different_month == different) - return; - - self->different_month = different; - - if (different) - gtk_widget_add_css_class (GTK_WIDGET (self), "out-of-month"); - else - gtk_widget_remove_css_class (GTK_WIDGET (self), "out-of-month"); -} - GcalContext* gcal_month_cell_get_context (GcalMonthCell *self) { diff --git a/src/gui/views/gcal-month-cell.h b/src/gui/views/gcal-month-cell.h index d7aaf0fb..e7b0a0b9 100644 --- a/src/gui/views/gcal-month-cell.h +++ b/src/gui/views/gcal-month-cell.h @@ -36,11 +36,6 @@ GDateTime* gcal_month_cell_get_date (GcalMonthCell void gcal_month_cell_set_date (GcalMonthCell *self, GDateTime *date); -gboolean gcal_month_cell_get_different_month (GcalMonthCell *self); - -void gcal_month_cell_set_different_month (GcalMonthCell *self, - gboolean out); - GcalContext* gcal_month_cell_get_context (GcalMonthCell *self); void gcal_month_cell_set_context (GcalMonthCell *self, diff --git a/src/gui/views/gcal-month-view-row.c b/src/gui/views/gcal-month-view-row.c index 4d899171..424e19c7 100644 --- a/src/gui/views/gcal-month-view-row.c +++ b/src/gui/views/gcal-month-view-row.c @@ -826,31 +826,6 @@ gcal_month_view_row_remove_event (GcalMonthViewRow *self, GCAL_EXIT; } -void -gcal_month_view_row_update_style_for_date (GcalMonthViewRow *self, - GDateTime *date) -{ - g_autoptr (GDateTime) range_start = NULL; - - g_assert (GCAL_IS_MONTH_VIEW_ROW (self)); - g_assert (date != NULL); - g_assert (self->range != NULL); - - range_start = gcal_range_get_start (self->range); - - for (guint i = 0; i < 7; i++) - { - g_autoptr (GDateTime) cell_date = NULL; - gboolean different_month; - - cell_date = g_date_time_add_days (range_start, i); - different_month = g_date_time_get_year (cell_date) != g_date_time_get_year (date) || - g_date_time_get_month (cell_date) != g_date_time_get_month (date); - - gcal_month_cell_set_different_month (GCAL_MONTH_CELL (self->day_cells[i]), different_month); - } -} - GList* gcal_month_view_row_get_children_by_uuid (GcalMonthViewRow *self, GcalRecurrenceModType mod, diff --git a/src/gui/views/gcal-month-view-row.h b/src/gui/views/gcal-month-view-row.h index d3428409..25ef503a 100644 --- a/src/gui/views/gcal-month-view-row.h +++ b/src/gui/views/gcal-month-view-row.h @@ -50,9 +50,6 @@ void gcal_month_view_row_add_event (GcalMonthViewR void gcal_month_view_row_remove_event (GcalMonthViewRow *self, GcalEvent *event); -void gcal_month_view_row_update_style_for_date (GcalMonthViewRow *self, - GDateTime *date); - GList* gcal_month_view_row_get_children_by_uuid (GcalMonthViewRow *self, GcalRecurrenceModType mod, const gchar *uuid); diff --git a/src/gui/views/gcal-month-view.c b/src/gui/views/gcal-month-view.c index ee02c258..f6afb6f2 100644 --- a/src/gui/views/gcal-month-view.c +++ b/src/gui/views/gcal-month-view.c @@ -456,7 +456,6 @@ update_row_visuals (GcalMonthView *self) can_focus = i >= FIRST_VISIBLE_ROW_INDEX && i <= LAST_VISIBLE_ROW_INDEX; gtk_widget_set_can_focus (GTK_WIDGET (row), can_focus); - gcal_month_view_row_update_style_for_date (row, middle); } } diff --git a/src/theme/style.css b/src/theme/style.css index bde79c3a..78fefc40 100644 --- a/src/theme/style.css +++ b/src/theme/style.css @@ -275,11 +275,6 @@ monthcell:hover:selected { color-mix(in srgb-linear, var(--bg-color) 77.5%, var(--accent-bg-color)); } -/* Out of Month */ -monthcell.out-of-month > * { - opacity: calc(var(--dim-opacity) - 17.5%); -} - monthcell:selected label.day-label { font-weight: bold; }