Skip to content

Commit

Permalink
Update menu bar item display names
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Jul 4, 2024
1 parent 989b57b commit d7076d4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Ice/MenuBar/MenuBarItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,22 @@ struct MenuBarItem {
return switch MenuBarItemInfo.Namespace(owningApplication.bundleIdentifier) {
case .controlCenter:
switch title {
case "BentoBox": bestName // Control Center item
case "NowPlaying": "Now Playing"
case "StageManager": "Stage Manager"
case "ScreenMirroring": "Screen Mirroring"
case "AccessibilityShortcuts": "Accessibility Shortcuts"
case "MusicRecognition": "Music Recognition"
case "UserSwitcher": "User Switcher"
case "BentoBox": "Control Center"
case "FocusModes": "Focus"
case "KeyboardBrightness": "Keyboard Brightness"
case "MusicRecognition": "Music Recognition"
case "NowPlaying": "Now Playing"
case "ScreenMirroring": "Screen Mirroring"
case "StageManager": "Stage Manager"
case "UserSwitcher": "Fast User Switching"
case "WiFi": "Wi-Fi"
default: title
}
case .systemUIServer:
switch title {
case "TimeMachine.TMMenuExtraHost": "Time Machine"
case "TimeMachine.TMMenuExtraHost"/*Sonoma*/,
"TimeMachineMenuExtra.TMMenuExtraHost"/*Sequoia*/: "Time Machine"

Check warning on line 105 in Ice/MenuBar/MenuBarItem.swift

View workflow job for this annotation

GitHub Actions / swiftlint

Indentation Width Violation: Code should be indented using one tab or 4 spaces (indentation_width)
default: title
}
default:
Expand Down

0 comments on commit d7076d4

Please sign in to comment.