Skip to content

Commit f8354bd

Browse files
megaxlots0logs
authored andcommitted
* [GTK 3.20] Selection mode rewrite. Fixed #545 (#546)
1 parent ae7ff0d commit f8354bd

1 file changed

Lines changed: 29 additions & 16 deletions

File tree

gtk-3.20/scss/widgets/_actionbar.scss

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
}
1616

1717

18-
/***************
19-
! Search bars *
20-
****************/
18+
/****************************
19+
! Search and Location bars *
20+
*****************************/
2121

2222
@include exports("searchbar") {
2323
searchbar,
@@ -51,12 +51,13 @@
5151

5252

5353
/******************
54-
* selection mode *
55-
******************/
54+
! Selection mode *
55+
*******************/
5656

5757
@include exports("selectionmode") {
58-
.selection-mode {
59-
&.header-bar, &.toolbar {
58+
headerbar,
59+
.titlebar:not(headerbar) {
60+
&.selection-mode {
6061
@include toolbar($selected_bg_color, $selected_fg_color);
6162

6263
button {
@@ -65,22 +66,34 @@
6566
&.suggested-action { @extend .suggested-action; }
6667
}
6768

68-
.selection-menu.button {
69-
border: 0;
70-
background-color: transparent;
69+
&:backdrop {
70+
background-color: $backdrop_selected_bg_color;
7171
background-image: none;
72-
color: shade($selected_bg_color, $contrast);
72+
}
73+
74+
.selection-menu {
75+
&:backdrop, & {
76+
color: shade($selected_bg_color, $contrast);
77+
background-color: transparent;
78+
background-image: none;
79+
box-shadow: none;
80+
border: 0;
7381

74-
&:hover { color: shade($selected_bg_color, ($contrast - .1)); }
82+
&:hover { color: shade($selected_bg_color, ($contrast - .1)); }
7583

76-
&:active { color: shade($selected_bg_color, ($contrast - .05)); }
84+
&:active { color: shade($selected_bg_color, ($contrast - .05)); }
85+
86+
.arrow {
87+
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
88+
color: transparentize($selected_fg_color, .5);
89+
-gtk-icon-shadow: none;
90+
}
91+
}
7792
}
7893

7994
.dim-label {
80-
&, .selection-menu.button & { color: shade($selected_bg_color, ($contrast - .1)); }
95+
&, .selection-menu & { color: shade($selected_bg_color, ($contrast - .1)); }
8196
}
8297
}
83-
84-
&.toolbar { padding: $spacing; }
8598
}
8699
}

0 commit comments

Comments
 (0)