[gtk+] Adwaita: no border radius for GtkTreeView:selected
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: no border radius for GtkTreeView:selected
- Date: Sat, 15 Nov 2014 18:09:05 +0000 (UTC)
commit 4f7abe37621ed32f33032327c56bf5402379ad28
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sat Nov 15 19:08:13 2014 +0100
Adwaita: no border radius for GtkTreeView:selected
gtk/resources/theme/Adwaita/_common.scss | 4 ++++
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 2 ++
gtk/resources/theme/Adwaita/gtk-contained.css | 2 ++
3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 921e6d4..9b36bba 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1352,6 +1352,10 @@ GtkTreeView.view {
border-left-color: mix($fg_color, $base_color, 0.5); // this is actually the tree lines color,
border-top-color: $bg_color; // while this is the grid lines color, better then
nothing
+ &:selected,
+ &:selected:focus,
+ &:selected:hover { border-radius: 0; } // rest border radius in lists
+
&:selected, &:backdrop:selected {
border-left-color: mix($selected_fg_color, $selected_bg_color, 0.5);
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 97da0db..f00f8b6 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1963,6 +1963,8 @@ GtkTreeView.view {
-GtkTreeView-expander-size: 16;
border-left-color: #292929;
border-top-color: #393f3f; }
+ GtkTreeView.view:selected, GtkTreeView.view:selected:focus, GtkTreeView.view:selected:hover {
+ border-radius: 0; }
GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected {
border-left-color: #225d9c;
border-top-color: rgba(238, 238, 236, 0.1); }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 8b757e0..a6b73eb 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -1963,6 +1963,8 @@ GtkTreeView.view {
-GtkTreeView-expander-size: 16;
border-left-color: #fdfdfd;
border-top-color: #ededed; }
+ GtkTreeView.view:selected, GtkTreeView.view:selected:focus, GtkTreeView.view:selected:hover {
+ border-radius: 0; }
GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected {
border-left-color: #4a90d9;
border-top-color: rgba(46, 52, 54, 0.1); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]