Skip to content

Commit

Permalink
Merge pull request #2952 from MerginMaps/onboarding_misc
Browse files Browse the repository at this point in the history
Styled Progress bar for the Header item
  • Loading branch information
PeterPetrik authored Dec 11, 2023
2 parents 0515e52 + ae37aca commit 6e34962
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 18 deletions.
3 changes: 2 additions & 1 deletion app/qml/components/MMProgressBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Rectangle {
id: control

required property real position // [0 - 1]
property color progressColor: __style.grassColor

width: parent.width
height: 12 * __dp
Expand All @@ -23,7 +24,7 @@ Rectangle {
Rectangle {
width: parent.width * control.position
height: parent.height
color: __style.grassColor
color: control.progressColor
radius: height / 2
}
}
71 changes: 54 additions & 17 deletions gallery/qml/pages/MiscPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,63 @@ Column {
padding: 20
spacing: 5

GroupBox {
title: "MMProgressBar"
background: Rectangle {
color: "white"
border.color: "gray"
}
label: Label {
color: "black"
text: parent.title
padding: 5
Row {
spacing: 5
GroupBox {
title: "MMProgressBar"
background: Rectangle {
color: "white"
border.color: "gray"
}
label: Label {
color: "black"
text: parent.title
padding: 5
}

Column {
spacing: 20
anchors.fill: parent
MMProgressBar {
position: 0
}
MMProgressBar {
position: 0.6
}
}
}

Column {
spacing: 20
anchors.fill: parent
MMProgressBar {
position: 0
GroupBox {
title: "MMProgressBar"
background: Rectangle {
color: "white"
border.color: "gray"
}
label: Label {
color: "black"
text: parent.title
padding: 5
}
MMProgressBar {
position: 0.4

Column {
spacing: 20
anchors.fill: parent
MMProgressBar {
width: 60 * __dp
height: 4 * __dp

position: 0
color: __style.grassColor
progressColor: __style.forestColor
}
MMProgressBar {
width: 60 * __dp
height: 4 * __dp

position: 0.6
color: __style.grassColor
progressColor: __style.forestColor
}
}
}
}
Expand Down

1 comment on commit 6e34962

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.12.495011 just submitted!

Please sign in to comment.