[gnome-calendar] month-view: highlight the whole cell of current day
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: highlight the whole cell of current day
- Date: Wed, 17 Aug 2016 06:13:33 +0000 (UTC)
commit 27ca660e772bd42908ff33002efc9f252e194f66
Author: nj4710 <nj4710 gmail com>
Date: Wed Aug 10 00:09:32 2016 +0530
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
data/theme/gtk-styles.css | 5 +----
src/gcal-month-view.c | 6 +++---
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index 8ca9ce3..7fc5f11 100644
--- a/data/theme/gtk-styles.css
+++ b/data/theme/gtk-styles.css
@@ -29,10 +29,7 @@ calendar-view.header {
}
calendar-view.current {
- background-color: black;
- border-radius: 2px;
- color: white;
- font-weight: bold;
+ background-color: alpha(@theme_selected_bg_color, 0.3);
}
calendar-view.current:drop(active) {
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 64b4336..9896802 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]