1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
// Color variables dependant on $headerbar_bg_color defined in _colors.scss
$_button_bg_color: lighten($headerbar_bg_color, 7.5%);
$_button_border_color: darken($headerbar_bg_color, 9%);
// deducted from the color used in common which is $backdrop_borders_color: mix($borders_color, $bg_color, 80%);
$_backdrop_button_border_color: darken($inkstone, 9%);
// overwriting the headerbar styling from common, for the inverted look in the ambiance theme
headerbar,
.titlebar {
@include headerbar_fill($headerbar_bg_color, $hc: $headerbar_border_color);
color: $headerbar_fg_color;
border-color: $borders_color;
.title,
label.title {
color: darken($borders_color, 25%); text-shadow:none;
&:backdrop { color: darken($borders_color, 15%); text-shadow:none; }
}
&.backdrop {
}
.maximized &,
.fullscreen & {
box-shadow: none;
}
entry {
&,
&:backdrop {
border-color: darken($headerbar_bg_color, 8%);
}
&:focus { @include entry(focus); }
}
separator {
background: image(lighten($_button_border_color, 5%));
&:backdrop {
background: image($_backdrop_button_border_color);
}
}
// Re-style switches because they are drawn on a dark headerbar
switch {
border-color: $_button_border_color;
color: $headerbar_fg_color;
background-color: $_button_bg_color;
&:hover { background-color: lighten($_button_bg_color, 2%); }
&:backdrop {
background-color: lighten($backdrop_headerbar_bg_color, 2%);
&,
&:checked { border-color: darken($_backdrop_button_border_color, 4%); }
&:disabled {
background-color: $backdrop_headerbar_bg_color;
border-color: $_backdrop_button_border_color;
}
}
&:disabled {
background-color: $headerbar_bg_color;
border-color: $_button_border_color;
}
&:checked {
color: $selected_fg_color;
border-color: $_button_border_color;
background-color: $checkradio_bg_color;
}
}
// Re-style sliders for switches and scales do make them look sharp on the dark headerbar
switch, scale {
slider {
&:checked {
border-color: $checkradio_borders_color;
}
&:backdrop {
@include button(backdrop-alt, $_button_bg_color);
&,
&:checked,
&:disabled,
&:checked:disabled {
border-color: darken($_backdrop_button_border_color, 4%); box-shadow: none;
}
}
&:not(:checked) {
border-color: $_button_border_color;
}
&:disabled {
@include button(insensitive, darken($headerbar_bg_color, 8%));
}
}
}
// re-insert the full selection mode section from common ...
.selection-mode &,
&.selection-mode {
$_hc: mix($top_hilight, $suggested_bg_color, 50%); // hilight color
color: $selected_fg_color;
border-color: $suggested_border_color;
@include headerbar_fill($suggested_bg_color, $_hc);
separator {
background: image(lighten($suggested_bg_color, 5%));
}
&:backdrop {
background-color: $suggested_bg_color;
background-image: none;
box-shadow: inset 0 1px mix($top_hilight, $suggested_bg_color, 60%);
label {
text-shadow: none;
color: $selected_fg_color;
}
}
.subtitle:link { @extend %link_selected; }
button,
button.image-button,
button.image-button.toggle,
button.text.button,
button.toggle,
box button.toggle,
buttonbox.toggle,
stackswitcher button,
filechooser .path-bar.linked>button,
.path-bar button {
@include button(normal, $suggested_bg_color, $selected_fg_color);
&.flat {
@include button(undecorated);
}
&:hover {
@include button(hover, $suggested_bg_color, $selected_fg_color);
}
&:active,
&:checked,
&.toggle:checked,
&.toggle:active {
@include button(active, $suggested_bg_color, $selected_fg_color);
}
&:backdrop {
&.flat,
& {
@include button(backdrop, $suggested_bg_color, $selected_fg_color);
//-gtk-icon-effect: none;
border-color: lighten($suggested_bg_color, 5%);
&:active,
&:checked {
@include button(backdrop-active, $suggested_bg_color, $selected_fg_color);
border-color: $suggested_border_color;
}
&:disabled {
@include button(backdrop-insensitive, $suggested_bg_color, $selected_fg_color);
border-color: $suggested_border_color;
&:active,
&:checked {
@include button(backdrop-insensitive-active, $suggested_bg_color, $selected_fg_color);
border-color: $suggested_border_color;
}
}
}
}
&.flat {
&:backdrop,
&:disabled,
&:backdrop:disabled {
@include button(undecorated);
}
}
&:disabled {
@include button(insensitive, $suggested_bg_color, $selected_fg_color);
&:active,
&:checked {
@include button(insensitive-active, $suggested_bg_color, $selected_fg_color);
}
}
&.suggested-action {
@include button(normal);
border-color: $suggested_border_color;
&:hover {
@include button(hover);
border-color: $suggested_border_color;
}
&:active {
@include button(active);
border-color: darken($suggested_border_color, 10%);
}
&:disabled {
@include button(insensitive);
border-color: $suggested_border_color;
}
&:backdrop {
@include button(backdrop);
border-color: $suggested_border_color;
}
&:backdrop:disabled {
@include button(backdrop-insensitive);
border-color: $suggested_border_color;
}
}
}
.selection-menu {
&:backdrop,
& {
border-color: transparentize($suggested_bg_color, 1);
background-color: transparentize($suggested_bg_color, 1);
background-image: none;
box-shadow: none;
min-height: 20px;
padding: $_sel_menu_pad;
arrow {
-GtkArrow-arrow-scaling: 1;
}
.arrow {
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
color: transparentize($selected_fg_color, 0.5);
-gtk-icon-shadow: none;
}
}
}
}
}
|