mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +00:00
Update DynamicIsland Configuration
This commit is contained in:
parent
ddda04369d
commit
b900804acb
8 changed files with 333 additions and 11 deletions
|
|
@ -29,6 +29,36 @@ public enum Style {
|
|||
case floating
|
||||
}
|
||||
|
||||
/// Controls how Atoll renders on external and non-notched displays.
|
||||
/// - `notch`: Standard notch shape (concave top corners blending into the screen edge).
|
||||
/// - `dynamicIsland`: Pill-shaped island with continuously rounded corners,
|
||||
/// inspired by DynamicNotchKit's floating style. Only applies to screens
|
||||
/// that do NOT have a physical notch.
|
||||
enum ExternalDisplayStyle: String, CaseIterable, Defaults.Serializable, Identifiable {
|
||||
case notch = "Standard Notch"
|
||||
case dynamicIsland = "Dynamic Island"
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
case .notch:
|
||||
return String(localized: "Standard Notch")
|
||||
case .dynamicIsland:
|
||||
return String(localized: "Dynamic Island")
|
||||
}
|
||||
}
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .notch:
|
||||
return String(localized: "Classic notch shape that blends into the top screen edge")
|
||||
case .dynamicIsland:
|
||||
return String(localized: "Pill-shaped island with rounded corners, similar to iPhone's Dynamic Island")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum ContentType: Int, Codable, Hashable, Equatable {
|
||||
case normal
|
||||
case menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue