From 4446fa0ca92242d5c048d4d52385ed45d461c4a9 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 19 Jul 2020 17:44:41 -0500 Subject: [PATCH] Change mark all as read image to be a PNG, since SwiftUI on AppKit sucks at handling vector resources --- Multiplatform/Shared/AppAssets.swift | 6 ++--- .../MarkAllAsReadPDF.imageset/Contents.json | 16 ------------- .../MarkAllAsReadPDF.pdf | Bin 4179 -> 0 bytes .../MarkAllAsReadPNG.imageset/Contents.json | 21 ++++++++++++++++++ .../mark-all-as-read.png | Bin 0 -> 1194 bytes .../Shared/SceneNavigationView.swift | 6 ++--- 6 files changed, 26 insertions(+), 23 deletions(-) delete mode 100644 Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/Contents.json delete mode 100644 Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/MarkAllAsReadPDF.pdf create mode 100644 Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/Contents.json create mode 100644 Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPNG.imageset/mark-all-as-read.png diff --git a/Multiplatform/Shared/AppAssets.swift b/Multiplatform/Shared/AppAssets.swift index da20e0d01..b84d713c7 100644 --- a/Multiplatform/Shared/AppAssets.swift +++ b/Multiplatform/Shared/AppAssets.swift @@ -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") }() diff --git a/Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/Contents.json b/Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/Contents.json deleted file mode 100644 index f23296bcc..000000000 --- a/Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "filename" : "MarkAllAsReadPDF.pdf", - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - }, - "properties" : { - "preserves-vector-representation" : true, - "template-rendering-intent" : "template" - } -} diff --git a/Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/MarkAllAsReadPDF.pdf b/Multiplatform/Shared/Assets.xcassets/MarkAllAsReadPDF.imageset/MarkAllAsReadPDF.pdf deleted file mode 100644 index e2a044d563efa11c16626ef66db1589a2f15e443..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4179 zcmai%2{@GP_s1bi%P=#RM3zCK>@xNl24fpBmXs`6vL#!XLiR07Q3*r# z7Ox>&6dG&xCE4Xadf$F;zyJIGum5vB+jZ`9pXYw=^F7z~Il=}AElC+EC|J04YHe!1 z@Z00=)^;!yfB-nO3;4nXKw1myhR1kOo^B{S27$51IbZ;3J&cDF-WhFMr@v^lZJrB43lfR7@xhP=3$Tx7JdDClip|{zV8ULw3}(E4yV8@ zZbx%0FO$C1XWXg-A`sV5wAmTAYmFzhvlJ&U43~DB@HnlOU@ec+n9MZLqgVO$KSv^J zM~BUuIjOU&g|FAzIGwle)vA}BI66_jxi7t;_*Gbm)Sqqd^XiZ zU_-|ppZCt0G*ebdAND|Hwu4mIy@6;M|MvN7ZbBvh{=sli=%o3uJyw8lCGT1H8S?W_ zY+^sGXuVmJkIUrd%19|q=@N2JTR|AmSaD+Z9Sh#O4bGS?xKTlvrCYG)Xz`sLtX+(O zk*-)_UJCytXFlwV01{KA8D|W2e;^W?wts?TPop#tquE;&6mxV=ZUU#bf;c^5oed{r(=#c zkR?>zQMr4{;#85#@e`^Bcn`K-^V5wd>e%;?dg#IjB2T%U+3MEX#yYMtW6&0%B-ETj zYdOb@YCBX1VM9sc?9%i4=72`mvV5hYh;8%Fw`>V%>5uVBi@V)-L z4@#FfK!#B|!3H!DVIsZ=IxTiKF*65~*VNjPg7%v1Om{-jgN$pe2JKCT2+gUHSXaj7 zG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Z+op-}{9<#IU8tQNg)>)14&#*L=Oo$pwFg$~K z;`==v&O#(}1W&7S#yJ9$LGegT(}-R? zfE~%!ThIp?N83o+f$f?)d$&TiS#-qJv=w`x1$`7p8q>Qb#p>FaPvdZOC&1p-O9})s z?lBk*nK;zHz=D@DPyK$}NU?iYMc6qQv366!Sx5awioY{r7LwzqaMW2ZNb$Xq8r>X| zQi9z{*IRv`0-CGIA1`mkyRtvT&yvm*c)SU-(~ouw_m@QMVJ19~vW)GgY=ep0m|`C= zVN7Lna@Jcl6$Q+4wc_wtc<4)CD@Ao{HlL)W@tsKrn7y%2qjh?p)?0QE(AXP_18+&r z@6g^n^%6fLO(u602legl!L(pWaX}yKLA3n_jJZ88&IhT`wVah#p_e|t0!-$YLvFmQ zDDd57B`@=tP>Z-EFMx4m1(X%9xwzf`!)}A#tf{Y{O%Tc6!>%ZksSzW!;V!rju7Gml zUxnx3I7BjEbv-)U!$Bp*>3tpAAv-&0NBkx1gM%;>d|A6b#nbQM_Ooy!^jh4#esaV) zjo#;J6RiU~QdY{1u(ZKQ9E+g^e7iU@FXX@Bci0AT1Tf3XdC`^!bj=);M*si-07*qo IM6N<$f_bA3Q~&?~ literal 0 HcmV?d00001 diff --git a/Multiplatform/Shared/SceneNavigationView.swift b/Multiplatform/Shared/SceneNavigationView.swift index 9105551f3..1aeb052cc 100644 --- a/Multiplatform/Shared/SceneNavigationView.swift +++ b/Multiplatform/Shared/SceneNavigationView.swift @@ -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")