on xenial help sign in
drop some debug, make the buttons a bit bigger
66bea37Lukáš Tinkl
qml/Stages/ResizeGrip.qml+2−2
@@ -18,7 +18,7 @@ import QtQuick 2.4
18import Ubuntu.Components 1.3
18import Ubuntu.Components 1.3
19
19
20Rectangle {
20Rectangle {
21− width: units.gu(4)
21+ width: units.gu(5)
22 height: width
22 height: width
23 radius: height / 2
23 radius: height / 2
24 color: theme.palette.normal.background
24 color: theme.palette.normal.background
@@ -29,7 +29,7 @@ Rectangle {
29 Image {
29 Image {
30 source: "graphics/arrows.png"
30 source: "graphics/arrows.png"
31 anchors.centerIn: parent
31 anchors.centerIn: parent
32− width: units.gu(2)
32+ width: parent.width / 2
33 height: width
33 height: width
34 }
34 }
35
35
qml/Stages/WindowControlsOverlay.qml+2−8
@@ -33,16 +33,10 @@ Item {
33 maximumTouchPoints: 2
33 maximumTouchPoints: 2
34
34
35 onRecognisedPressChanged: {
35 onRecognisedPressChanged: {
36− print("Press recognized:", recognisedPress)
37 if (recognisedPress) {
36 if (recognisedPress) {
38 overlayTimer.running = true;
37 overlayTimer.running = true;
39 }
38 }
40 }
39 }
41− onRecognisedDragChanged: {
42− print("Drag recognized:", recognisedDrag)
43− }
44− onPressed: print("Pressed:", x, y)
45− onDropped: print("Dropped")
46 }
40 }
47
41
48
42
@@ -50,7 +44,7 @@ Item {
50 Timer {
44 Timer {
51 id: overlayTimer
45 id: overlayTimer
52 interval: 2000
46 interval: 2000
53− repeat: priv.dragging || root.resizeTarget.dragging
47+ repeat: priv.dragging || root.resizeTarget.dragging // show it as long as we're moving/resizing
54 }
48 }
55
49
56
50
@@ -109,7 +103,7 @@ Item {
109
103
110 Image {
104 Image {
111 source: "graphics/arrows-centre.png"
105 source: "graphics/arrows-centre.png"
112− width: units.gu(6)
106+ width: units.gu(8)
113 height: width
107 height: width
114 anchors.centerIn: parent
108 anchors.centerIn: parent
115 }
109 }