Skip to content

Commit c8828c7

Browse files
committed
[Gtk-3.22] Progressbar under Treeview: Minor fixes
* Do not draw progressbar border using box shadows, progressbar is now more flatter. * Do not use different color for progressbar in disabled state. In transmission, in normal state, progressbar (not selected) has no color, while in backdrop state it gets it's color back. This shouldn't be happenning. * Use border for progressbar.through These fixes are mainly for light variant. Dark variant requires much more work.
1 parent deddc89 commit c8828c7

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

src/gtk-3.20/scss/widgets/_view.scss

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@
177177
border-radius: $roundness;
178178
border: 1px solid $selected_borders_color;
179179
background-color: $selected_bg_color;
180-
//background-image: linear-gradient(to bottom, $selected_bg_color, darken($selected_bg_color, .1));
181-
box-shadow: inset 0 1px if($variant == 'light', transparentize($white, .7), transparentize($white, .85)),
182-
0 1px if($variant == 'light', transparentize($black, .8), transparentize($black, .9));
183180

184181
&:selected {
185182
&:focus, & {
@@ -205,10 +202,11 @@
205202
}
206203
}
207204

208-
&:disabled {
205+
// Do not use different progressbar color for disabled state,
206+
/*&:disabled {
209207
@include linear-gradient($bg_color);
210208
border-color: border_insensitive($bg_color);
211-
}
209+
}*/
212210

213211
&:backdrop {
214212
@if $variant == 'light' {
@@ -223,18 +221,14 @@
223221
}
224222

225223
&.trough { // progress bar trough in treeviews
226-
background-color: transparentize($fg_color, .9);
227224
border-radius: $roundness;
225+
border: 1px solid alpha(border_normal($bg_color), .5);
226+
background-color: transparentize($fg_color, .9);
228227

229228
&:selected {
230229
&:focus, & {
231-
background-color: if($variant == 'light', transparentize($selected_fg_color, .7), darken($selected_bg_color, .1));
232-
233-
@if $variant == 'light' {
234-
border-width: 1px 0;
235-
border-style: solid;
236-
border-color: $selected_bg_color;
237-
}
230+
background-color: if($variant == 'light', transparentize($bg_color, .7), darken($selected_bg_color, .1));
231+
@if $variant == 'light' { border: 1px solid $selected_borders_color; }
238232
}
239233
}
240234
}

0 commit comments

Comments
 (0)