mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
This commit is contained in:
@@ -154,7 +154,7 @@ struct AppAssets {
|
||||
}()
|
||||
|
||||
static var masterFolderImage: IconImage = {
|
||||
return IconImage(UIImage(systemName: "folder.fill")!, isSymbol: true)
|
||||
return IconImage(UIImage(systemName: "folder")!, isSymbol: true, isBackgroundSupressed: true)
|
||||
}()
|
||||
|
||||
static var moreImage: UIImage = {
|
||||
@@ -219,7 +219,7 @@ struct AppAssets {
|
||||
|
||||
static var starredFeedImage: IconImage = {
|
||||
let image = UIImage(named: "smartFeedStar")!
|
||||
return IconImage(image, isSymbol: true, preferredColor: nil)
|
||||
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil)
|
||||
}()
|
||||
|
||||
static var tickMarkColor: UIColor = {
|
||||
@@ -233,7 +233,7 @@ struct AppAssets {
|
||||
|
||||
static var todayFeedImage: IconImage = {
|
||||
let image = UIImage(named: "smartFeedToday")!
|
||||
return IconImage(image, isSymbol: true, preferredColor: nil)
|
||||
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil)
|
||||
}()
|
||||
|
||||
static var trashImage: UIImage = {
|
||||
@@ -242,7 +242,7 @@ struct AppAssets {
|
||||
|
||||
static var unreadFeedImage: IconImage = {
|
||||
let image = UIImage(named: "smartFeedUnread")!
|
||||
return IconImage(image, isSymbol: true, preferredColor: nil)
|
||||
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil)
|
||||
}()
|
||||
|
||||
static var vibrantTextColor: UIColor = {
|
||||
|
||||
@@ -55,6 +55,10 @@ final class IconView: UIView {
|
||||
return iconImage?.isSymbol ?? false
|
||||
}
|
||||
|
||||
private var isBackgroundSuppressed: Bool {
|
||||
return iconImage?.isBackgroundSupressed ?? false
|
||||
}
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
commonInit()
|
||||
@@ -75,7 +79,7 @@ final class IconView: UIView {
|
||||
|
||||
override func layoutSubviews() {
|
||||
imageView.setFrameIfNotEqual(rectForImageView())
|
||||
if !isSymbolImage && ((iconImage != nil && isVerticalBackgroundExposed) || !isDisconcernable) {
|
||||
if !isBackgroundSuppressed && ((iconImage != nil && isVerticalBackgroundExposed) || !isDisconcernable) {
|
||||
backgroundColor = AppAssets.iconBackgroundColor
|
||||
} else {
|
||||
backgroundColor = nil
|
||||
|
||||
@@ -8,5 +8,8 @@
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,8 @@
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,8 @@
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user