From 4964c5e0382ceefb91701f90cb80eefb201dabc4 Mon Sep 17 00:00:00 2001 From: Stoppedpuma <58333920+Stoppedpuma@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:43:35 +0100 Subject: [PATCH] Adjust styled_button --- src/ui/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 141b4e6..b1fdd5b 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -273,7 +273,7 @@ impl EguiExt for Ui { let (icon, description) = parse_icon_plus_text(text); let icon = icon.unwrap_or_default(); - let spacing = if icon.is_empty() { "" } else { " " }; + let spacing = if icon.is_empty() { "" } else { " " }; let r = self.add( egui::Button::new(format!("{spacing}{description}")) .rounding(self.get_rounding(BUTTON_HEIGHT_LARGE))