Make the star swipe background color yellow. Issue #1015

This commit is contained in:
Maurice Parker 2020-02-27 16:27:12 -08:00
parent ad7dde8564
commit 8d57fd193c
3 changed files with 25 additions and 0 deletions

View File

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

View File

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

View File

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