From fe9467495ab8dc00b4da824949d9f473530e033f Mon Sep 17 00:00:00 2001 From: Artyom Vlasov Date: Fri, 26 Apr 2024 12:06:57 -0600 Subject: [PATCH] Replace navigation buttons for notification details --- .../NotificationDetailsViewController.swift | 16 ++++++++++++---- .../arrow-down.imageset/Contents.json | 12 ++++++++++++ .../arrow-down.imageset/arrow-down.pdf | Bin 0 -> 993 bytes .../arrow-up.imageset/Contents.json | 12 ++++++++++++ .../arrow-up.imageset/arrow-up.pdf | Bin 0 -> 976 bytes 5 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 WordPress/Resources/AppImages.xcassets/arrow-down.imageset/Contents.json create mode 100644 WordPress/Resources/AppImages.xcassets/arrow-down.imageset/arrow-down.pdf create mode 100644 WordPress/Resources/AppImages.xcassets/arrow-up.imageset/Contents.json create mode 100644 WordPress/Resources/AppImages.xcassets/arrow-up.imageset/arrow-up.pdf diff --git a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationDetailsViewController.swift b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationDetailsViewController.swift index 82dadcf07314..945558d5ec38 100644 --- a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationDetailsViewController.swift +++ b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationDetailsViewController.swift @@ -340,12 +340,20 @@ extension NotificationDetailsViewController { navigationItem.backBarButtonItem = backButton - let next = UIButton(type: .custom) - next.setImage(.gridicon(.arrowUp), for: .normal) + let next = UIButton(type: .system) + if let customIcon = UIImage(named: "arrow-up") { + next.setImage(customIcon, for: .normal) + } else { + next.setImage(.gridicon(.arrowUp), for: .normal) + } next.addTarget(self, action: #selector(nextNotificationWasPressed), for: .touchUpInside) - let previous = UIButton(type: .custom) - previous.setImage(.gridicon(.arrowDown), for: .normal) + let previous = UIButton(type: .system) + if let customIcon = UIImage(named: "arrow-down") { + previous.setImage(customIcon, for: .normal) + } else { + previous.setImage(.gridicon(.arrowDown), for: .normal) + } previous.addTarget(self, action: #selector(previousNotificationWasPressed), for: .touchUpInside) previousNavigationButton = previous diff --git a/WordPress/Resources/AppImages.xcassets/arrow-down.imageset/Contents.json b/WordPress/Resources/AppImages.xcassets/arrow-down.imageset/Contents.json new file mode 100644 index 000000000000..048ce729cf25 --- /dev/null +++ b/WordPress/Resources/AppImages.xcassets/arrow-down.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "arrow-down.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WordPress/Resources/AppImages.xcassets/arrow-down.imageset/arrow-down.pdf b/WordPress/Resources/AppImages.xcassets/arrow-down.imageset/arrow-down.pdf new file mode 100644 index 0000000000000000000000000000000000000000..555d3261135a0be49f32661853c3be6ed2a35ea7 GIT binary patch literal 993 zcmZuw!A|2a5WUY=%%u_>NMa{Wh=h=!1%!52l)w#f2&pMSsSR;hvHSImK#sn6YWx7_D8weNjZ(Yga z>Kx~H)33_FJFp#=rW|#)Yd7ft}ZXg?r zaEA$Owiru;$PpV5fpD^Z1bL8+M6c0TX|~FQpuS<4zC53G)Zx#N6+u zffslN1-D@R7=}GMV@+_5#Uk;3B_1Uo!!xCHXYk>Xe5DiK|9g`dF3YtXfIo6om*@Hu zAGYrJVe`b#(nn*aLK^+iR??u|oMK2f*Q%3>D%!Of!DZPJhGKvw%VikNo69fK>)vbt literal 0 HcmV?d00001 diff --git a/WordPress/Resources/AppImages.xcassets/arrow-up.imageset/Contents.json b/WordPress/Resources/AppImages.xcassets/arrow-up.imageset/Contents.json new file mode 100644 index 000000000000..2201e466761b --- /dev/null +++ b/WordPress/Resources/AppImages.xcassets/arrow-up.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "arrow-up.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/WordPress/Resources/AppImages.xcassets/arrow-up.imageset/arrow-up.pdf b/WordPress/Resources/AppImages.xcassets/arrow-up.imageset/arrow-up.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ebd370cd1f8823102bde00f2476227bc9115b56d GIT binary patch literal 976 zcmZvbO;5ux42JLi6~0Vj2im4xS}IMGU}FdYViax@hth?us7s(J2>A6l{m44DoZKh= zcx|VH#cY1coCtuShw9}G5XWPjOhCw$`2@eu-CH5o)dmBCiSg1^Dbg*tGx3#YBDuQ2 z>0|#Z)9?Yz@#=$KXPjEg-i1y?PRz$q=ag;1x*Zxilfa#`CNT>gFOK6V#9j>Z9KV4D zNnnjKm84W!TyJcJw=| z%ajPMKFdsKG!G?d(@mAEgrth*m2_~Cmc)>^sP~o(vTw}2$yX#5O$P~fb*Ac*V%dRy zO{AA8+{$B9;3F~pO6HEf3BCQ4Ok8m QT2^&C5$7-%T;9+B04vkl`Tzg` literal 0 HcmV?d00001