Colors for toolbar items

This commit is contained in:
Jackson Harper
2023-12-27 10:58:04 +08:00
parent e31101f5e9
commit 7bd19658f4
3 changed files with 43 additions and 3 deletions

View File

@ -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)

View File

@ -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) }

View File

@ -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
}
}