From a4e41b985dc75693271cab2f7ce3dbfb23922816 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 25 Nov 2017 12:10:49 +0100 Subject: MacGui: fix some layout issues on older version of macOS. --- macosx/English.lproj/ExceptionAlert.xib | 29 +++++------------ macosx/English.lproj/HBSummaryViewController.xib | 41 +++++++++++------------- macosx/English.lproj/Presets.xib | 3 +- macosx/HBPicture+UIAdditions.m | 2 +- macosx/HBSummaryViewController.m | 9 +++++- 5 files changed, 38 insertions(+), 46 deletions(-) (limited to 'macosx') diff --git a/macosx/English.lproj/ExceptionAlert.xib b/macosx/English.lproj/ExceptionAlert.xib index e0c497cb7..e942dec49 100644 --- a/macosx/English.lproj/ExceptionAlert.xib +++ b/macosx/English.lproj/ExceptionAlert.xib @@ -1,9 +1,9 @@ - - + + - - + + @@ -25,13 +25,11 @@ - - @@ -41,8 +39,7 @@ - - + @@ -58,7 +55,6 @@ - + @@ -130,7 +130,7 @@ - + @@ -139,9 +139,9 @@ - + - + @@ -150,10 +150,7 @@ - - - - + @@ -161,9 +158,9 @@ - + - + @@ -172,10 +169,7 @@ - - - - + @@ -187,19 +181,21 @@ + - - + + - + + @@ -207,18 +203,19 @@ - - - + + + - + + - + diff --git a/macosx/English.lproj/Presets.xib b/macosx/English.lproj/Presets.xib index 578867034..f88a50469 100644 --- a/macosx/English.lproj/Presets.xib +++ b/macosx/English.lproj/Presets.xib @@ -184,12 +184,13 @@ Overrides all encode settings. Settings may be further adjusted after selecting - + + diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m index be4140b56..21b92d851 100644 --- a/macosx/HBPicture+UIAdditions.m +++ b/macosx/HBPicture+UIAdditions.m @@ -91,7 +91,7 @@ - (NSString *)shortInfo { - return [NSString stringWithFormat:@"%dx%d storage, %dx%d display", self.width, self.height, self.displayWidth, self.height]; + return [NSString stringWithFormat:NSLocalizedString(@"%dx%d Storage, %dx%d Display", nil), self.width, self.height, self.displayWidth, self.height]; } - (NSString *)sourceInfo diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m index 7a4d84284..1b58ce926 100644 --- a/macosx/HBSummaryViewController.m +++ b/macosx/HBSummaryViewController.m @@ -29,14 +29,21 @@ static void *HBSummaryViewControllerContext = &HBSummaryViewControllerContext; @implementation HBSummaryViewController +- (instancetype)init +{ + self = [super initWithNibName:@"HBSummaryViewController" bundle:nil]; + return self; +} + - (void)loadView { [super loadView]; self.previewView.showShadow = NO; + self.visible = YES; [self resetLabels]; } -- (void)viewDidAppear +- (void)viewWillAppear { self.visible = YES; if (self.pictureReloadInQueue || self.previewView.image == NULL) -- cgit v1.2.3