mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11: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;
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue