Fix unread indicator color
This commit is contained in:
parent
217d1ac880
commit
4393e54a5c
|
@ -118,6 +118,14 @@ struct AppAssets {
|
|||
#endif
|
||||
}()
|
||||
|
||||
static var sidebarUnreadCountBackground: Color = {
|
||||
return Color("SidebarUnreadCountBackground")
|
||||
}()
|
||||
|
||||
static var sidebarUnreadCountForeground: Color = {
|
||||
return Color("SidebarUnreadCountForeground")
|
||||
}()
|
||||
|
||||
static var shareImage: Image = {
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
}()
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "0.500",
|
||||
"blue" : "0.000",
|
||||
"green" : "0.000",
|
||||
"red" : "0.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "0.900",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -17,7 +17,8 @@ struct UnreadCountView: View {
|
|||
.font(.footnote)
|
||||
.padding(.horizontal, 7)
|
||||
.padding(.vertical, 1)
|
||||
.background(SwiftUI.Color.gray.opacity(0.5))
|
||||
.background(AppAssets.sidebarUnreadCountBackground)
|
||||
.foregroundColor(AppAssets.sidebarUnreadCountForeground)
|
||||
.cornerRadius(8)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ import RSParser
|
|||
import AppKit
|
||||
typealias Font = NSFont
|
||||
typealias FontDescriptor = NSFontDescriptor
|
||||
typealias Color = NSColor
|
||||
|
||||
private let boldTrait = NSFontDescriptor.SymbolicTraits.bold
|
||||
private let italicTrait = NSFontDescriptor.SymbolicTraits.italic
|
||||
|
|
Loading…
Reference in New Issue