Skip to content

Commit

Permalink
Update AdvancedSettingsPane.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Oct 5, 2024
1 parent 97e58fa commit 830e089
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Ice/Settings/SettingsPanes/AdvancedSettingsPane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct AdvancedSettingsPane: View {
IceSection {
hideApplicationMenus
showSectionDividers
showAdvancedAppearanceSettings
}
IceSection {
enableAlwaysHiddenSection
Expand All @@ -40,9 +41,6 @@ struct AdvancedSettingsPane: View {
showOnHoverDelaySlider
tempShowIntervalSlider
}
IceSection {
showAdvancedAppearanceSettings
}
}
}

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 830e089

Please sign in to comment.