mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +00:00
Fix strings detections and translates the entire "Appearance" section in settings
This commit is contained in:
parent
69d00d2f7a
commit
8f0daa87ca
3 changed files with 504 additions and 39 deletions
|
|
@ -106,6 +106,17 @@ enum SliderColorEnum: String, CaseIterable, Defaults.Serializable {
|
|||
case white = "White"
|
||||
case albumArt = "Match album art"
|
||||
case accent = "Accent color"
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
case .white:
|
||||
return String(localized: "Standard")
|
||||
case .albumArt:
|
||||
return String(localized: "Custom Liquid")
|
||||
case .accent:
|
||||
return String(localized: "Accent color")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LockScreenGlassStyle: String, CaseIterable, Defaults.Serializable, Identifiable {
|
||||
|
|
@ -124,6 +135,15 @@ enum LockScreenGlassCustomizationMode: String, CaseIterable, Defaults.Serializab
|
|||
var allowsVariantSelection: Bool {
|
||||
self == .customLiquid
|
||||
}
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
case .standard:
|
||||
return String(localized: "Standard")
|
||||
case .customLiquid:
|
||||
return String(localized: "Custom Liquid")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LockScreenTimerSurfaceMode: String, CaseIterable, Defaults.Serializable, Identifiable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue