From 506795b2411c3fe798967e8bef6cf57452126eba Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Tue, 26 Sep 2023 18:51:28 +0200 Subject: [PATCH] Add a border around the enable/disable all toggle in Automated Designs. --- Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs b/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs index a5dedaa..3f0e26f 100644 --- a/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs +++ b/Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs @@ -303,8 +303,13 @@ public class SetPanel using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, new Vector2(2 * ImGuiHelpers.GlobalScale)); var newType = design.ApplicationType; var newTypeInt = (uint)newType; - if (ImGui.CheckboxFlags("##all", ref newTypeInt, (uint)AutoDesign.Type.All)) - newType = (AutoDesign.Type)newTypeInt; + style.Push(ImGuiStyleVar.FrameBorderSize, ImGuiHelpers.GlobalScale); + using (var c = ImRaii.PushColor(ImGuiCol.Border, ColorId.FolderLine.Value())) + { + if (ImGui.CheckboxFlags("##all", ref newTypeInt, (uint)AutoDesign.Type.All)) + newType = (AutoDesign.Type)newTypeInt; + } + style.Pop(); ImGuiUtil.HoverTooltip("Toggle all modes at once."); void Box(int idx)