summaryrefslogtreecommitdiffstats
path: root/scripts/kirigami.diff
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-28 14:53:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-28 14:53:22 -0700
commita5db03c2b32115b14e4b83501a0771b186d87913 (patch)
tree81194ac61e00ff7f4c9fdec17185aa679e74fbc4 /scripts/kirigami.diff
parente99df4af2cf9d5a94797107b8e221b7dbe89ea78 (diff)
downloadsubsurface-a5db03c2b32115b14e4b83501a0771b186d87913.tar.gz
Revert "QML UI: newer Kirigami and fallout"
Turns out that Jan found an issue with the latest Kirigami, so let's go back to the known good one. This reverts commit 17ec95e70c3ae58d505b8c3cbbaf6815186b93cb. Suggested-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/kirigami.diff')
-rw-r--r--scripts/kirigami.diff14
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/kirigami.diff b/scripts/kirigami.diff
index 49027d23f..daa42841b 100644
--- a/scripts/kirigami.diff
+++ b/scripts/kirigami.diff
@@ -1,8 +1,7 @@
diff -ur ../kirigami/src/controls/GlobalDrawer.qml mobile-widgets/qml/kirigami/src/controls/GlobalDrawer.qml
---- ../kirigami/src/controls/GlobalDrawer.qml 2018-09-27 15:27:32.340600738 +0200
-+++ src/controls/GlobalDrawer.qml 2018-09-27 16:45:29.689438950 +0200
-@@ -328,17 +328,13 @@
- ColumnLayout {
+--- ../kirigami/src/controls/GlobalDrawer.qml 2018-06-16 16:18:42.000000000 +0900
++++ src/controls/GlobalDrawer.qml 2018-06-17 05:05:31.000000000 +0900
+@@ -249,15 +249,11 @@
id: topContent
spacing: 0
- Layout.alignment: Qt.AlignHCenter
@@ -12,11 +11,10 @@ diff -ur ../kirigami/src/controls/GlobalDrawer.qml mobile-widgets/qml/kirigami/s
- Layout.topMargin: root.topPadding
Layout.fillWidth: true
Layout.fillHeight: true
- Layout.preferredHeight: implicitHeight * opacity
//NOTE: why this? just Layout.fillWidth: true doesn't seem sufficient
//as items are added only after this column creation
- Layout.minimumWidth: parent.width - root.leftPadding - root.rightPadding
+ Layout.minimumWidth: parent.width
- visible: children.length > 0 && childrenRect.height > 0 && opacity > 0
- opacity: !root.collapsed || showTopContentWhenCollapsed
- Behavior on opacity {
+ visible: children.length > 0 && childrenRect.height > 0
+ }
+