Commit a6e7e72d authored by Cosimo Cecchi's avatar Cosimo Cecchi

levelbar: port to use gadgets

We now use one gadget for the trough, and one for each block.
parent 971f1a9b
This diff is collapsed.
......@@ -2524,11 +2524,13 @@ progressbar {
levelbar {
box-shadow: _widget_edge(); // needs to be set here to avoid clipping
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3;
&.vertical {
-GtkLevelBar-min-block-width: 3;
-GtkLevelBar-min-block-height: 34;
& block {
min-width: 32px;
min-height: 1px;
}
&.vertical block {
min-width: 1px;
min-height: 32px;
}
& trough {
border: 1px solid;
......
......@@ -3486,12 +3486,13 @@ progressbar {
* Level Bar *
*************/
levelbar {
box-shadow: 0 1px rgba(238, 238, 236, 0);
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3; }
levelbar.vertical {
-GtkLevelBar-min-block-width: 3;
-GtkLevelBar-min-block-height: 34; }
box-shadow: 0 1px rgba(238, 238, 236, 0); }
levelbar block {
min-width: 32px;
min-height: 1px; }
levelbar.vertical block {
min-width: 1px;
min-height: 32px; }
levelbar trough {
border: 1px solid;
padding: 2px;
......
......@@ -3648,12 +3648,13 @@ progressbar {
* Level Bar *
*************/
levelbar {
box-shadow: 0 1px rgba(255, 255, 255, 0);
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3; }
levelbar.vertical {
-GtkLevelBar-min-block-width: 3;
-GtkLevelBar-min-block-height: 34; }
box-shadow: 0 1px rgba(255, 255, 255, 0); }
levelbar block {
min-width: 32px;
min-height: 1px; }
levelbar.vertical block {
min-width: 1px;
min-height: 32px; }
levelbar trough {
border: 1px solid;
padding: 2px;
......
......@@ -1792,16 +1792,6 @@ progressbar progress {
* Level Bar *
*************/
GtkLevelBar {
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3;
}
GtkLevelBar.vertical {
-GtkLevelBar-min-block-width: 3;
-GtkLevelBar-min-block-height: 34;
}
levelbar {
& trough {
// FIXME: outset not working
......@@ -1812,6 +1802,15 @@ levelbar {
@include entry(backdrop);
}
}
& block {
min-width: 32px;
min-height: 1px;
}
&.vertical block {
min-width: 1px;
min-height: 32px;
}
&.horizontal.discrete block { margin: 0 1px; }
&.vertical.discrete block { margin: 1px 0; }
& block.filled.low {
......
......@@ -1948,14 +1948,6 @@ progressbar progress {
/*************
* Level Bar *
*************/
GtkLevelBar {
-GtkLevelBar-min-block-width: 34;
-GtkLevelBar-min-block-height: 3; }
GtkLevelBar.vertical {
-GtkLevelBar-min-block-width: 3;
-GtkLevelBar-min-block-height: 34; }
levelbar trough {
padding: 2px;
border-radius: 3px;
......@@ -1971,6 +1963,12 @@ levelbar trough {
color: #000;
background-image: linear-gradient(to bottom, #fff);
box-shadow: 0 1px rgba(255, 255, 255, 0); }
levelbar block {
min-width: 32px;
min-height: 1px; }
levelbar.vertical block {
min-width: 1px;
min-height: 32px; }
levelbar.horizontal.discrete block {
margin: 0 1px; }
levelbar.vertical.discrete block {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment