mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
2.3.0 RC 5 (Final?)
This commit is contained in:
parent
861c51314d
commit
48bddb3e14
1 changed files with 9 additions and 3 deletions
|
|
@ -42,15 +42,21 @@ enum AppTheme: String, CaseIterable, Identifiable {
|
|||
|
||||
var preferredColorScheme: ColorScheme? {
|
||||
switch self {
|
||||
case .system, .sunset, .forest: return nil
|
||||
case .darkStatic, .neonAnimated, .blobs, .particles, .aurora, .ocean, .midnight, .cyberwave: return .dark
|
||||
case .system:
|
||||
// Make the default theme use a dark appearance to match Obsidian.
|
||||
return .dark
|
||||
case .sunset, .forest:
|
||||
return nil
|
||||
case .darkStatic, .neonAnimated, .blobs, .particles, .aurora, .ocean, .midnight, .cyberwave:
|
||||
return .dark
|
||||
}
|
||||
}
|
||||
|
||||
var backgroundStyle: BackgroundStyle {
|
||||
switch self {
|
||||
case .system:
|
||||
return .staticGradient(colors: Palette.defaultGradient)
|
||||
// Make the default theme render with the Obsidian gradient.
|
||||
return .staticGradient(colors: Palette.obsidianGradient)
|
||||
case .darkStatic:
|
||||
return .staticGradient(colors: Palette.obsidianGradient)
|
||||
case .neonAnimated:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue