[gnome-themes-standard] expanders: tweak the border color and padding for treeview expanders
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] expanders: tweak the border color and padding for treeview expanders
- Date: Tue, 9 Aug 2011 10:57:43 +0000 (UTC)
commit 503f47224a29e7168cec5c9e1e5fc658d1c0a0f5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 9 12:56:31 2011 +0200
expanders: tweak the border color and padding for treeview expanders
src/adwaita_engine.c | 9 +++++++++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 12 +++++-------
2 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index f055c2f..9fc9049 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -495,6 +495,15 @@ adwaita_engine_render_expander (GtkThemingEngine *engine,
gint line_width;
GtkBorder border;
+ /* draw the expander as if it was 11px instead of the allocated 17px,
+ * so that we can have a bit of padding between the view edge and the
+ * expander itself.
+ */
+ x += 3;
+ y += 3;
+ width -= 6;
+ height -= 6;
+
side = floor (MIN (width, height));
x += width / 2 - side / 2;
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 198e664..593bb6a 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1173,7 +1173,7 @@ GtkIconView.view.cell:selected:focused {
GtkTreeView {
-GtkTreeView-vertical-separator: 0;
- -GtkTreeView-expander-size: 11;
+ -GtkTreeView-expander-size: 17;
-GtkWidget-focus-line-width: 1;
-GtkWidget-focus-padding: 1;
@@ -1218,10 +1218,8 @@ row:insensitive {
}
row:selected:focused {
- border-width: 1 0;
- border-color: @treeview_focus_border;
+ border-width: 0;
background-color: @theme_selected_bg_color;
- border-style: solid;
}
row:selected {
@@ -1246,7 +1244,7 @@ row:selected {
border-style: solid;
border-width: 1;
border-radius: 2;
- border-color: @internal_element_color;
+ border-color: shade (@internal_element_color, 1.40);
color: @internal_element_color;
background-color: @theme_base_color;
@@ -1257,7 +1255,7 @@ row:selected {
border-width: 1;
color: @internal_element_color;
- border-color: @internal_element_color;
+ border-color: shade (@internal_element_color, 1.40);
background-color: @theme_base_color;
}
@@ -1267,7 +1265,7 @@ row:selected {
border-width: 1;
color: @internal_element_color;
- border-color: @internal_element_color;
+ border-color: shade (@internal_element_color, 1.40);
background-color: shade (@theme_bg_color, 1.02);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]