Revert "Provide a default light theme close #3"
This reverts commit d1ad54248c198ea586ba7c750978dd26afcdc0a6.
This commit is contained in:
parent
d1ad54248c
commit
2bb68c915d
@ -2,15 +2,15 @@ import SwiftUI
|
||||
|
||||
extension Color {
|
||||
public static var brand: Color {
|
||||
Color("brand", bundle: .module)
|
||||
Color(red: 187/255, green: 59/255, blue: 226/255)
|
||||
}
|
||||
|
||||
public static var primaryBackground: Color {
|
||||
Color("primaryBackground", bundle: .module)
|
||||
Color(red: 16/255, green: 21/255, blue: 35/255)
|
||||
}
|
||||
|
||||
public static var secondaryBackground: Color {
|
||||
Color("secondaryBackground", bundle: .module)
|
||||
Color(red: 30/255, green: 35/255, blue: 62/255)
|
||||
}
|
||||
|
||||
public static var label: Color {
|
||||
|
@ -1,38 +0,0 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.886",
|
||||
"green" : "0.224",
|
||||
"red" : "0.733"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.886",
|
||||
"green" : "0.224",
|
||||
"red" : "0.733"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"platform" : "ios",
|
||||
"reference" : "systemBackgroundColor"
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.137",
|
||||
"green" : "0.082",
|
||||
"red" : "0.063"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"platform" : "ios",
|
||||
"reference" : "secondarySystemBackgroundColor"
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.243",
|
||||
"green" : "0.137",
|
||||
"red" : "0.118"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
@ -9,6 +9,7 @@ public class Theme: ObservableObject {
|
||||
@AppStorage(ThemeKey.tint.rawValue) public var tintColor: Color = .brand
|
||||
@AppStorage(ThemeKey.primaryBackground.rawValue) public var primaryBackgroundColor: Color = .primaryBackground
|
||||
@AppStorage(ThemeKey.secondaryBackground.rawValue) public var secondaryBackgroundColor: Color = .secondaryBackground
|
||||
@AppStorage(ThemeKey.label.rawValue) public var labelColor: Color = .label
|
||||
|
||||
public init() { }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user