Skip to content

Commit

Permalink
Fix Electrons (closes: #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaneryu committed Aug 5, 2024
1 parent 1b66b6b commit 260c0bf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
30 changes: 26 additions & 4 deletions src/createthesun/qml/electrons.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,47 @@ Item {
target:Theme
}

Rectangle {
id: textDebugFill
color: "transparent"

width: text.width
height: text.height

x: text.x
y: text.y
}

Text {
id: text
text: Items.getItem("electrons").amount
color: Theme.tertiary
font.pixelSize: 24
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter


anchors.top: parent.top
width: parent.width
/* center text */
horizontalAlignment: Text.AlignHCenter
height: 24

TextMetrics {
id: textMetrics
text: text.text
font: text.font
}
}

Kyu.ProgressBar {
id: progressBar

anchors.left: parent.left
anchors.right: parent.right
anchors.top: text.bottom
anchors.bottom: parent.bottom

width: parent.width

anchors.topMargin: 10
percent: 50
vertical: true

Expand Down
1 change: 0 additions & 1 deletion src/createthesun/qml/progressbar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ Item {
}
Rectangle {
id: background
clip: true
anchors.fill: parent

Rectangle {
Expand Down
6 changes: 1 addition & 5 deletions src/createthesun/qml/tabs/mainTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ Item {
id: tabBar
model: ItemsModel

anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top

height: (43 / 2) + 10
anchors.fill: parent

orientation: ListView.Vertical

Expand Down

0 comments on commit 260c0bf

Please sign in to comment.