Ratul SarnaFormat Swift sources14662849 months agoHistory
28 lines · 660 B · Swift
RawDownload
import Foundation /// Controls what the menu bar displays when brand icon mode is enabled.enum MenuBarDisplayMode: String, CaseIterable, Identifiable {    case percent    case pace    case both     var id: String {        self.rawValue    }     var label: String {        switch self {        case .percent: "Percent"        case .pace: "Pace"        case .both: "Both"        }    }     var description: String {        switch self {        case .percent: "Show remaining/used percentage (e.g. 45%)"        case .pace: "Show pace indicator (e.g. +5%)"        case .both: "Show both percentage and pace (e.g. 45% · +5%)"        }    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t