mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
Add Starfield inspired themes
This commit is contained in:
parent
113b28db18
commit
9cffb7eda2
2 changed files with 29 additions and 1 deletions
|
@ -5,7 +5,8 @@ public let availableColorsSets: [ColorSetCouple] =
|
||||||
.init(light: IceCubeNeonLight(), dark: IceCubeNeonDark()),
|
.init(light: IceCubeNeonLight(), dark: IceCubeNeonDark()),
|
||||||
.init(light: DesertLight(), dark: DesertDark()),
|
.init(light: DesertLight(), dark: DesertDark()),
|
||||||
.init(light: NemesisLight(), dark: NemesisDark()),
|
.init(light: NemesisLight(), dark: NemesisDark()),
|
||||||
.init(light: MediumLight(), dark: MediumDark())]
|
.init(light: MediumLight(), dark: MediumDark()),
|
||||||
|
.init(light: ConstellationLight(), dark: ConstellationDark())]
|
||||||
|
|
||||||
public protocol ColorSet {
|
public protocol ColorSet {
|
||||||
var name: ColorSetName { get }
|
var name: ColorSetName { get }
|
||||||
|
@ -31,6 +32,8 @@ public enum ColorSetName: String {
|
||||||
case nemesisLight = "Nemesis - Light"
|
case nemesisLight = "Nemesis - Light"
|
||||||
case mediumLight = "Medium - Light"
|
case mediumLight = "Medium - Light"
|
||||||
case mediumDark = "Medium - Dark"
|
case mediumDark = "Medium - Dark"
|
||||||
|
case constellationLight = "Constellation - Light"
|
||||||
|
case constellationDark = "Constellation - Dark"
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct ColorSetCouple: Identifiable {
|
public struct ColorSetCouple: Identifiable {
|
||||||
|
@ -151,3 +154,26 @@ public struct MediumLight: ColorSet {
|
||||||
|
|
||||||
public init() {}
|
public init() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public struct ConstellationDark: ColorSet {
|
||||||
|
public var name: ColorSetName = .constellationDark
|
||||||
|
public var scheme: ColorScheme = .dark
|
||||||
|
public var tintColor: Color = .init(hex: 0xFFD966)
|
||||||
|
public var primaryBackgroundColor: Color = .init(hex: 0x09192C)
|
||||||
|
public var secondaryBackgroundColor: Color = .init(hex: 0x00557E)
|
||||||
|
public var labelColor: Color = .init(hex: 0xE2E4E2)
|
||||||
|
|
||||||
|
public init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public struct ConstellationLight: ColorSet {
|
||||||
|
public var name: ColorSetName = .constellationLight
|
||||||
|
public var scheme: ColorScheme = .light
|
||||||
|
public var tintColor: Color = .init(hex: 0xc82238)
|
||||||
|
public var primaryBackgroundColor: Color = .init(hex: 0xf4f5f7)
|
||||||
|
public var secondaryBackgroundColor: Color = .init(hex: 0xacc7e5)
|
||||||
|
public var labelColor: Color = .black
|
||||||
|
|
||||||
|
public init() {}
|
||||||
|
}
|
||||||
|
|
|
@ -183,6 +183,8 @@ public class Theme: ObservableObject {
|
||||||
NemesisLight(),
|
NemesisLight(),
|
||||||
MediumLight(),
|
MediumLight(),
|
||||||
MediumDark(),
|
MediumDark(),
|
||||||
|
ConstellationLight(),
|
||||||
|
ConstellationDark(),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue