* [GTK 3.20] Selection mode rewrite. Fixed #545 (#546)

pull/559/head
Csaba Jakosa 2016-09-03 10:31:24 +02:00 committed by Dustin Falgout
parent ae7ff0d2a5
commit f8354bd9da
1 changed files with 29 additions and 16 deletions

View File

@ -15,9 +15,9 @@
} }
/*************** /****************************
! Search bars * ! Search and Location bars *
****************/ *****************************/
@include exports("searchbar") { @include exports("searchbar") {
searchbar, searchbar,
@ -51,12 +51,13 @@
/****************** /******************
* selection mode * ! Selection mode *
******************/ *******************/
@include exports("selectionmode") { @include exports("selectionmode") {
.selection-mode { headerbar,
&.header-bar, &.toolbar { .titlebar:not(headerbar) {
&.selection-mode {
@include toolbar($selected_bg_color, $selected_fg_color); @include toolbar($selected_bg_color, $selected_fg_color);
button { button {
@ -65,22 +66,34 @@
&.suggested-action { @extend .suggested-action; } &.suggested-action { @extend .suggested-action; }
} }
.selection-menu.button { &:backdrop {
border: 0; background-color: $backdrop_selected_bg_color;
background-color: transparent;
background-image: none; background-image: none;
color: shade($selected_bg_color, $contrast); }
&:hover { color: shade($selected_bg_color, ($contrast - .1)); } .selection-menu {
&:backdrop, & {
color: shade($selected_bg_color, $contrast);
background-color: transparent;
background-image: none;
box-shadow: none;
border: 0;
&:active { color: shade($selected_bg_color, ($contrast - .05)); } &:hover { color: shade($selected_bg_color, ($contrast - .1)); }
&:active { color: shade($selected_bg_color, ($contrast - .05)); }
.arrow {
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
color: transparentize($selected_fg_color, .5);
-gtk-icon-shadow: none;
}
}
} }
.dim-label { .dim-label {
&, .selection-menu.button & { color: shade($selected_bg_color, ($contrast - .1)); } &, .selection-menu & { color: shade($selected_bg_color, ($contrast - .1)); }
} }
} }
&.toolbar { padding: $spacing; }
} }
} }