From a36925dfaaa473f5dc5d3d37c26d24a36c5fd8ae Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Sat, 22 Jul 2023 17:34:11 -0700 Subject: [PATCH] Fix synth helper button formatting --- Craftimizer/Windows/Craft.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Craftimizer/Windows/Craft.cs b/Craftimizer/Windows/Craft.cs index 040050d..c2bf18f 100644 --- a/Craftimizer/Windows/Craft.cs +++ b/Craftimizer/Windows/Craft.cs @@ -54,7 +54,7 @@ public sealed unsafe partial class Craft : Window, IDisposable ImGuiHelpers.ScaledDummy(5); ImGui.PushFont(UiBuilder.IconFont); - var cogWidth = ImGui.CalcTextSize(FontAwesomeIcon.Cog.ToIconString()).X; + var cogWidth = ImGui.CalcTextSize(FontAwesomeIcon.Cog.ToIconString()).X + (ImGui.GetStyle().FramePadding.X * 2); ImGui.PopFont(); ImGui.BeginDisabled(!(SolverTask?.IsCompleted ?? true));