mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 16:51:19 +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,8 +167,8 @@ struct AppAssets {
|
|||||||
return Image("MarkAllAsRead")
|
return Image("MarkAllAsRead")
|
||||||
}()
|
}()
|
||||||
|
|
||||||
static var markAllAsReadImagePDF: Image = {
|
static var markAllAsReadImagePNG: Image = {
|
||||||
return Image("MarkAllAsReadPDF")
|
return Image("MarkAllAsReadPNG")
|
||||||
}()
|
}()
|
||||||
|
|
||||||
static var nextUnreadArticleImage: Image = {
|
static var nextUnreadArticleImage: Image = {
|
||||||
|
@ -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 {
|
Button {
|
||||||
sceneModel.markAllAsRead()
|
sceneModel.markAllAsRead()
|
||||||
} label: {
|
} label: {
|
||||||
AppAssets.markAllAsReadImagePDF
|
AppAssets.markAllAsReadImagePNG
|
||||||
.resizable()
|
.offset(y: 7)
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 20, height: 20, alignment: .center)
|
|
||||||
}
|
}
|
||||||
.disabled(sceneModel.markAllAsReadButtonState == nil)
|
.disabled(sceneModel.markAllAsReadButtonState == nil)
|
||||||
.help("Mark All as Read")
|
.help("Mark All as Read")
|
||||||
|
Loading…
Reference in New Issue
Block a user