mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
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:
parent
8dc6ee6fb1
commit
b4955d2415
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ Checkbox := Rectangle {
|
||||||
height: root.height;
|
height: root.height;
|
||||||
|
|
||||||
text: "✓";
|
text: "✓";
|
||||||
font-size: height;
|
font-size: height * 90%;
|
||||||
color: white;
|
color: white;
|
||||||
animate color { duration: 200ms; }
|
animate color { duration: 200ms; }
|
||||||
vertical-alignment: center;
|
vertical-alignment: center;
|
||||||
|
@ -428,7 +428,7 @@ export MainWindow := Window {
|
||||||
padding: height * 25%;
|
padding: height * 25%;
|
||||||
Text {
|
Text {
|
||||||
text: " ↻ ";
|
text: " ↻ ";
|
||||||
font-size: parent.height * 50%;
|
font-size: parent.height * 40%;
|
||||||
color: current-theme.game-highlight-color;
|
color: current-theme.game-highlight-color;
|
||||||
vertical-alignment: center;
|
vertical-alignment: center;
|
||||||
TouchArea {
|
TouchArea {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue