on xenial help sign in
make it scale better for different screen sizes
commitc83ac8bdbf5563f48eb79c0bd690e0d4f8d7b8e4 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 15 Apr 2015, 16:06 (12 years ago) parentbe09e6c
2 files changed+6−8
qml/Stages/DesktopStage.qml+1−3 qml/Stages/SpreadMaths.qml+5−5
qml/Stages/DesktopStage.qml+1−3
@@ -201,8 +201,6 @@ FocusScope {
201201 itemIndex: index
202202 totalItems: ApplicationManager.count
203203 sceneHeight: root.height
204− spreadHeight: root.height * 0.35
205− spreadBottomOffset: sceneHeight * 0.2
206204 itemHeight: appDelegate.height
207205 }
208206
@@ -292,7 +290,7 @@ FocusScope {
292290 SpreadFlickable {
293291 id: spreadFlickable
294292 anchors.fill: parent
295− contentWidth: Math.max(6, ApplicationManager.count) * width / 5
293+ contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
296294 visible: false
297295 //boundsBehavior: Flickable.StopAtBounds
298296
qml/Stages/SpreadMaths.qml+5−5
@@ -16,16 +16,16 @@ Item {
1616 property int sceneHeight: units.gu(20)
1717
1818 // Spread properties
19− property real spreadHeight: units.gu(10)
20− property int spreadBottomOffset: units.gu(5)
21− property int foldingAreaWidth: units.gu(20)
19+ property real spreadHeight: sceneHeight * 0.35
20+ property int spreadBottomOffset: sceneHeight * 0.2
21+ property int foldingAreaWidth: flickableWidth * 0.2
2222 property int maxVisibleItems: 7
23− property int margins: units.gu(5)
23+ property int margins: flickableWidth * 0.05
2424 property real stackScale: 0.04
2525 property int leftEndFoldedAngle: 70
2626 property int rightEndFoldedAngle: 65
2727 property int unfoldedAngle: 30
28− property int stackWidth: units.gu(1)
28+ property int stackWidth: flickableWidth * 0.01
2929
3030
3131 // Internal