Skip to content

Commit

Permalink
Rename Default Ice Bar location to Dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Sep 21, 2024
1 parent cda5f03 commit 5b15849
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Ice/Settings/SettingsManagers/GeneralSettingsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Ice/Settings/SettingsPanes/GeneralSettingsPane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion Ice/UI/IceBar/IceBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ final class IceBarPanel: NSPanel {
}

switch iceBarLocation {
case .default:
case .dynamic:
if appState.eventManager.isMouseInsideEmptyMenuBarSpace {
return getOrigin(for: .mousePointer)
}
Expand Down
4 changes: 2 additions & 2 deletions Ice/UI/IceBar/IceBarLocation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}
Expand Down

0 comments on commit 5b15849

Please sign in to comment.