mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 00:30:51 +01:00
Change mark all as read image to be a PNG, since SwiftUI on AppKit sucks at handling vector resources
This commit is contained in:
parent
88745755b6
commit
4446fa0ca9
@ -167,10 +167,10 @@ struct AppAssets {
|
||||
return Image("MarkAllAsRead")
|
||||
}()
|
||||
|
||||
static var markAllAsReadImagePDF: Image = {
|
||||
return Image("MarkAllAsReadPDF")
|
||||
static var markAllAsReadImagePNG: Image = {
|
||||
return Image("MarkAllAsReadPNG")
|
||||
}()
|
||||
|
||||
|
||||
static var nextUnreadArticleImage: Image = {
|
||||
return Image(systemName: "chevron.down.circle")
|
||||
}()
|
||||
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "MarkAllAsReadPDF.pdf",
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"preserves-vector-representation" : true,
|
||||
"template-rendering-intent" : "template"
|
||||
}
|
||||
}
|
Binary file not shown.
21
Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/Contents.json
vendored
Normal file
21
Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "mark-all-as-read.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/mark-all-as-read.png
vendored
Normal file
BIN
Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/mark-all-as-read.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@ -94,10 +94,8 @@ struct SceneNavigationView: View {
|
||||
Button {
|
||||
sceneModel.markAllAsRead()
|
||||
} label: {
|
||||
AppAssets.markAllAsReadImagePDF
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 20, height: 20, alignment: .center)
|
||||
AppAssets.markAllAsReadImagePNG
|
||||
.offset(y: 7)
|
||||
}
|
||||
.disabled(sceneModel.markAllAsReadButtonState == nil)
|
||||
.help("Mark All as Read")
|
||||
|
Loading…
Reference in New Issue
Block a user