From 58dd4f1aa5b62281dc594784b5d5594cc6f3b9bb Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:17:07 +0400 Subject: [PATCH] Increase minimal possible margin for flat buttons --- minimal_theme.tres | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minimal_theme.tres b/minimal_theme.tres index f972b71..0eb4046 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -107,7 +107,9 @@ func _init() -> void: var base_empty_margin_sb : StyleBoxEmpty = StyleBoxEmpty.new() base_empty_margin_sb.set_content_margin_all(base_margin * 2 * scale) var base_empty_wide_sb : StyleBoxEmpty = StyleBoxEmpty.new() - _set_margin(base_empty_wide_sb, base_margin * 1.5, base_margin, base_margin * 1.5, base_margin) + # Ensure minimum margin for wide flat buttons otherwise the topbar looks broken + var base_empty_wide_margin : float = maxf(base_margin, 3.0) + _set_margin(base_empty_wide_sb, base_empty_wide_margin * 1.5, base_empty_wide_margin, base_empty_wide_margin * 1.5, base_empty_wide_margin) # Animation editor