Skip to content

Commit

Permalink
Fixed #988
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Sep 1, 2024
1 parent 9166992 commit 9929794
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
35 changes: 14 additions & 21 deletions src/sass/gtk/_common-3.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2009,8 +2009,6 @@ $pathbar_button_checked_bg: if($variant == 'light', #808080, #b8b8b8);
//

treeview.view {
@extend %view;

@at-root * {
-GtkTreeView-horizontal-separator: 4;
-GtkTreeView-grid-line-width: 1;
Expand All @@ -2029,14 +2027,14 @@ treeview.view {

acceleditor > label { background-color: $selected_bg_color; }

&:hover { background-color: if($variant=='light', darken($base_color, 3%), lighten($base_color, 3%)); }

&:selected {
&, &:focus {
border-radius: 0;
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
border-top-color: rgba($fg_color, 0.15); // doesn't work unfortunately
border-radius: 0;
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
border-top-color: rgba($fg_color, 0.15); // doesn't work unfortunately

@extend %selected_items;
}
@extend %selected_items;
}

&:disabled {
Expand All @@ -2047,9 +2045,13 @@ treeview.view {
}
}

entry {
&, &:focus {
background-color: $base_color;
entry,
&:selected entry {
background-color: $base_color;

&:focus {
color: $fg_color;
background-color: mix(white, $base_color, 8%);
}
}

Expand Down Expand Up @@ -2112,7 +2114,7 @@ treeview.view {

> header {
> button {
$_column_header_color: mix($fg_color,$base_color,80%);
$_column_header_color: mix($fg_color, $base_color, 80%);

min-height: if($variant =='light', 24px, 26px);
min-width: 38px;
Expand Down Expand Up @@ -2164,15 +2166,6 @@ treeview.view {
border-style: none;
}
}

entry, &:selected entry {
background-color: $base_color;

&:focus {
color: $fg_color;
background-color: mix(white, $base_color, 8%);
}
}
}

//
Expand Down
9 changes: 9 additions & 0 deletions src/sass/gtk/apps/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,15 @@ dialog.background {
}
}

treeview#ObjectsTreeView.view {
transition: none;

&:selected {
background-color: rgba($selected_bg_color, 0.35);
color: $fg_color;
}
}

//
// Synaptic
//
Expand Down

0 comments on commit 9929794

Please sign in to comment.