forked from AuroraMiddleware/gtk
Adwaita: fix a thinko wrt fine-tune scales
added a scale node padding compensation for the trough growth in fine-tune mode, so now the scale node doesn't grow anymore when mark labels are present.
This commit is contained in:
parent
7382f3c347
commit
88d51a8604
@ -2516,6 +2516,16 @@ scale {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.fine-tune {
|
&.fine-tune {
|
||||||
|
&.horizontal {
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.vertical {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
slider { margin: -6px; }
|
slider { margin: -6px; }
|
||||||
|
|
||||||
fill,
|
fill,
|
||||||
@ -2630,7 +2640,6 @@ scale {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.horizontal {
|
&.horizontal {
|
||||||
indicator {
|
indicator {
|
||||||
min-height: $_marks_lenght;
|
min-height: $_marks_lenght;
|
||||||
@ -2645,7 +2654,6 @@ scale {
|
|||||||
}
|
}
|
||||||
&.fine-tune indicator { min-width: ($_marks_lenght - 2px); }
|
&.fine-tune indicator { min-width: ($_marks_lenght - 2px); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// *WARNING* scale with marks madness following
|
// *WARNING* scale with marks madness following
|
||||||
|
|
||||||
// FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
|
// FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
|
||||||
|
@ -2615,6 +2615,12 @@ scale {
|
|||||||
min-height: 18px;
|
min-height: 18px;
|
||||||
min-width: 18px;
|
min-width: 18px;
|
||||||
margin: -8px; }
|
margin: -8px; }
|
||||||
|
scale.fine-tune.horizontal {
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px; }
|
||||||
|
scale.fine-tune.vertical {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px; }
|
||||||
scale.fine-tune slider {
|
scale.fine-tune slider {
|
||||||
margin: -6px; }
|
margin: -6px; }
|
||||||
scale.fine-tune fill,
|
scale.fine-tune fill,
|
||||||
|
@ -2646,6 +2646,12 @@ scale {
|
|||||||
min-height: 18px;
|
min-height: 18px;
|
||||||
min-width: 18px;
|
min-width: 18px;
|
||||||
margin: -8px; }
|
margin: -8px; }
|
||||||
|
scale.fine-tune.horizontal {
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px; }
|
||||||
|
scale.fine-tune.vertical {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px; }
|
||||||
scale.fine-tune slider {
|
scale.fine-tune slider {
|
||||||
margin: -6px; }
|
margin: -6px; }
|
||||||
scale.fine-tune fill,
|
scale.fine-tune fill,
|
||||||
|
Loading…
Reference in New Issue
Block a user