mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 23:24:32 +00:00
Fully working
This commit is contained in:
parent
f06e14074a
commit
e6eaf933ab
7 changed files with 296 additions and 84 deletions
|
|
@ -49,6 +49,25 @@ enum ClipboardDisplayMode: String, CaseIterable, Codable, Defaults.Serializable
|
|||
}
|
||||
}
|
||||
|
||||
enum ColorPickerDisplayMode: String, CaseIterable, Codable, Defaults.Serializable {
|
||||
case popover = "popover" // Traditional popover attached to button
|
||||
case panel = "panel" // Floating panel near notch
|
||||
|
||||
var displayName: String {
|
||||
switch self {
|
||||
case .popover: return "Popover"
|
||||
case .panel: return "Panel"
|
||||
}
|
||||
}
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .popover: return "Shows color picker as a dropdown attached to the color picker button"
|
||||
case .panel: return "Shows color picker in a floating panel near the notch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum HideNotchOption: String, Defaults.Serializable {
|
||||
case always
|
||||
case nowPlayingOnly
|
||||
|
|
@ -189,6 +208,9 @@ extension Defaults.Keys {
|
|||
// MARK: ColorPicker Feature
|
||||
static let enableColorPickerFeature = Key<Bool>("enableColorPickerFeature", default: true)
|
||||
static let showColorFormats = Key<Bool>("showColorFormats", default: true)
|
||||
static let colorPickerDisplayMode = Key<ColorPickerDisplayMode>("colorPickerDisplayMode", default: .panel)
|
||||
static let colorHistorySize = Key<Int>("colorHistorySize", default: 10)
|
||||
static let showColorPickerIcon = Key<Bool>("showColorPickerIcon", default: true)
|
||||
|
||||
// MARK: Clipboard Feature
|
||||
static let enableClipboardManager = Key<Bool>("enableClipboardManager", default: true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue