Colors for toolbar items
This commit is contained in:
@ -94,7 +94,7 @@
|
||||
label: {
|
||||
Image
|
||||
.toolbarTrash
|
||||
.foregroundColor(ThemeManager.currentTheme.toolbarColor)
|
||||
.foregroundColor(Color.toolbarItemForeground)
|
||||
}
|
||||
).padding(.trailing, 5)
|
||||
|
||||
@ -105,11 +105,11 @@
|
||||
if audioController.itemAudioProperties?.isArchived ?? false {
|
||||
Image
|
||||
.toolbarUnarchive
|
||||
.foregroundColor(ThemeManager.currentTheme.toolbarColor)
|
||||
.foregroundColor(Color.toolbarItemForeground)
|
||||
} else {
|
||||
Image
|
||||
.toolbarArchive
|
||||
.foregroundColor(ThemeManager.currentTheme.toolbarColor)
|
||||
.foregroundColor(Color.toolbarItemForeground)
|
||||
}
|
||||
}
|
||||
).padding(.trailing, 5)
|
||||
|
||||
@ -36,6 +36,8 @@ public extension Color {
|
||||
static var themeLabelForeground: Color { Color("_labelForeground", bundle: .module) }
|
||||
static var themeLabelBackground: Color { Color("_labelBackground", bundle: .module) }
|
||||
|
||||
static var toolbarItemForeground: Color { Color("toolbarItemForeground", bundle: .module) }
|
||||
|
||||
static var themeAudioPlayerGray: Color { Color("_audioPlayerGray", bundle: .module) }
|
||||
static var themeGrayBg01: Color { Color("_themeGrayBg01", bundle: .module) }
|
||||
static var themeHighlightColor: Color { Color("_highlightColor", bundle: .module) }
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x3C",
|
||||
"green" : "0x3C",
|
||||
"red" : "0x3C"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xD9",
|
||||
"green" : "0xD9",
|
||||
"red" : "0xD9"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user