mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-18 05:00:35 +00:00
Add Threads themes
This commit is contained in:
parent
83e752ce63
commit
4ba8d004d1
|
@ -6,7 +6,8 @@ public let availableColorsSets: [ColorSetCouple] =
|
||||||
.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())]
|
.init(light: ConstellationLight(), dark: ConstellationDark()),
|
||||||
|
.init(light: ThreadsLight(), dark: ThreadsDark())]
|
||||||
|
|
||||||
public protocol ColorSet {
|
public protocol ColorSet {
|
||||||
var name: ColorSetName { get }
|
var name: ColorSetName { get }
|
||||||
|
@ -34,6 +35,8 @@ public enum ColorSetName: String {
|
||||||
case mediumDark = "Medium - Dark"
|
case mediumDark = "Medium - Dark"
|
||||||
case constellationLight = "Constellation - Light"
|
case constellationLight = "Constellation - Light"
|
||||||
case constellationDark = "Constellation - Dark"
|
case constellationDark = "Constellation - Dark"
|
||||||
|
case threadsLight = "Threads - Light"
|
||||||
|
case threadsDark = "Threads - Dark"
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct ColorSetCouple: Identifiable {
|
public struct ColorSetCouple: Identifiable {
|
||||||
|
@ -176,3 +179,26 @@ public struct ConstellationLight: ColorSet {
|
||||||
|
|
||||||
public init() {}
|
public init() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public struct ThreadsDark: ColorSet {
|
||||||
|
public var name: ColorSetName = .threadsDark
|
||||||
|
public var scheme: ColorScheme = .dark
|
||||||
|
public var tintColor: Color = .init(hex: 0x0095F6)
|
||||||
|
public var primaryBackgroundColor: Color = .init(hex: 0x101010)
|
||||||
|
public var secondaryBackgroundColor: Color = .init(hex: 0x181818)
|
||||||
|
public var labelColor: Color = .init(hex: 0xE2E4E2)
|
||||||
|
|
||||||
|
public init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct ThreadsLight: ColorSet {
|
||||||
|
public var name: ColorSetName = .threadsLight
|
||||||
|
public var scheme: ColorScheme = .light
|
||||||
|
public var tintColor: Color = .init(hex: 0x0095F6)
|
||||||
|
public var primaryBackgroundColor: Color = .init(hex: 0xFFFFFF)
|
||||||
|
public var secondaryBackgroundColor: Color = .init(hex: 0xFFFFFF)
|
||||||
|
public var labelColor: Color = .black
|
||||||
|
|
||||||
|
public init() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -293,6 +293,8 @@ import SwiftUI
|
||||||
MediumDark(),
|
MediumDark(),
|
||||||
ConstellationLight(),
|
ConstellationLight(),
|
||||||
ConstellationDark(),
|
ConstellationDark(),
|
||||||
|
ThreadsLight(),
|
||||||
|
ThreadsDark()
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue