@@ -229,7 +229,7 @@ class NCContextMenu: NSObject {
229229 private func makeSetFolderE2EEAction( metadata: tableMetadata ) -> UIAction {
230230 return UIAction (
231231 title: NSLocalizedString ( " _e2e_set_folder_encrypted_ " , comment: " " ) ,
232- image: utility. loadImage ( named: " lock " , colors: [ NCBrandColor . shared. iconImageColor] )
232+ image: utility. loadImage ( named: " lock " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
233233 ) { _ in
234234 Task {
235235 let error = await NCNetworkingE2EEMarkFolder ( ) . markFolderE2ee (
@@ -247,7 +247,7 @@ class NCContextMenu: NSObject {
247247 private func makeUnsetFolderE2EEAction( metadata: tableMetadata ) -> UIAction {
248248 return UIAction (
249249 title: NSLocalizedString ( " _e2e_remove_folder_encrypted_ " , comment: " " ) ,
250- image: utility. loadImage ( named: " lock " , colors: [ NCBrandColor . shared. iconImageColor] )
250+ image: utility. loadImage ( named: " lock " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
251251 ) { _ in
252252 Task {
253253 let results = await NextcloudKit . shared. markE2EEFolderAsync (
@@ -289,7 +289,7 @@ class NCContextMenu: NSObject {
289289 private func makeSaveAsScanAction( metadata: tableMetadata ) -> UIAction {
290290 return UIAction (
291291 title: NSLocalizedString ( " _save_as_scan_ " , comment: " " ) ,
292- image: utility. loadImage ( named: " doc.viewfinder " , colors: [ NCBrandColor . shared. iconImageColor] )
292+ image: utility. loadImage ( named: " doc.viewfinder " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
293293 ) { _ in
294294 Task {
295295 if self . utilityFileSystem. fileProviderStorageExists ( metadata) {
@@ -322,7 +322,7 @@ class NCContextMenu: NSObject {
322322 private func makeRenameAction( metadata: tableMetadata ) -> UIAction {
323323 return UIAction (
324324 title: NSLocalizedString ( " _rename_ " , comment: " " ) ,
325- image: utility. loadImage ( named: " rename " , colors: [ NCBrandColor . shared. iconImageColor] )
325+ image: utility. loadImage ( named: " rename " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
326326 ) { _ in
327327 Task { @MainActor in
328328 let capabilities = await NKCapabilities . shared. getCapabilities ( for: metadata. account)
@@ -354,7 +354,7 @@ class NCContextMenu: NSObject {
354354 private func makeModifyWithQuickLookAction( metadata: tableMetadata ) -> UIAction {
355355 return UIAction (
356356 title: NSLocalizedString ( " _modify_ " , comment: " " ) ,
357- image: utility. loadImage ( named: " pencil.tip.crop.circle " , colors: [ NCBrandColor . shared. iconImageColor] )
357+ image: utility. loadImage ( named: " pencil.tip.crop.circle " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
358358 ) { _ in
359359 Task {
360360 if self . utilityFileSystem. fileProviderStorageExists ( metadata) {
@@ -387,7 +387,7 @@ class NCContextMenu: NSObject {
387387 private func makeColorFolderAction( metadata: tableMetadata ) -> UIAction {
388388 return UIAction (
389389 title: NSLocalizedString ( " _change_color_ " , comment: " " ) ,
390- image: utility. loadImage ( named: " paintpalette " , colors: [ NCBrandColor . shared. iconImageColor] )
390+ image: utility. loadImage ( named: " paintpalette " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor )
391391 ) { _ in
392392 if let picker = UIStoryboard ( name: " NCColorPicker " , bundle: nil )
393393 . instantiateInitialViewController ( ) as? NCColorPicker {
@@ -414,7 +414,7 @@ class NCContextMenu: NSObject {
414414
415415 let deleteSubMenu = UIMenu (
416416 title: NSLocalizedString ( " _delete_ " , comment: " " ) ,
417- image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) ,
417+ image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor ) ,
418418 options: . destructive,
419419 children: [ deleteConfirmLocal, deleteConfirmFile]
420420 )
@@ -438,7 +438,7 @@ class NCContextMenu: NSObject {
438438 metadata. directory ? " _delete_folder_ " : " _delete_file_ " ,
439439 comment: " "
440440 ) ,
441- image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) ,
441+ image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor ) ,
442442 attributes: . destructive
443443 ) { _ in
444444 if let viewController = self . viewController as? NCCollectionViewCommon {
@@ -460,7 +460,7 @@ class NCContextMenu: NSObject {
460460 private func makeDeleteLocalAction( metadata: tableMetadata ) -> UIAction {
461461 return UIAction (
462462 title: NSLocalizedString ( " _remove_local_file_ " , comment: " " ) ,
463- image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) ,
463+ image: utility. loadImage ( named: " trashIcon " , colors: [ NCBrandColor . shared. iconImageColor] ) . withTintColor ( NCBrandColor . shared . iconImageColor ) ,
464464 attributes: . destructive
465465 ) { _ in
466466 Task {
0 commit comments