mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 01:20:41 +00:00
Add Threads themes
This commit is contained in:
parent
83e752ce63
commit
4ba8d004d1
2 changed files with 29 additions and 1 deletions
|
@ -6,7 +6,8 @@ public let availableColorsSets: [ColorSetCouple] =
|
|||
.init(light: DesertLight(), dark: DesertDark()),
|
||||
.init(light: NemesisLight(), dark: NemesisDark()),
|
||||
.init(light: MediumLight(), dark: MediumDark()),
|
||||
.init(light: ConstellationLight(), dark: ConstellationDark())]
|
||||
.init(light: ConstellationLight(), dark: ConstellationDark()),
|
||||
.init(light: ThreadsLight(), dark: ThreadsDark())]
|
||||
|
||||
public protocol ColorSet {
|
||||
var name: ColorSetName { get }
|
||||
|
@ -34,6 +35,8 @@ public enum ColorSetName: String {
|
|||
case mediumDark = "Medium - Dark"
|
||||
case constellationLight = "Constellation - Light"
|
||||
case constellationDark = "Constellation - Dark"
|
||||
case threadsLight = "Threads - Light"
|
||||
case threadsDark = "Threads - Dark"
|
||||
}
|
||||
|
||||
public struct ColorSetCouple: Identifiable {
|
||||
|
@ -176,3 +179,26 @@ public struct ConstellationLight: ColorSet {
|
|||
|
||||
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(),
|
||||
ConstellationLight(),
|
||||
ConstellationDark(),
|
||||
ThreadsLight(),
|
||||
ThreadsDark()
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue