From 3191e56e5867c87a576fa8312273bd735494c085 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Fri, 12 Jul 2019 14:40:14 +0200 Subject: [PATCH] Used more appropriate buttons for unlock/lock in Touch- and Toolbar --- MacPass/MPDocumentWindowController.m | 2 +- MacPass/MPToolbarDelegate.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 10cb573b..74bbdb65 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -720,7 +720,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); customizationLabel:NSLocalizedString(@"TOUCHBAR_PERFORM_AUTOTYPE","Touchbar button label for performing autotype")]; } else if (identifier == touchBarLockIdentifier) { - return [MPTouchBarButtonCreator touchBarButtonWithImage:[NSImage imageNamed:NSImageNameLockUnlockedTemplate] + return [MPTouchBarButtonCreator touchBarButtonWithImage:[NSImage imageNamed:NSImageNameLockLockedTemplate] identifier:touchBarLockIdentifier target:self selector:@selector(lock:) diff --git a/MacPass/MPToolbarDelegate.m b/MacPass/MPToolbarDelegate.m index 54858ec7..22852525 100644 --- a/MacPass/MPToolbarDelegate.m +++ b/MacPass/MPToolbarDelegate.m @@ -216,7 +216,7 @@ NSString *const MPToolbarItemAutotype = @"TOOLBAR_AUTOTYPE"; } - (NSDictionary *)createToolbarImages { - NSDictionary *imageDict = @{ MPToolbarItemLock: [NSImage imageNamed:NSImageNameLockUnlockedTemplate], + NSDictionary *imageDict = @{ MPToolbarItemLock: [NSImage imageNamed:NSImageNameLockLockedTemplate], MPToolbarItemAddEntry: [MPIconHelper icon:MPIconAddEntry], MPToolbarItemAddGroup: [MPIconHelper icon:MPIconAddFolder], MPToolbarItemCopyUsername : [MPIconHelper icon:MPIconIdentity],