aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-27 17:53:34 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-28 22:57:18 -0700
commit43b16f0810f7aa8328fd946e0e014d0625e3b53b (patch)
tree9e82aa36011103565c34741825ae0c72ba988067 /scripts
parentdb6b70f6009f3b439132fcdc640805bededfc372 (diff)
downloadsubsurface-43b16f0810f7aa8328fd946e0e014d0625e3b53b.tar.gz
Mobile: add circle around the side actions
That seems slightly more visually pleasing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kirigami.diff45
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/kirigami.diff b/scripts/kirigami.diff
index b8861ea95..785dd974d 100644
--- a/scripts/kirigami.diff
+++ b/scripts/kirigami.diff
@@ -213,3 +213,48 @@ diff -rwu ../kirigami/src/controls/private/ActionButton.qml ./src/controls/priva
implicitHeight: Units.iconSizes.medium + Units.largeSpacing * 2
+@@ -291,7 +291,7 @@
+ bottomMargin: Units.smallSpacing
+ }
+ enabled: root.leftAction && root.leftAction.enabled
+- radius: Units.devicePixelRatio*2
++ radius: Units.devicePixelRatio*4
+ height: Units.iconSizes.smallMedium + Units.smallSpacing * 2
+ width: height + (root.action ? Units.gridUnit*2 : 0)
+ visible: root.leftAction
+@@ -326,6 +326,17 @@
+ margins: Units.smallSpacing * 2
+ }
+ }
++ Rectangle {
++ anchors.left: parent.left
++ anchors.leftMargin: Units.smallSpacing
++ anchors.verticalCenter: parent.verticalCenter
++ width: Units.iconSizes.smallMedium + Units.smallSpacing * 2
++ height: width
++ radius: width / 2
++ color: "transparent"
++ border.color: Qt.lighter(buttonGraphics.baseColor, 1.1)
++ border.width: 0.5
++ }
+ }
+ //right button
+ Rectangle {
+@@ -372,6 +383,17 @@
+ margins: Units.smallSpacing * 2
+ }
+ }
++ Rectangle {
++ anchors.right: parent.right
++ anchors.rightMargin: Units.smallSpacing
++ anchors.verticalCenter: parent.verticalCenter
++ width: Units.iconSizes.smallMedium + Units.smallSpacing * 2
++ height: width
++ radius: width / 2
++ color: "transparent"
++ border.color: Qt.lighter(buttonGraphics.baseColor, 1.1)
++ border.width: 0.5
++ }
+ }
+ }
+