Commit 05947119 authored by Holger Kaelberer's avatar Holger Kaelberer
Browse files

Improve font-sizes for tablet devices

On mobile devices with bigger screens some Text elements appeared too
small.
parent cb477e99
......@@ -29,7 +29,7 @@ Item {
GCText {
id: text
font.pointSize: 32
font.pointSize: 32 * ApplicationInfo.ratio
font.bold: true
style: Text.Outline
styleColor: "white"
......
......@@ -222,7 +222,7 @@ ActivityBase {
wrapMode: TextEdit.WordWrap
horizontalAlignment: TextEdit.AlignHCenter
verticalAlignment: TextEdit.AlignVCenter
font.pointSize: 14
font.pointSize: 14 * ApplicationInfo.ratio
// Remove the text when both keys has been pressed
visible: bar.level === 1 &&
!(items.leftPressed && items.rightPressed)
......
......@@ -35,7 +35,7 @@ Image {
Text {
id: heading
text: qsTr("Braille : Unlocking the Code")
font.pointSize: 24
font.pointSize: 24 * ApplicationInfo.ratio
horizontalAlignment: Text.AlignHCenter
font.weight: Font.DemiBold
anchors.centerIn: parent.Center
......@@ -66,7 +66,7 @@ Image {
qsTr('Each Braille character, or cell, is made up of six dot positions, arranged in ' +
'a rectangle containing two columns of three dots each. As seen on the left, each ' +
'dot is referenced by a number from 1 to 6.')
font.pointSize: 14
font.pointSize: 14 * ApplicationInfo.ratio
font.weight: Font.DemiBold
horizontalAlignment: Text.AlignJustify
anchors {
......@@ -85,7 +85,7 @@ Image {
Text {
id: bottom_text
text: qsTr("When you are ready, click on me and try reproducing Braille characters.")
font.pointSize: 12
font.pointSize: 12 * ApplicationInfo.ratio
font.weight: Font.DemiBold
width: parent.width * 0.3
color: "white"
......
......@@ -88,7 +88,7 @@ ActivityBase {
items.targetH) + ":" + Activity.get2CharValue(
items.targetM) + ":" + Activity.get2CharValue(
items.targetS)
font.pointSize: 18
font.pointSize: 18 * ApplicationInfo.ratio
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
width: parent.width / 3
......
......@@ -90,7 +90,7 @@ ActivityBase {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 10
font.pointSize: 24
font.pointSize: 24 * ApplicationInfo.ratio
font.weight: Font.DemiBold
style: Text.Outline
styleColor: "black"
......
......@@ -109,7 +109,7 @@ Item {
id: wordText
text: ""
font.pointSize: 35
font.pointSize: 35 * ApplicationInfo.ratio
font.bold: true
color: "navy"
style: Text.Outline
......
......@@ -270,7 +270,7 @@ ActivityBase {
width: activityBackgroung.width
fontSizeMode: Text.Fit
minimumPointSize: 7
font.pointSize: 14
font.pointSize: 14 * ApplicationInfo.ratio
elide: Text.ElideRight
maximumLineCount: 2
wrapMode: Text.WordWrap
......
......@@ -360,7 +360,7 @@ ActivityBase {
top: parent.top
margins: 20
}
font.pointSize: 13
font.pointSize: 13 * ApplicationInfo.ratio
color: "white"
wrapMode: TextEdit.WordWrap
horizontalAlignment: TextEdit.AlignHCenter
......
......@@ -156,7 +156,7 @@ ActivityBase
}
style: Text.Outline; styleColor: "black"
color: "white"
font.pointSize: 24
font.pointSize: 24 * ApplicationInfo.ratio
states: [
State {
......@@ -204,7 +204,7 @@ ActivityBase
GCText {
id: currentQuestionNumberText
anchors.centerIn: parent
font.pointSize: 24
font.pointSize: 24 * ApplicationInfo.ratio
style: Text.Outline; styleColor: "white"
color: "black"
}
......
......@@ -188,7 +188,7 @@ ActivityBase {
sourceSize.height: column.itemStoreHeight
GCText {
text: modelData.price
font.pointSize: 20
font.pointSize: 20 * ApplicationInfo.ratio
font.weight: Font.DemiBold
style: Text.Outline
styleColor: "black"
......@@ -223,7 +223,7 @@ ActivityBase {
horizontalAlignment: Text.AlignHCenter
width: column.width
wrapMode: Text.WordWrap
font.pointSize: 14
font.pointSize: 14 * ApplicationInfo.ratio
}
}
......
......@@ -81,7 +81,7 @@ ActivityBase {
anchors {
horizontalCenter: parent.horizontalCenter
}
font.pointSize: 16
font.pointSize: 16 * ApplicationInfo.ratio
color: "white"
style: Text.Outline
styleColor: "black"
......
......@@ -58,7 +58,7 @@ Image {
anchors.verticalCenter: cloud.verticalCenter
color: "black"
font.bold: true
font.pointSize: 18
font.pointSize: 18 * ApplicationInfo.ratio
}
Component.onCompleted: {
......
......@@ -76,7 +76,7 @@ Item {
// the x of the text is changed, which would not work if we use an anchor layout.
property int horizontallyCenteredX: (button.width - width) >> 1;
x: horizontallyCenteredX;
font.pointSize: 18
font.pointSize: 18 * ApplicationInfo.ratio
font.bold: true
text: textLabel
}
......
......@@ -239,7 +239,7 @@ Item {
GCText {
id: levelTextId
text: "" + level
font.pointSize: 32
font.pointSize: 32 * ApplicationInfo.ratio
font.weight: Font.DemiBold
style: Text.Outline
styleColor: "black"
......
......@@ -88,7 +88,7 @@ Rectangle {
text: content
width: flick.width
height: flick.height
font.pointSize: 14
font.pointSize: 14 * ApplicationInfo.ratio
wrapMode: TextEdit.Wrap
textFormat: TextEdit.RichText
onLinkActivated: Qt.openUrlExternally(link)
......
......@@ -59,7 +59,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: numbers[index]
font.pointSize: 28
font.pointSize: 28 * ApplicationInfo.ratio
font.bold: true
}
......
......@@ -55,7 +55,7 @@ Rectangle {
GCText {
id: subLevelText
anchors.centerIn: parent
font.pointSize: 16
font.pointSize: 16 * ApplicationInfo.ratio
font.bold: true
color: "black"
text: message
......
......@@ -77,7 +77,7 @@ Item {
//renderType: Text.NativeRendering
anchors.centerIn: parent
text: control.text
font.pointSize: 20
font.pointSize: 20 * ApplicationInfo.ratio
font.bold: false
color: "black"
//antialiasing: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment