summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-09 14:17:54 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-13 11:32:27 -0700
commitfe56fa587a18b2f6424e4bb3c56a4b23472994de (patch)
treee19be75660dfa3c11db1775a93595a3c6d89c641
parent56713842b90c6bf329c636812ba985c793c81be3 (diff)
downloadsubsurface-fe56fa587a18b2f6424e4bb3c56a4b23472994de.tar.gz
Mobile: bring back the adaptive size for the tool bar
When switching to the global tool bar this was lost, and then it turned out to be broken and required more patches to fix. Commented out because it doesn't work at all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/main.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index f06863dbd..02d763e49 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -22,6 +22,9 @@ Kirigami.ApplicationWindow {
pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Breadcrumb
pageStack.globalToolBar.showNavigationButtons: (Kirigami.ApplicationHeaderStyle.ShowBackButton | Kirigami.ApplicationHeaderStyle.ShowForwardButton)
+ pageStack.globalToolBar.minimumHeight: 0
+ pageStack.globalToolBar.preferredHeight: Math.round(Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1.5))
+ pageStack.globalToolBar.maximumHeight: Kirigami.Units.gridUnit * 2
property alias oldStatus: prefs.oldStatus
property alias notificationText: manager.notificationText