mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Merge main into PR #439
This commit is contained in:
commit
2b43513db0
37 changed files with 12872 additions and 574 deletions
|
|
@ -473,6 +473,22 @@ enum ProgressBarStyle: String, CaseIterable, Identifiable, Defaults.Serializable
|
|||
var id: String { self.rawValue }
|
||||
}
|
||||
|
||||
enum BatteryNotificationStyle: String, CaseIterable, Identifiable, Defaults.Serializable {
|
||||
case standard
|
||||
case compact
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var title: String {
|
||||
switch self {
|
||||
case .standard:
|
||||
return String(localized: "Standard")
|
||||
case .compact:
|
||||
return String(localized: "Compact")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum MusicAuxiliaryControl: String, CaseIterable, Identifiable, Defaults.Serializable {
|
||||
case shuffle
|
||||
case repeatMode
|
||||
|
|
@ -910,6 +926,10 @@ extension Defaults.Keys {
|
|||
)
|
||||
static let lockScreenPanelUsesBlur = Key<Bool>("lockScreenPanelUsesBlur", default: true)
|
||||
static let lockScreenMusicMergedAirPlayOutput = Key<Bool>("lockScreenMusicMergedAirPlayOutput", default: true)
|
||||
static let lockScreenMusicFullscreenArtworkEnabled = Key<Bool>("lockScreenMusicFullscreenArtworkEnabled", default: true)
|
||||
static let lockScreenKeepAlbumArtVisibleDuringFullscreenArtwork = Key<Bool>("lockScreenKeepAlbumArtVisibleDuringFullscreenArtwork", default: false)
|
||||
static let lockScreenMusicFullscreenVideoArtwork = Key<Bool>("lockScreenMusicFullscreenVideoArtwork", default: true)
|
||||
static let lockScreenUseArtworkLayoutOverFullscreenCanvas = Key<Bool>("lockScreenShowCenteredAlbumArtOverFullscreenCanvas", default: true)
|
||||
static let lockScreenTimerWidgetUsesBlur = Key<Bool>("lockScreenTimerWidgetUsesBlur", default: false)
|
||||
static let lockScreenReminderChipStyle = Key<LockScreenReminderChipStyle>("lockScreenReminderChipStyle", default: .eventColor)
|
||||
static let lockScreenReminderWidgetHorizontalAlignment = Key<String>("lockScreenReminderWidgetHorizontalAlignment", default: "center")
|
||||
|
|
@ -937,7 +957,17 @@ extension Defaults.Keys {
|
|||
static let showBatteryPercentage = Key<Bool>("showBatteryPercentage", default: true)
|
||||
static let showPowerStatusIcons = Key<Bool>("showPowerStatusIcons", default: true)
|
||||
static let playLowBatteryAlertSound = Key<Bool>("playLowBatteryAlertSound", default: true)
|
||||
|
||||
static let showChargingBatteryHUD = Key<Bool>("showChargingBatteryHUD", default: true)
|
||||
static let showLowBatteryHUD = Key<Bool>("showLowBatteryHUD", default: true)
|
||||
static let showFullBatteryHUD = Key<Bool>("showFullBatteryHUD", default: true)
|
||||
static let chargingBatteryHUDDuration = Key<Int>("chargingBatteryHUDDuration", default: 3)
|
||||
static let lowBatteryHUDDuration = Key<Int>("lowBatteryHUDDuration", default: 3)
|
||||
static let fullBatteryHUDDuration = Key<Int>("fullBatteryHUDDuration", default: 3)
|
||||
static let lowBatteryHUDThreshold = Key<Int>("lowBatteryHUDThreshold", default: 20)
|
||||
static let fullBatteryHUDThreshold = Key<Int>("fullBatteryHUDThreshold", default: 100)
|
||||
static let lowBatteryHUDStyle = Key<BatteryNotificationStyle>("lowBatteryHUDStyle", default: .standard)
|
||||
static let fullBatteryHUDStyle = Key<BatteryNotificationStyle>("fullBatteryHUDStyle", default: .standard)
|
||||
|
||||
static let lockScreenBatteryShowsBatteryGauge = Key<Bool>(
|
||||
"lockScreenWeatherShowsBatteryGauge",
|
||||
default: BatteryActivityManager.shared.hasBattery()
|
||||
|
|
@ -988,6 +1018,10 @@ extension Defaults.Keys {
|
|||
|
||||
// MARK: Media Controller
|
||||
static let mediaController = Key<MediaControllerType>("mediaController", default: defaultMediaController)
|
||||
static let spotifySPDCCookie = Key<String>("spotifySPDCCookie", default: "")
|
||||
static let spotifyAuthAccessToken = Key<String>("spotifyAuthAccessToken", default: "")
|
||||
static let spotifyAuthAccessTokenExpiration = Key<Double>("spotifyAuthAccessTokenExpiration", default: 0)
|
||||
static let spotifyAuthLastValidatedAt = Key<Double>("spotifyAuthLastValidatedAt", default: 0)
|
||||
|
||||
// MARK: Bluetooth Audio Devices
|
||||
static let showBluetoothDeviceConnections = Key<Bool>("showBluetoothDeviceConnections", default: true)
|
||||
|
|
@ -1099,6 +1133,12 @@ extension Defaults.Keys {
|
|||
static let enableKeyboardBacklightHUD = Key<Bool>("enableKeyboardBacklightHUD", default: true)
|
||||
static let systemHUDSensitivity = Key<Int>("systemHUDSensitivity", default: 5)
|
||||
static let playVolumeChangeFeedback = Key<Bool>("playVolumeChangeFeedback", default: false)
|
||||
|
||||
// Step sizes for hardware media keys (percent of full range, 1-25)
|
||||
static let volumeStepPercent = Key<Int>("volumeStepPercent", default: 6)
|
||||
static let volumeFineStepPercent = Key<Int>("volumeFineStepPercent", default: 2)
|
||||
static let brightnessStepPercent = Key<Int>("brightnessStepPercent", default: 6)
|
||||
static let brightnessFineStepPercent = Key<Int>("brightnessFineStepPercent", default: 2)
|
||||
|
||||
// MARK: Custom OSD Window Feature
|
||||
static let enableCustomOSD = Key<Bool>("enableCustomOSD", default: false)
|
||||
|
|
@ -1190,6 +1230,7 @@ extension Defaults.Keys {
|
|||
|
||||
// MARK: Lyrics Feature
|
||||
static let enableLyrics = Key<Bool>("enableLyrics", default: false)
|
||||
static let showLiveCanvasInDynamicIsland = Key<Bool>("showLiveCanvasInDynamicIsland", default: false)
|
||||
|
||||
// MARK: Notes Feature
|
||||
static let enableNotes = Key<Bool>("enableNotes", default: false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue