Adwaita: make selection visible in treeview derived widgets

See https://bugzilla.gnome.org/show_bug.cgi?id=757503
This commit is contained in:
Lapo Calamandrei 2016-01-12 00:16:12 +01:00
parent 473433c93d
commit 21a2fce8ba
3 changed files with 964 additions and 826 deletions

View File

@ -88,7 +88,6 @@ $asset_suffix: if($variant=='dark', '-dark', '');
}
}
textview text,
.view {
color: $text_color;
background-color: $base_color;
@ -98,19 +97,6 @@ textview text,
background-color: $backdrop_base_color;
}
selection,
selection:focus { @extend %selected_items; }
}
iconview {
color: $text_color;
background-color: $base_color;
&:backdrop {
color: $backdrop_text_color;
background-color: $backdrop_base_color;
}
&:selected,
&:selected:focus {
@extend %selected_items;
@ -118,6 +104,15 @@ iconview {
}
}
textview text {
@extend .view;
selection,
selection:focus { @extend %selected_items; }
}
iconview { @extend .view; }
.rubberband,
rubberband {
border: 1px solid darken($selected_bg_color, 10%);
@ -1430,7 +1425,8 @@ treeview.view {
& rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
&:selected {
&:selected,
&:selected:focus {
border-radius: 0;
@extend %selected_items;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff