From 6a10443d58262c2425596ee0706bc64b6610c6b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Hu=CC=88hne?= Date: Wed, 6 Mar 2019 19:15:48 +0100 Subject: [PATCH 1/2] #302 changed full width button to a rounded button - fixed passcode view, error label and cancel button for smaller display sizes (iPhone SE) --- .../Passcode/PasscodeViewController.swift | 3 +- .../Passcode/PasscodeViewController.xib | 138 ++++++++++-------- 2 files changed, 77 insertions(+), 64 deletions(-) diff --git a/ownCloud/Settings/Passcode/PasscodeViewController.swift b/ownCloud/Settings/Passcode/PasscodeViewController.swift index 92efb6d7a..8b67e6658 100644 --- a/ownCloud/Settings/Passcode/PasscodeViewController.swift +++ b/ownCloud/Settings/Passcode/PasscodeViewController.swift @@ -157,6 +157,8 @@ class PasscodeViewController: UIViewController, Themeable { self.keypadButtonsEnabled = { self.keypadButtonsEnabled }() self.keypadButtonsHidden = { self.keypadButtonsHidden }() self.screenBlurringEnabled = { self.screenBlurringEnabled }() + self.errorMessageLabel?.minimumScaleFactor = 0.5 + self.errorMessageLabel?.adjustsFontSizeToFitWidth = true } override func viewWillAppear(_ animated: Bool) { @@ -267,7 +269,6 @@ class PasscodeViewController: UIViewController, Themeable { deleteButton?.themeColorCollection = ThemeColorPairCollection(fromPair: ThemeColorPair(foreground: collection.tintColor, background: collection.tableBackgroundColor)) cancelButton?.applyThemeCollection(collection, itemStyle: .defaultForItem) - cancelButton?.layer.cornerRadius = 0 } // MARK: - External Keyboard Commands diff --git a/ownCloud/Settings/Passcode/PasscodeViewController.xib b/ownCloud/Settings/Passcode/PasscodeViewController.xib index 12e3495bf..7067980d1 100644 --- a/ownCloud/Settings/Passcode/PasscodeViewController.xib +++ b/ownCloud/Settings/Passcode/PasscodeViewController.xib @@ -1,6 +1,6 @@ - + @@ -37,36 +37,37 @@ - + - + - + - + - + - + - + - - + + + - - - + + - + From 01b92d0a3c132582c7c1ebad3aa51760d63cb51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Hu=CC=88hne?= Date: Thu, 7 Mar 2019 19:54:28 +0100 Subject: [PATCH 2/2] Changed constraints for theme buttons max width --- .../ServerListTableViewController.xib | 7 +++- .../Passcode/PasscodeViewController.xib | 42 +++++++++---------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/ownCloud/Server List/ServerListTableViewController.xib b/ownCloud/Server List/ServerListTableViewController.xib index 360edaab0..c25c52c69 100644 --- a/ownCloud/Server List/ServerListTableViewController.xib +++ b/ownCloud/Server List/ServerListTableViewController.xib @@ -56,6 +56,9 @@ + + + @@ -80,9 +83,7 @@ Start by adding your server. - - @@ -93,12 +94,14 @@ Start by adding your server. + + diff --git a/ownCloud/Settings/Passcode/PasscodeViewController.xib b/ownCloud/Settings/Passcode/PasscodeViewController.xib index 7067980d1..8f0087678 100644 --- a/ownCloud/Settings/Passcode/PasscodeViewController.xib +++ b/ownCloud/Settings/Passcode/PasscodeViewController.xib @@ -1,6 +1,6 @@ - + @@ -37,32 +37,32 @@ - + - + - + - + - +