Skip to content

Commit ab172c2

Browse files
committed
[Gtk-3.22] Re-Introduce disabled state under treeview.progressbar
1 parent c8828c7 commit ab172c2

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
trough {
2424
border: 1px solid alpha(border_normal($bg_color), .5);
25-
background-color: shade($bg_color, 1.08);
25+
background-color: shade($bg_color, 1.1);
2626
background-image: none;
2727
border-radius: $roundness;
2828
}

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,12 @@
199199

200200
background-color: mix($backdrop_base_color, $selected_bg_color, .9);
201201
}
202+
203+
&:disabled { background-color: shade($selected_bg_color, 1.08); } //required if disabled state is turned on
202204
}
203205
}
204206

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

211209
&:backdrop {
212210
@if $variant == 'light' {
@@ -223,14 +221,18 @@
223221
&.trough { // progress bar trough in treeviews
224222
border-radius: $roundness;
225223
border: 1px solid alpha(border_normal($bg_color), .5);
226-
background-color: transparentize($fg_color, .9);
224+
background-color: shade($bg_color, 1.1);
227225

228226
&:selected {
229227
&:focus, & {
230-
background-color: if($variant == 'light', transparentize($bg_color, .7), darken($selected_bg_color, .1));
228+
background-color: if($variant == 'light', shade($bg_color, 1.1), darken($selected_bg_color, .1));
231229
@if $variant == 'light' { border: 1px solid $selected_borders_color; }
230+
231+
&:disabled { background-color: shade($bg_color, 1.08); }
232232
}
233233
}
234+
235+
&:disabled { background-color: shade($bg_color, 1.08); }
234236
}
235237

236238
header {

0 commit comments

Comments
 (0)