diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index b7963a5b40..34b69a53ae 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -1247,17 +1247,23 @@ GtkComboBox { /************** * Tree Views * **************/ -GtkTreeView.view { // treeview grid lines and expanders, unfortunatelly - // the tree lines color can't be set +GtkTreeView.view { -GtkTreeView-grid-line-width: 1; -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 16; - border-color: $bg_color; // this is actually the line color - // :selected is ignored hence no style for it + + 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, &: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 + } &:backdrop { - border-color: $backdrop_bg_color; + border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 0.5); + border-top: $backdrop_bg_color; } &.expander { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 07e44d7b7b..707f8a0321 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -1892,9 +1892,14 @@ GtkTreeView.view { -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 16; - border-color: #393f3f; } + border-left-color: rgba(238, 238, 236, 0.5); + border-top-color: #393f3f; } + GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected { + border-left-color: rgba(255, 255, 255, 0.5); + border-top-color: rgba(238, 238, 236, 0.1); } GtkTreeView.view:backdrop { - border-color: #393f3f; } + border-left-color: rgba(201, 203, 201, 0.5); + border-top: #393f3f; } GtkTreeView.view.expander { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); color: #b2b2b1; } diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index eed31a9daa..1d73d9076d 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -1884,9 +1884,14 @@ GtkTreeView.view { -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 16; - border-color: #ededed; } + border-left-color: rgba(46, 52, 54, 0.5); + border-top-color: #ededed; } + GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected { + border-left-color: rgba(255, 255, 255, 0.5); + border-top-color: rgba(46, 52, 54, 0.1); } GtkTreeView.view:backdrop { - border-color: #ededed; } + border-left-color: rgba(84, 89, 90, 0.5); + border-top: #ededed; } GtkTreeView.view.expander { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); color: #6c7072; }