Launcher styling tweaks
This commit is contained in:
parent
c38e820756
commit
0987b82fa8
9 changed files with 14 additions and 8 deletions
|
@ -22,6 +22,7 @@ Rectangle {
|
|||
leftMargin: Style.margin
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
}
|
||||
|
||||
Image {
|
||||
|
|
|
@ -34,6 +34,7 @@ Item {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: "white"
|
||||
font.underline: mouse.containsMouse
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@ FocusScope {
|
|||
selectByMouse: true
|
||||
width: metrics.width
|
||||
horizontalAlignment: Text.AlignRight
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
|
||||
focus: true
|
||||
color: enabled ? (activeFocus ? Style.themeColor : Style.baseTextColor) : Style.disabledTextColor
|
||||
|
|
|
@ -127,6 +127,7 @@ FocusScope {
|
|||
selectByMouse: true
|
||||
width: metrics.width
|
||||
horizontalAlignment: Text.AlignRight
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
|
||||
focus: true
|
||||
color: enabled ? (activeFocus ? Style.themeColor : Style.baseTextColor) : Style.disabledTextColor
|
||||
|
|
|
@ -55,7 +55,7 @@ FocusScope {
|
|||
selectByMouse: true
|
||||
focus: true
|
||||
color: enabled ? (activeFocus ? Style.themeColor : Style.baseTextColor) : Style.disabledTextColor
|
||||
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
StyledText {
|
||||
id: placeholder
|
||||
visible: (edit.text.length == 0) && !edit.activeFocus
|
||||
|
|
|
@ -83,9 +83,10 @@ Item {
|
|||
spacing: Style.margin
|
||||
width: parent.width
|
||||
|
||||
Text { // heading text
|
||||
StyledText { // heading text
|
||||
id: airportHeading
|
||||
width: parent.width
|
||||
font.pixelSize: Style.headingFontPixelSize
|
||||
text: isHeliport ? qsTr("Heliport: ") + airportData.ident + " / " + airportData.name
|
||||
: qsTr("Airport: ") + airportData.ident + " / " + airportData.name
|
||||
}
|
||||
|
@ -104,7 +105,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
text: isHeliport ? qsTr("Pad") : qsTr("Runway")
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
@ -185,7 +186,7 @@ Item {
|
|||
enabled: runwayRadio.selected && onFinalToggle.checked
|
||||
}
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
text: qsTr(" from the threshold")
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
@ -223,7 +224,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
text: qsTr("Parking")
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
|
@ -57,11 +57,11 @@ Item {
|
|||
spacing: Style.margin
|
||||
width: parent.width
|
||||
|
||||
Text { // heading text
|
||||
StyledText { // heading text
|
||||
id: headingText
|
||||
width: parent.width
|
||||
text: "format lat-lon as string!"
|
||||
|
||||
font.pixelSize: Style.headingFontPixelSize
|
||||
Binding {
|
||||
when: navaidData.valid
|
||||
target: headingText
|
||||
|
|
|
@ -37,6 +37,7 @@ Item {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
anchors.top: iconImage.bottom
|
||||
anchors.topMargin: Style.margin
|
||||
font.pixelSize: Style.baseFontPixelSize
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
@ -14,7 +14,7 @@ Rectangle {
|
|||
|
||||
color: mouse.containsMouse ? "#064989" : (active ? "#1b7ad3" : "white")
|
||||
|
||||
Text {
|
||||
StyledText {
|
||||
id: buttonText
|
||||
anchors.centerIn: parent
|
||||
color: (active | mouse.containsMouse) ? "white" : "#3f3f3f"
|
||||
|
|
Loading…
Reference in a new issue