[gnome-calendar/wip/pandusonu/week-view] week-header: improve rendering of selection
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/pandusonu/week-view] week-header: improve rendering of selection
- Date: Mon, 19 Dec 2016 20:42:34 +0000 (UTC)
commit 30cb8a502074fbcd2dce99eade9c7192abd2c59c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 15 17:32:27 2016 -0200
week-header: improve rendering of selection
src/views/gcal-week-header.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/src/views/gcal-week-header.c b/src/views/gcal-week-header.c
index 62a8b5c..75c6956 100644
--- a/src/views/gcal-week-header.c
+++ b/src/views/gcal-week-header.c
@@ -1210,11 +1210,19 @@ gcal_week_header_draw (GtkWidget *widget,
selection_width = (end - start + 1) * cell_width;
selection_x = ltr ? (start * cell_width) : (alloc.width - (start * cell_width + selection_width));
- gtk_render_background (context, cr,
- ALIGNED (start_x + selection_x),
- start_y,
- ALIGNED (selection_width),
- alloc.height - start_y);
+ gtk_render_background (context,
+ cr,
+ ALIGNED (start_x + selection_x) + 0.33,
+ start_y - 6,
+ ALIGNED (selection_width + 1),
+ alloc.height - start_y + 6);
+
+ gtk_render_frame (context,
+ cr,
+ ALIGNED (start_x + selection_x) + 0.33,
+ start_y - 6,
+ ALIGNED (selection_width + 1),
+ alloc.height - start_y + 6);
gtk_style_context_restore (context);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]