Fix selection checkboxes for Gnome apps. Fixes #304

We are only using png here ,but it also plays well with svg.
pull/528/head
Csaba Jakosa 2016-08-25 17:34:08 +02:00 committed by Khurshid Alam
parent 70dec4cadf
commit 5ea55ab061
2 changed files with 28 additions and 8 deletions

View File

@ -56,10 +56,20 @@ $suffix: if($variant == "dark", "-dark", "");
.check { @include toggle("checkbox"); } .check { @include toggle("checkbox"); }
GtkIconView.content-view.cell.check { //selection-mode
-gtk-icon-source: url("assets/grid-selection-unchecked#{$suffix}.png"); @each $s,$as in ('', '-unchecked'),
(':hover', '-unchecked'),
&:active { -gtk-icon-source: url("assets/grid-selection-checked#{$suffix}.png"); } (':active', '-checked'),
(':backdrop', '-unchecked'),
(':checked', '-checked'),
(':checked:hover', '-checked'),
(':checked:active', '-checked'),
(':backdrop:checked', '-checked') {
.view.content-view.check#{$s}:not(list) {
-gtk-icon-shadow: none;
-gtk-icon-source: url("../assets/grid-selection#{$as}#{$suffix}.png");
background-color: transparent;
}
} }
} }

View File

@ -66,10 +66,20 @@ $suffix: if($variant == "dark", "-dark", "");
margin-left: $spacing; margin-left: $spacing;
} }
iconview.content-view.cell.check { //selection-mode
-gtk-icon-source: url("assets/grid-selection-unchecked#{$suffix}.png"); @each $s,$as in ('', '-unchecked'),
(':hover', '-unchecked'),
&:active { -gtk-icon-source: url("assets/grid-selection-checked#{$suffix}.png"); } (':active', '-checked'),
(':backdrop', '-unchecked'),
(':checked', '-checked'),
(':checked:hover', '-checked'),
(':checked:active', '-checked'),
(':backdrop:checked', '-checked') {
.view.content-view.check#{$s}:not(list) {
-gtk-icon-shadow: none;
-gtk-icon-source: url("../assets/grid-selection#{$as}#{$suffix}.png");
background-color: transparent;
}
} }
} }