views/month-cell: Remove dimming of out-of-month cells

The infinite scrolling month view obsoletes the out-of-month
dimming, as the view is no longer fixed in a specific month, nor
does it make out-of-month cells insensitive.

Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1145
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/646>
This commit is contained in:
Philipp Sauberzweig
2025-10-17 18:06:17 -04:00
committed by Hari Rana
parent fd9cf44ea2
commit a32df2b070
6 changed files with 0 additions and 64 deletions
-25
View File
@@ -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)
{
-5
View File
@@ -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,
-25
View File
@@ -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,
-3
View File
@@ -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);
-1
View File
@@ -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);
}
}
-5
View File
@@ -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;
}