From a3c31f73a2f75af12e8bca075f5d2120ccafcc5c Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Mon, 19 May 2025 17:02:38 +0100 Subject: [PATCH] font size --- system/ui/lib/button.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/ui/lib/button.py b/system/ui/lib/button.py index 38ac7a82c4..69a5da646e 100644 --- a/system/ui/lib/button.py +++ b/system/ui/lib/button.py @@ -21,6 +21,7 @@ ICON_PADDING = 15 DEFAULT_BUTTON_FONT_SIZE = 60 BUTTON_ENABLED_TEXT_COLOR = rl.Color(228, 228, 228, 255) BUTTON_DISABLED_TEXT_COLOR = rl.Color(228, 228, 228, 51) +ACTION_BUTTON_FONT_SIZE = 48 ACTION_BUTTON_TEXT_COLOR = rl.Color(0, 0, 0, 255) @@ -58,6 +59,9 @@ def gui_button( if button_style in (ButtonStyle.PRIMARY, ButtonStyle.DANGER) and not is_enabled: button_style = ButtonStyle.NORMAL + if button_style == ButtonStyle.ACTION and font_size == DEFAULT_BUTTON_FONT_SIZE: + font_size = ACTION_BUTTON_FONT_SIZE + # Set background color based on button type bg_color = BUTTON_BACKGROUND_COLORS[button_style] if is_enabled and rl.check_collision_point_rec(rl.get_mouse_position(), rect):