diff --git a/Ice/Settings/SettingsManagers/GeneralSettingsManager.swift b/Ice/Settings/SettingsManagers/GeneralSettingsManager.swift index 0a8de35..950039a 100644 --- a/Ice/Settings/SettingsManagers/GeneralSettingsManager.swift +++ b/Ice/Settings/SettingsManagers/GeneralSettingsManager.swift @@ -29,7 +29,7 @@ final class GeneralSettingsManager: ObservableObject { @Published var useIceBar = false /// The location where the Ice Bar appears. - @Published var iceBarLocation: IceBarLocation = .default + @Published var iceBarLocation: IceBarLocation = .dynamic /// A Boolean value that indicates whether the hidden section /// should be shown when the mouse pointer clicks in an empty diff --git a/Ice/Settings/SettingsPanes/GeneralSettingsPane.swift b/Ice/Settings/SettingsPanes/GeneralSettingsPane.swift index 455046e..02b9f15 100644 --- a/Ice/Settings/SettingsPanes/GeneralSettingsPane.swift +++ b/Ice/Settings/SettingsPanes/GeneralSettingsPane.swift @@ -184,7 +184,7 @@ struct GeneralSettingsPane: View { } .annotation { switch manager.iceBarLocation { - case .default: + case .dynamic: Text("The Ice Bar's location changes based on context") case .mousePointer: Text("The Ice Bar is centered below the mouse pointer") diff --git a/Ice/UI/IceBar/IceBar.swift b/Ice/UI/IceBar/IceBar.swift index c85c06d..b057328 100644 --- a/Ice/UI/IceBar/IceBar.swift +++ b/Ice/UI/IceBar/IceBar.swift @@ -111,7 +111,7 @@ final class IceBarPanel: NSPanel { } switch iceBarLocation { - case .default: + case .dynamic: if appState.eventManager.isMouseInsideEmptyMenuBarSpace { return getOrigin(for: .mousePointer) } diff --git a/Ice/UI/IceBar/IceBarLocation.swift b/Ice/UI/IceBar/IceBarLocation.swift index f48d14f..3d2cc06 100644 --- a/Ice/UI/IceBar/IceBarLocation.swift +++ b/Ice/UI/IceBar/IceBarLocation.swift @@ -8,7 +8,7 @@ import SwiftUI /// Locations where the Ice Bar can appear. enum IceBarLocation: Int, CaseIterable, Identifiable { /// The Ice Bar will appear in different locations based on context. - case `default` = 0 + case dynamic = 0 /// The Ice Bar will appear centered below the mouse pointer. case mousePointer = 1 @@ -21,7 +21,7 @@ enum IceBarLocation: Int, CaseIterable, Identifiable { /// Localized string key representation. var localized: LocalizedStringKey { switch self { - case .default: "Default" + case .dynamic: "Dynamic" case .mousePointer: "Mouse pointer" case .iceIcon: "Ice icon" }