From 830e08915924b86a0ac2ef4129debb4e87999bce Mon Sep 17 00:00:00 2001 From: Jordan Baird Date: Fri, 4 Oct 2024 18:16:50 -0600 Subject: [PATCH] Update AdvancedSettingsPane.swift --- .../SettingsPanes/AdvancedSettingsPane.swift | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Ice/Settings/SettingsPanes/AdvancedSettingsPane.swift b/Ice/Settings/SettingsPanes/AdvancedSettingsPane.swift index ac797714..b7f52cf5 100644 --- a/Ice/Settings/SettingsPanes/AdvancedSettingsPane.swift +++ b/Ice/Settings/SettingsPanes/AdvancedSettingsPane.swift @@ -31,6 +31,7 @@ struct AdvancedSettingsPane: View { IceSection { hideApplicationMenus showSectionDividers + showAdvancedAppearanceSettings } IceSection { enableAlwaysHiddenSection @@ -40,9 +41,6 @@ struct AdvancedSettingsPane: View { showOnHoverDelaySlider tempShowIntervalSlider } - IceSection { - showAdvancedAppearanceSettings - } } } @@ -73,6 +71,12 @@ struct AdvancedSettingsPane: View { } } + @ViewBuilder + private var showAdvancedAppearanceSettings: some View { + Toggle("Show advanced appearance settings", isOn: manager.bindings.showAdvancedAppearanceSettings) + .annotation("Show advanced settings in the Menu Bar Appearance editor") + } + @ViewBuilder private var enableAlwaysHiddenSection: some View { Toggle("Enable always-hidden section", isOn: manager.bindings.enableAlwaysHiddenSection) @@ -131,12 +135,6 @@ struct AdvancedSettingsPane: View { } .annotation("The amount of time to wait before hiding temporarily shown menu bar items") } - - @ViewBuilder - private var showAdvancedAppearanceSettings: some View { - Toggle("Show advanced appearance settings", isOn: manager.bindings.showAdvancedAppearanceSettings) - .annotation("Show advanced settings in the Menu Bar Appearance editor") - } } #Preview {