[gnome-disk-utility/udisks2-port] Make the grid blue even when unfocused so it matches e.g. GtkTreeView
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Make the grid blue even when unfocused so it matches e.g. GtkTreeView
- Date: Fri, 11 Mar 2011 16:44:50 +0000 (UTC)
commit fbc5d916d464034a582941611329d9aa4a2f62e8
Author: David Zeuthen <davidz redhat com>
Date: Fri Mar 11 11:43:06 2011 -0500
Make the grid blue even when unfocused so it matches e.g. GtkTreeView
Also ensure focus indicators are drawn when focused so the user can
tell when it's focused or not.
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduvolumegrid.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index ec3bce2..d616dbb 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -990,15 +990,15 @@ render_element (GduVolumeGrid *grid,
fill_red = 1;
fill_green = 1;
fill_blue = 1;
- fill_selected_red = 0.40;
- fill_selected_green = 0.60;
- fill_selected_blue = 0.80;
- fill_selected_not_focused_red = 0.60;
- fill_selected_not_focused_green = 0.60;
- fill_selected_not_focused_blue = 0.60;
- focus_rect_red = 0.75;
- focus_rect_green = 0.75;
- focus_rect_blue = 0.75;
+ fill_selected_red = 0.29;
+ fill_selected_green = 0.56;
+ fill_selected_blue = 0.85;
+ fill_selected_not_focused_red = 0.29;
+ fill_selected_not_focused_green = 0.56;
+ fill_selected_not_focused_blue = 0.85;
+ focus_rect_red = 0.60;
+ focus_rect_green = 0.70;
+ focus_rect_blue = 0.80;
stroke_red = 0.75;
stroke_green = 0.75;
stroke_blue = 0.75;
@@ -1285,7 +1285,7 @@ render_slice (GduVolumeGrid *grid,
if (element == grid->focused)
{
- if (grid->focused != grid->selected && is_grid_focused)
+ if (is_grid_focused)
is_focused = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]