Skip to content

Commit

Permalink
Polish guides looks, font sizes, and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 28, 2024
1 parent 86c487d commit 8952876
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/qml/QFieldGuide.qml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ Popup {
}

Text {
id: title
objectName: "guideInternalTitle"
font.bold: true
font: Theme.strongFont
elide: Text.ElideRight
text: {
if (internalObject.step) {
Expand All @@ -213,6 +214,7 @@ Popup {
Text {
id: description
objectName: "guideInternalDescription"
font: Theme.tipFont
wrapMode: Text.WordWrap
color: Theme.mainTextColor
text: {
Expand Down Expand Up @@ -245,21 +247,18 @@ Popup {

QfButton {
id: nextButton
objectName: "nextButton"

property bool isLast: guide.index === steps.length - 1

objectName: "nextButton"
text: isLast ? guide.finishText : guide.nextText
verticalPadding: 0
horizontalPadding: 12
anchors {
bottom: parent.bottom
bottomMargin: 8
right: parent.right
rightMargin: 15
}
bgcolor: Theme.mainColor
color: "white"
height: 32
radius: 5
onClicked: {
Expand All @@ -275,9 +274,7 @@ Popup {
id: previousButton
objectName: "previousButton"
text: guide.previousText
verticalPadding: 0
horizontalPadding: 12
bgcolor: "#00000000"
bgcolor: "transparent"
color: Theme.mainColor
height: 32
radius: 5
Expand All @@ -297,14 +294,13 @@ Popup {
anchors {
right: parent.right
top: parent.top
margins: 2
topMargin: 8
rightMargin: 8
}
width: 30
height: width
icon.color: Theme.mainTextColor
icon.source: Theme.getThemeIcon('ic_close_black_24dp')
icon.width: 45
icon.height: 45
padding: 0
bgcolor: "transparent"

Expand Down

0 comments on commit 8952876

Please sign in to comment.