month-view: highlight the whole cell of current day

In this commit, we changed the background area of current day.

Presently, the current day is highlighted by the number. This makes difficult for the user to identify it when there are lot of events.

To fix this, we changed the color of background and made background area equal to the cell's area.

https://bugzilla.gnome.org/show_bug.cgi?id=755946
This commit is contained in:
nj4710
2016-08-17 03:13:53 -03:00
committed by Georges Basile Stavracas Neto
parent b9c2a611fe
commit 27ca660e77
2 changed files with 4 additions and 7 deletions
+3 -3
View File
@@ -1789,9 +1789,9 @@ gcal_month_view_draw (GtkWidget *widget,
/* FIXME: hardcoded padding of the number background */
gtk_render_background (context, cr,
cell_width * (column + 1 - priv->k) - sw * padding.right + (priv->k - 1) * font_width - 2.0,
cell_height * (row + 1 + first_row_gap) - font_height - padding.bottom + start_grid_y,
font_width + 4, font_height + 2);
cell_width * (column - priv->k),
cell_height * (row + first_row_gap) + start_grid_y,
cell_width, cell_height);
gtk_render_layout (context, cr,
cell_width * (column + 1 - priv->k) - sw * padding.right + (priv->k - 1) * font_width,
cell_height * (row + 1 + first_row_gap) - font_height - padding.bottom + start_grid_y,