summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-11-15 13:00:25 +0100
committerDamiano Galassi <[email protected]>2018-11-15 13:00:25 +0100
commitba7d33db36abe423aadbd36e91bccdabf25709aa (patch)
treeb6dc9b2c203e2e2f1fd0f90c8232a5ebde6c47e4
parent0e1e3726d6178bbf086ea692cbc2c522c4b24a62 (diff)
MacGui: made some touch bar buttons smaller.
-rw-r--r--macosx/HBAddPresetController.m4
-rw-r--r--macosx/HBTitleSelectionController.m4
2 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m
index b29c516c5..79c7f56c2 100644
--- a/macosx/HBAddPresetController.m
+++ b/macosx/HBAddPresetController.m
@@ -288,13 +288,13 @@ static NSTouchBarItemIdentifier HBTouchBarCancel = @"fr.handbrake.addToQueue";
NSCustomTouchBarItem *cancelItem = [[NSCustomTouchBarItem alloc] initWithIdentifier:HBTouchBarAdd];
cancelItem.customizationLabel = NSLocalizedString(@"Cancel", @"Touch bar");
NSButton *cancelButton = [NSButton buttonWithTitle:NSLocalizedString(@"Cancel", @"Touch bar") target:self action:@selector(cancel:)];
- [cancelButton.widthAnchor constraintGreaterThanOrEqualToConstant:200].active = YES;
+ [cancelButton.widthAnchor constraintGreaterThanOrEqualToConstant:160].active = YES;
cancelItem.view = cancelButton;
NSCustomTouchBarItem *addItem = [[NSCustomTouchBarItem alloc] initWithIdentifier:HBTouchBarCancel];
addItem.customizationLabel = NSLocalizedString(@"Add Preset", @"Touch bar");
NSButton *addButton = [NSButton buttonWithTitle:NSLocalizedString(@"Add Preset", @"Touch bar") target:self action:@selector(add:)];
- [addButton.widthAnchor constraintGreaterThanOrEqualToConstant:200].active = YES;
+ [addButton.widthAnchor constraintGreaterThanOrEqualToConstant:160].active = YES;
addButton.keyEquivalent = @"\r";
addItem.view = addButton;
diff --git a/macosx/HBTitleSelectionController.m b/macosx/HBTitleSelectionController.m
index 001e9c4d6..b92a92065 100644
--- a/macosx/HBTitleSelectionController.m
+++ b/macosx/HBTitleSelectionController.m
@@ -128,13 +128,13 @@ static NSTouchBarItemIdentifier HBTouchBarCancel = @"fr.handbrake.addToQueue";
NSCustomTouchBarItem *cancelItem = [[NSCustomTouchBarItem alloc] initWithIdentifier:HBTouchBarAdd];
cancelItem.customizationLabel = NSLocalizedString(@"Cancel", @"Touch bar");
NSButton *cancelButton = [NSButton buttonWithTitle:NSLocalizedString(@"Cancel", @"Touch bar") target:self action:@selector(cancel:)];
- [cancelButton.widthAnchor constraintGreaterThanOrEqualToConstant:200].active = YES;
+ [cancelButton.widthAnchor constraintGreaterThanOrEqualToConstant:160].active = YES;
cancelItem.view = cancelButton;
NSCustomTouchBarItem *addItem = [[NSCustomTouchBarItem alloc] initWithIdentifier:HBTouchBarCancel];
addItem.customizationLabel = NSLocalizedString(@"Add To Queue", @"Touch bar");
NSButton *addButton = [NSButton buttonWithTitle:NSLocalizedString(@"Add To Queue", @"Touch bar") target:self action:@selector(add:)];
- [addButton.widthAnchor constraintGreaterThanOrEqualToConstant:200].active = YES;
+ [addButton.widthAnchor constraintGreaterThanOrEqualToConstant:160].active = YES;
addButton.keyEquivalent = @"\r";
addItem.view = addButton;