From 304d7beddffb0c3936aee612b24cdf2245f24e2e Mon Sep 17 00:00:00 2001 From: jdrueckert Date: Thu, 30 May 2024 23:08:55 +0200 Subject: [PATCH] ui: reduce button height to text field height (#5248) --- .../org/terasology/engine/assets/skins/mainmenu.skin | 8 ++++++++ .../engine/assets/ui/menu/universeSetupScreen.ui | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/engine/src/main/resources/org/terasology/engine/assets/skins/mainmenu.skin b/engine/src/main/resources/org/terasology/engine/assets/skins/mainmenu.skin index 4d759d93676..585b1ac39b7 100644 --- a/engine/src/main/resources/org/terasology/engine/assets/skins/mainmenu.skin +++ b/engine/src/main/resources/org/terasology/engine/assets/skins/mainmenu.skin @@ -128,6 +128,14 @@ "text-align-horizontal": "left" } } + }, + "button-text-field-height": { + "elements": { + "UIButton": { + "min-height": 28, + "max-height": 28 + } + } } } } diff --git a/engine/src/main/resources/org/terasology/engine/assets/ui/menu/universeSetupScreen.ui b/engine/src/main/resources/org/terasology/engine/assets/ui/menu/universeSetupScreen.ui index c96b692d95f..23fa1635fb1 100644 --- a/engine/src/main/resources/org/terasology/engine/assets/ui/menu/universeSetupScreen.ui +++ b/engine/src/main/resources/org/terasology/engine/assets/ui/menu/universeSetupScreen.ui @@ -171,7 +171,8 @@ { "type": "UIButton", "text": "${engine:menu#re-roll}", - "id": "reRoll" + "id": "reRoll", + "family": "button-text-field-height" } ] },