on xenial help sign in
drop some debug, make the buttons a bit bigger
commit66bea3724a7aedc2fb02fd524c0dd4cc967bbb27 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 30 Mar 2016, 17:18 (11 years ago) parent5ee50b0
2 files changed+4−10
qml/Stages/ResizeGrip.qml+2−2 qml/Stages/WindowControlsOverlay.qml+2−8
qml/Stages/ResizeGrip.qml+2−2
@@ -18,7 +18,7 @@ import QtQuick 2.4
1818import Ubuntu.Components 1.3
1919
2020Rectangle {
21− width: units.gu(4)
21+ width: units.gu(5)
2222 height: width
2323 radius: height / 2
2424 color: theme.palette.normal.background
@@ -29,7 +29,7 @@ Rectangle {
2929 Image {
3030 source: "graphics/arrows.png"
3131 anchors.centerIn: parent
32− width: units.gu(2)
32+ width: parent.width / 2
3333 height: width
3434 }
3535
qml/Stages/WindowControlsOverlay.qml+2−8
@@ -33,16 +33,10 @@ Item {
3333 maximumTouchPoints: 2
3434
3535 onRecognisedPressChanged: {
36− print("Press recognized:", recognisedPress)
3736 if (recognisedPress) {
3837 overlayTimer.running = true;
3938 }
4039 }
41− onRecognisedDragChanged: {
42− print("Drag recognized:", recognisedDrag)
43− }
44− onPressed: print("Pressed:", x, y)
45− onDropped: print("Dropped")
4640 }
4741
4842
@@ -50,7 +44,7 @@ Item {
5044 Timer {
5145 id: overlayTimer
5246 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
5448 }
5549
5650
@@ -109,7 +103,7 @@ Item {
109103
110104 Image {
111105 source: "graphics/arrows-centre.png"
112− width: units.gu(6)
106+ width: units.gu(8)
113107 height: width
114108 anchors.centerIn: parent
115109 }