STyled progressbar and scale
parent
aaac3654c6
commit
cc6022e72d
|
@ -6,17 +6,15 @@
|
||||||
! Progress bars *
|
! Progress bars *
|
||||||
******************/
|
******************/
|
||||||
|
|
||||||
* {
|
|
||||||
-GtkProgressBar-min-horizontal-bar-height: 12;
|
|
||||||
-GtkProgressBar-min-vertical-bar-width: 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkProgressBar {
|
GtkProgressBar {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-radius: 2px;
|
border-radius: $roundness;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
color: alpha($fg_color, 0.6);
|
color: alpha($fg_color, 0.6);
|
||||||
|
|
||||||
|
-GtkProgressBar-min-horizontal-bar-height: 12;
|
||||||
|
-GtkProgressBar-min-vertical-bar-width: 12;
|
||||||
|
|
||||||
&.osd {
|
&.osd {
|
||||||
-GtkProgressBar-xspacing: 0;
|
-GtkProgressBar-xspacing: 0;
|
||||||
-GtkProgressBar-yspacing: 0;
|
-GtkProgressBar-yspacing: 0;
|
||||||
|
@ -24,7 +22,7 @@ GtkProgressBar {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.trough {
|
&.trough {
|
||||||
border: 1px solid shade($bg_color, 0.8);
|
border: 1px solid alpha(border_normal($bg_color), 0.5);
|
||||||
background-color: shade($bg_color, 1.08);
|
background-color: shade($bg_color, 1.08);
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
@ -74,132 +72,124 @@ GtkLevelBar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO all stuff below
|
.level-bar {
|
||||||
//.level-bar {
|
&.trough {
|
||||||
// &.trough {
|
border: 1px solid alpha(border_normal($bg_color), 0.5);
|
||||||
// border: 1px solid shade($bg_color, 0.8);
|
background-color: shade($bg_color, 1.08);
|
||||||
// background-color: shade($bg_color, 1.08);
|
background-image: none;
|
||||||
// background-image: none;
|
border-radius: $roundness;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// &.fill-block {
|
&.fill-block {
|
||||||
// // FIXME: it would be nice to set make fill blocks bigger, but we'd need
|
// FIXME: it would be nice to set make fill blocks bigger, but we'd need
|
||||||
// // :nth-child working on discrete indicators
|
// :nth-child working on discrete indicators
|
||||||
// border: 1px shade($selected_bg_color, 5%);
|
background-color: $selected_bg_color;
|
||||||
// background-color: $selected_bg_color;
|
border-color: transparent;
|
||||||
// box-shadow: 0 1px transparentize(black, 0.9);
|
border-radius: 0;
|
||||||
// border-radius: 1px;
|
|
||||||
// &:backdrop {
|
&.indicator-discrete {
|
||||||
// border-color: $selected_bg_color;
|
&.horizontal { margin-right: 1px; }
|
||||||
// box-shadow: none;
|
&.vertical { margin-bottom: 1px; }
|
||||||
// }
|
}
|
||||||
// &.indicator-discrete {
|
|
||||||
// &.horizontal { margin: 0 1px; }
|
&.level-high {
|
||||||
// &.vertical { margin: 1px 0; }
|
background-color: $success_color;
|
||||||
// }
|
border-color: transparent;
|
||||||
// &.level-high {
|
}
|
||||||
// border-color: darken($success_color,10%);
|
|
||||||
// background-color: $success_color;
|
&.level-low {
|
||||||
// &:backdrop { border-color: $success_color; }
|
background-color: $warning_color;
|
||||||
// }
|
border-color: transparent;
|
||||||
// &.level-low {
|
}
|
||||||
// border-color: darken($warning_color,10%);
|
|
||||||
// background-color: $warning_color;
|
&.empty-fill-block {
|
||||||
// &:backdrop { border-color: $warning_color; };
|
background-color: transparent;
|
||||||
// }
|
border-color: transparent;
|
||||||
// &.empty-fill-block {
|
box-shadow: none;
|
||||||
// background-color: transparent;
|
}
|
||||||
// border-color: transparentize($fg_color,0.9);
|
}
|
||||||
// box-shadow: none;
|
}
|
||||||
// &:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
|
|
||||||
// }
|
.scale {
|
||||||
// }
|
-GtkRange-slider-width: 16;
|
||||||
//}
|
-GtkRange-trough-border: 1;
|
||||||
//
|
-GtkScale-slider-length: 16;
|
||||||
//.scale {
|
|
||||||
// -GtkRange-slider-width: 16;
|
padding: 0;
|
||||||
// -GtkRange-trough-border: 1;
|
border-width: 1px;
|
||||||
// -GtkScale-slider-length: 16;
|
border-radius: $roundness;
|
||||||
//
|
outline-offset: -1px;
|
||||||
// padding: 0;
|
|
||||||
// border-width: 1px;
|
|
||||||
// border-radius: 2px;
|
&.slider {
|
||||||
// outline-offset: -1px;
|
border-radius: 8px;
|
||||||
//}
|
background-color: shade($bg_color, 1.08);
|
||||||
//
|
background-image: none;
|
||||||
//.scale.slider {
|
/* we will draw the border using box shadow for now */
|
||||||
// border-radius: 8px;
|
box-shadow: inset 1px 0 border_normal($bg_color),
|
||||||
// background-color: shade($bg_color, 1.08);
|
inset 0 1px border_normal($bg_color),
|
||||||
// background-image: none;
|
inset -1px 0 border_normal($bg_color),
|
||||||
// /* we will draw the border using box shadow for now */
|
inset 0 -1px border_normal($bg_color);
|
||||||
// box-shadow: inset 1px 0 shade($bg_color, 0.8),
|
|
||||||
// inset 0 1px shade($bg_color, 0.8),
|
&:hover, &:focus {
|
||||||
// inset -1px 0 shade($bg_color, 0.8),
|
box-shadow: inset 1px 0 border_focus($bg_color),
|
||||||
// inset 0 -1px shade($bg_color, 0.8);
|
inset 0 1px border_focus($bg_color),
|
||||||
//}
|
inset -1px 0 border_focus($bg_color),
|
||||||
//
|
inset 0 -1px border_focus($bg_color);
|
||||||
//.scale.slider:hover {
|
}
|
||||||
// box-shadow: inset 1px 0 shade($bg_color, 0.7),
|
|
||||||
// inset 0 1px shade($bg_color, 0.7),
|
&:active {
|
||||||
// inset -1px 0 shade($bg_color, 0.7),
|
box-shadow: inset 1px 0 border_active($bg_color),
|
||||||
// inset 0 -1px shade($bg_color, 0.7);
|
inset 0 1px border_active($bg_color),
|
||||||
//}
|
inset -1px 0 border_active($bg_color),
|
||||||
//
|
inset 0 -1px border_active($bg_color);
|
||||||
//.scale.slider:insensitive {
|
}
|
||||||
// background-color: shade($bg_color, 0.9);
|
|
||||||
// background-image: none;
|
&:insensitive {
|
||||||
// box-shadow: inset 1px 0 shade($bg_color, 0.85),
|
background-color: shade($bg_color, 0.9);
|
||||||
// inset 0 1px shade($bg_color, 0.85),
|
background-image: none;
|
||||||
// inset -1px 0 shade($bg_color, 0.85),
|
box-shadow: inset 1px 0 border_insensitive($bg_color),
|
||||||
// inset 0 -1px shade($bg_color, 0.85);
|
inset 0 1px border_insensitive($bg_color),
|
||||||
//}
|
inset -1px 0 border_insensitive($bg_color),
|
||||||
//
|
inset 0 -1px border_insensitive($bg_color);
|
||||||
//.scale.slider.fine-tune:active,
|
}
|
||||||
//.scale.slider.fine-tune:active:hover,
|
}
|
||||||
//.scale.slider.fine-tune.horizontal:active,
|
|
||||||
//.scale.slider.fine-tune.horizontal:active:hover {
|
&.fine-tune {
|
||||||
// background-size: 50%;
|
&, &.horizontal {
|
||||||
// background-repeat: no-repeat;
|
&:active, &:active:hover {
|
||||||
// background-position: center;
|
background-size: 50%;
|
||||||
//}
|
background-repeat: no-repeat;
|
||||||
//
|
background-position: center;
|
||||||
//.scale.mark {
|
}
|
||||||
// border-color: shade($bg_color, 0.8);
|
}
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//.scale.trough {
|
&.mark { border-color: alpha(border_normal($bg_color), 0.5); }
|
||||||
// margin: 7px 0;
|
|
||||||
// border-color: shade($bg_color, 0.8);
|
|
||||||
// border-radius: 2px;
|
&.trough {
|
||||||
// background-color: shade($bg_color, 1.08);
|
margin: 7px 0;
|
||||||
// background-image: none;
|
border: 1px solid alpha(border_normal($bg_color), 0.5);
|
||||||
//}
|
border-radius: $roundness;
|
||||||
//
|
background-color: shade($bg_color, 1.08);
|
||||||
//.scale.trough.vertical {
|
background-image: none;
|
||||||
// margin: 0 7px;
|
|
||||||
//}
|
&:insensitive { background-color: shade($bg_color, 0.9); }
|
||||||
//
|
|
||||||
//.menuitem .scale.highlight.left,
|
&.vertical { margin: 0 7px; }
|
||||||
//.scale.highlight.left {
|
}
|
||||||
// border-color: $selected_bg_color;
|
|
||||||
// background-color: $selected_bg_color;
|
&.highlight {
|
||||||
// background-image: none;
|
&, &.left, &.bottom {
|
||||||
//}
|
border-color: $selected_bg_color;
|
||||||
//
|
background-color: $selected_bg_color;
|
||||||
//.menuitem .scale.highlight.left:hover {
|
background-image: none;
|
||||||
// border-color: shade($selected_bg_color, 0.8);
|
|
||||||
// background-color: shade($selected_bg_color, 0.8);
|
&:insensitive {
|
||||||
//}
|
border-color: shade($bg_color, 0.7);
|
||||||
//
|
background-color: shade($bg_color, 0.8);
|
||||||
//.scale.highlight.bottom {
|
}
|
||||||
// border-color: $selected_bg_color;
|
}
|
||||||
// background-color: $selected_bg_color;
|
}
|
||||||
// background-image: none;
|
}
|
||||||
//}
|
|
||||||
//
|
|
||||||
//.scale.trough:insensitive,
|
|
||||||
//.scale.highlight.left:insensitive {
|
|
||||||
// border-color: shade($bg_color, 0.85);
|
|
||||||
// background-color: shade($bg_color, 0.9);
|
|
||||||
// background-image: none;
|
|
||||||
//}
|
|
||||||
|
|
Loading…
Reference in New Issue