[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.
pull/663/head
Khurshid Alam 2017-03-29 19:35:48 +05:30
parent deddc89cb6
commit c8828c73ce
1 changed files with 7 additions and 13 deletions

View File

@ -177,9 +177,6 @@
border-radius: $roundness; border-radius: $roundness;
border: 1px solid $selected_borders_color; border: 1px solid $selected_borders_color;
background-color: $selected_bg_color; background-color: $selected_bg_color;
//background-image: linear-gradient(to bottom, $selected_bg_color, darken($selected_bg_color, .1));
box-shadow: inset 0 1px if($variant == 'light', transparentize($white, .7), transparentize($white, .85)),
0 1px if($variant == 'light', transparentize($black, .8), transparentize($black, .9));
&:selected { &:selected {
&:focus, & { &:focus, & {
@ -205,10 +202,11 @@
} }
} }
&:disabled { // Do not use different progressbar color for disabled state,
/*&:disabled {
@include linear-gradient($bg_color); @include linear-gradient($bg_color);
border-color: border_insensitive($bg_color); border-color: border_insensitive($bg_color);
} }*/
&:backdrop { &:backdrop {
@if $variant == 'light' { @if $variant == 'light' {
@ -223,18 +221,14 @@
} }
&.trough { // progress bar trough in treeviews &.trough { // progress bar trough in treeviews
background-color: transparentize($fg_color, .9);
border-radius: $roundness; border-radius: $roundness;
border: 1px solid alpha(border_normal($bg_color), .5);
background-color: transparentize($fg_color, .9);
&:selected { &:selected {
&:focus, & { &:focus, & {
background-color: if($variant == 'light', transparentize($selected_fg_color, .7), darken($selected_bg_color, .1)); background-color: if($variant == 'light', transparentize($bg_color, .7), darken($selected_bg_color, .1));
@if $variant == 'light' { border: 1px solid $selected_borders_color; }
@if $variant == 'light' {
border-width: 1px 0;
border-style: solid;
border-color: $selected_bg_color;
}
} }
} }
} }