Skip to content

Commit 3e8e385

Browse files
transfersButton Color
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
1 parent 7b81954 commit 3e8e385

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

iOSClient/Files/NCFilesNavigationController.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ class NCFilesNavigationController: NCMainNavigationController {
2121

2222
for viewController in self.viewControllers {
2323
if let rightBarButtonItems = viewController.navigationItem.rightBarButtonItems,
24-
let buttonTransferItem = rightBarButtonItems.first(where: { $0.tag == self.transfersButtonTag }),
25-
let buttonTransfer = buttonTransferItem.customView as? UIButton {
24+
let transfersButtonItem = rightBarButtonItems.first(where: { $0.tag == self.transfersButtonTag }),
25+
let transfersButton = transfersButtonItem.customView as? UIButton {
2626
if results?.count ?? 0 > 0 {
27-
buttonTransfer.tintColor = NCBrandColor.shared.customer
27+
transfersButton.tintColor = NCBrandColor.shared.getElement(account: self.session.account)
28+
transfersButton.setImage(UIImage(systemName: "arrow.left.arrow.right.circle.fill"), for: .normal)
2829
} else {
29-
buttonTransfer.tintColor = NCBrandColor.shared.iconImageColor
30+
transfersButton.tintColor = NCBrandColor.shared.iconImageColor
31+
transfersButton.setImage(UIImage(systemName: "arrow.left.arrow.right.circle"), for: .normal)
3032
}
3133
}
3234
}

0 commit comments

Comments
 (0)