From 4f7abe37621ed32f33032327c56bf5402379ad28 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 15 Nov 2014 19:08:13 +0100 Subject: [PATCH] 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(+) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 921e6d49c3..9b36bbaba8 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 97da0db318..f00f8b613c 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 8b757e06a9..a6b73ebdc2 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); }