Fix shuffle and auto-play checkbox in slide puzzle

Text's behavior right now is to clip on a line basis, so with the given
font-size for these two elements, the glyphs aren't shown at all because
the ascent + descent that's use for the clip test is bigger than the
maximum height, despite the actual glyphs fitting.

For now, reduce the font-size slightly to make the glyphs fit.
This commit is contained in:
Simon Hausmann 2021-06-30 16:10:24 +02:00
parent 8dc6ee6fb1
commit b4955d2415

View file

@ -72,7 +72,7 @@ Checkbox := Rectangle {
height: root.height;
text: "✓";
font-size: height;
font-size: height * 90%;
color: white;
animate color { duration: 200ms; }
vertical-alignment: center;
@ -428,7 +428,7 @@ export MainWindow := Window {
padding: height * 25%;
Text {
text: " ↻ ";
font-size: parent.height * 50%;
font-size: parent.height * 40%;
color: current-theme.game-highlight-color;
vertical-alignment: center;
TouchArea {