diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-09-14 10:25:01 +0300 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-09-14 10:27:21 +0300 |
commit | 97863a4992276a3d1aeb3c1bb9ef5a280a5e8b12 (patch) | |
tree | b38f6f152e7036b91c25834a917e320955660db2 /basicsuite/ebike-ui/ModeBox.qml | |
parent | 8be609623fc646e8d9642fc8481a1b9e59fb8417 (diff) | |
parent | aa8e21cc3f60e54dd9c5d1ec482ca440857568f0 (diff) |
Merge remote-tracking branch 'origin/5.11' into 5.12
* origin/5.11:
aa8e21c Add new Qt3D demo
ca03367 Exclude demos from colibri imx6ull
a5345fd qtwebbrowser: merge changes from qtwebbrowser git repo
d7e9731 do not enable highdpiscaling on emulator
f730907 Fix mediaplayer default video path
09aa32d Fix some major scaling & font issues on ebike-demo
Change-Id: I044c29ea2908a6254f32b0623037ea63f23d25cb
Diffstat (limited to 'basicsuite/ebike-ui/ModeBox.qml')
-rw-r--r-- | basicsuite/ebike-ui/ModeBox.qml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/basicsuite/ebike-ui/ModeBox.qml b/basicsuite/ebike-ui/ModeBox.qml index ad4eba7..490bc16 100644 --- a/basicsuite/ebike-ui/ModeBox.qml +++ b/basicsuite/ebike-ui/ModeBox.qml @@ -42,22 +42,21 @@ import "./BikeStyle" // Bottom-right corner, mode Item { - width: 320 - height: UILayout.bottomViewHeight + width: root.width * 0.425 + height: root.height * 0.45 Text { id: sportModeText anchors { - baseline: parent.bottom - baselineOffset: -UILayout.modeBottomOffset - horizontalCenter: parent.right - horizontalCenterOffset: -UILayout.naviModeCenterMargin + bottom: parent.bottom + bottomMargin: parent.height * 0.3 + left: parent.horizontalCenter } color: datastore.mode == DataStore.Sport ? Colors.modeSelected : Colors.modeUnselected font { family: "Montserrat, Medium" weight: Font.Medium - pixelSize: UILayout.modeTextSize + pixelSize: parent.height * 0.1 } text: qsTr("SPORT") } @@ -65,15 +64,15 @@ Item { Text { id: cruiseModeText anchors { - baseline: sportModeText.baseline - baselineOffset: -UILayout.modeDistance + bottom: sportModeText.top + bottomMargin: parent.height * 0.025 horizontalCenter: sportModeText.horizontalCenter } color: datastore.mode == DataStore.Cruise ? Colors.modeSelected : Colors.modeUnselected font { family: "Montserrat, Medium" weight: Font.Medium - pixelSize: UILayout.modeTextSize + pixelSize: parent.height * 0.1 } text: qsTr("CRUISE") } @@ -84,7 +83,7 @@ Item { } Rectangle { - width: UILayout.horizontalViewSeparatorWidth + width: parent.width * 0.775 height: UILayout.horizontalViewSeparatorHeight anchors.top: parent.top anchors.right: parent.right @@ -93,7 +92,7 @@ Item { Rectangle { width: UILayout.verticalViewSeparatorWidth - height: UILayout.verticalViewSeparatorHeightBottom + height: parent.height * 0.475 anchors.bottom: parent.bottom anchors.left: parent.left color: Colors.separator |