From a1598d799adcfc6811e65a9c25e63945292515e0 Mon Sep 17 00:00:00 2001 From: Henrik Storch Date: Thu, 5 May 2022 07:52:16 +0200 Subject: Add share menu icons - use SF Symbols by default Signed-off-by: Henrik Storch --- iOSClient/Activity/NCActivity.swift | 2 +- iOSClient/Menu/NCShare+Menu.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'iOSClient') diff --git a/iOSClient/Activity/NCActivity.swift b/iOSClient/Activity/NCActivity.swift index 72e13a7c1..39edd3544 100644 --- a/iOSClient/Activity/NCActivity.swift +++ b/iOSClient/Activity/NCActivity.swift @@ -498,7 +498,7 @@ extension NCActivity: NCShareCommentsCellDelegate { actions.append( NCMenuAction( title: NSLocalizedString("_edit_comment_", comment: ""), - icon: UIImage(named: "edit")!.image(color: NCBrandColor.shared.gray, size: 50), + icon: UIImage(named: "pencil")!.image(color: NCBrandColor.shared.gray, size: 50), action: { _ in guard let metadata = self.metadata, let tableComments = tableComments else { return } diff --git a/iOSClient/Menu/NCShare+Menu.swift b/iOSClient/Menu/NCShare+Menu.swift index 88defd5b1..0ec28c6e3 100644 --- a/iOSClient/Menu/NCShare+Menu.swift +++ b/iOSClient/Menu/NCShare+Menu.swift @@ -43,7 +43,7 @@ extension NCShare { actions.append( NCMenuAction( title: NSLocalizedString("_details_", comment: ""), - icon: NCUtility.shared.loadImage(named: "edit"), + icon: NCUtility.shared.loadImage(named: "pencil"), action: { _ in guard let advancePermission = UIStoryboard(name: "NCShare", bundle: nil).instantiateViewController(withIdentifier: "NCShareAdvancePermission") as? NCShareAdvancePermission, @@ -76,7 +76,7 @@ extension NCShare { actions.append( NCMenuAction( title: NSLocalizedString("_share_read_only_", comment: ""), - icon: UIImage(), + icon: NCUtility.shared.loadImage(named: "eye"), selected: tableShare.permissions == (NCGlobal.shared.permissionReadShare + NCGlobal.shared.permissionShareShare) || tableShare.permissions == NCGlobal.shared.permissionReadShare, on: false, action: { _ in @@ -90,7 +90,7 @@ extension NCShare { actions.append( NCMenuAction( title: isDirectory ? NSLocalizedString("_share_allow_upload_", comment: "") : NSLocalizedString("_share_editing_", comment: ""), - icon: UIImage(), + icon: NCUtility.shared.loadImage(named: "pencil"), selected: hasUploadPermission(tableShare: tableShare), on: false, action: { _ in -- cgit v1.2.3