From b8253bb707ae361ba839ecd25c88f0e1b650732b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 17 Sep 2016 12:56:47 -0700 Subject: [PATCH] QML UI: two columns on 1024x768 iPads Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index ae476b315..1df958302 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -317,7 +317,7 @@ Kirigami.ApplicationWindow { property color shadedColor: "#132744" property color accentTextColor: "#ececec" property color diveListTextColor: "#000000" // the Kirigami theme text color is too light - property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*30)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*30))) : rootItem.width + property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*28)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*28))) : rootItem.width } property Item stackView: pageStack @@ -379,7 +379,7 @@ Kirigami.ApplicationWindow { rootItem.visible = true diveList.opacity = 1 rootItem.opacity = 1 - pageStack.defaultColumnWidth = Kirigami.Units.gridUnit * 30 + pageStack.defaultColumnWidth = Kirigami.Units.gridUnit * 28 } Behavior on opacity { NumberAnimation {