Make the star swipe background color yellow. Issue #1015
This commit is contained in:
parent
ad7dde8564
commit
8d57fd193c
|
@ -121,6 +121,10 @@ struct AppAssets {
|
|||
return RSImage(named: "swipeMarkUnstarred")!
|
||||
}()
|
||||
|
||||
static var swipeMarkUnstarredColor: NSColor = {
|
||||
return NSColor(named: NSColor.Name("swipeMarkUnstarredColor"))!
|
||||
}()
|
||||
|
||||
static func image(for accountType: AccountType) -> NSImage? {
|
||||
switch accountType {
|
||||
case .onMyMac:
|
||||
|
|
|
@ -811,6 +811,7 @@ extension TimelineViewController: NSTableViewDelegate {
|
|||
self.toggleArticleStarred(article);
|
||||
tableView.rowActionsVisible = false
|
||||
}
|
||||
action.backgroundColor = AppAssets.swipeMarkUnstarredColor
|
||||
action.image = article.status.starred ? AppAssets.swipeMarkUnstarredImage : AppAssets.swipeMarkStarredImage
|
||||
return [action]
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"colors" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"red" : "0.976",
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.204",
|
||||
"green" : "0.776"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue