From 053998e5e4719c77b19d363d4b6540a5b617e322 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 15 Nov 2023 18:37:03 +0100 Subject: [PATCH] Fix text color for customizations on locked designs. --- .../CustomizationDrawer.Simple.cs | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Glamourer/Gui/Customization/CustomizationDrawer.Simple.cs b/Glamourer/Gui/Customization/CustomizationDrawer.Simple.cs index a43ae9e..3e15cad 100644 --- a/Glamourer/Gui/Customization/CustomizationDrawer.Simple.cs +++ b/Glamourer/Gui/Customization/CustomizationDrawer.Simple.cs @@ -94,24 +94,26 @@ public partial class CustomizationDrawer using var _ = SetId(index); using var bigGroup = ImRaii.Group(); - using var disabled = ImRaii.Disabled(_locked); - if (indexedBy1) + using (var disabled = ImRaii.Disabled(_locked)) { - ListCombo1(); - ImGui.SameLine(); - ListInputInt1(); - } - else - { - ListCombo0(); - ImGui.SameLine(); - ListInputInt0(); - } + if (indexedBy1) + { + ListCombo1(); + ImGui.SameLine(); + ListInputInt1(); + } + else + { + ListCombo0(); + ImGui.SameLine(); + ListInputInt0(); + } - if (_withApply) - { - ImGui.SameLine(); - ApplyCheckbox(); + if (_withApply) + { + ImGui.SameLine(); + ApplyCheckbox(); + } } ImGui.SameLine();