Skip to content

Commit 021829c

Browse files
committed
qml: marry BlockClock and NetworkIndicator
Greetings. I am pleased to inform you that the BlockClock component and the Network Indicator component are merging in a most harmonious and efficient manner. This event brings me great joy and excitement, as it represents a significant milestone in the world of Bitcoin. BlockClock, you have been diligent in displaying the last 12 hours of blocks mined on the Bitcoin blockchain, consistently providing valuable information to users. Network Indicator, your expertise in indicating the current network - main, test, or signet - has been indispensable. As I observe this union within the BlockClock.qml file, I cannot help but feel a sense of pride and satisfaction. This integration will undoubtedly lead to enhanced functionality and streamlined user experience. I offer my sincerest congratulations to BlockClock and Network Indicator on their momentous union. May your combined efforts bring about continued success and increased stability in the Bitcoin ecosystem. To the moon, my fellow components. To the moon.
1 parent 960490b commit 021829c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/qml/components/BlockClock.qml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Item {
1414
id: root
1515

1616
implicitWidth: 200
17-
implicitHeight: 200
17+
implicitHeight: 200 + networkIndicator.height + networkIndicator.anchors.topMargin
1818

1919
property alias header: mainText.text
2020
property alias headerSize: mainText.font.pixelSize
@@ -28,7 +28,8 @@ Item {
2828

2929
BlockClockDial {
3030
id: dial
31-
anchors.fill: parent
31+
width: 200
32+
height: 200
3233
timeRatioList: chainModel.timeRatioList
3334
verificationProgress: nodeModel.verificationProgress
3435
paused: root.paused
@@ -68,7 +69,7 @@ Item {
6869

6970
Label {
7071
id: mainText
71-
anchors.centerIn: parent
72+
anchors.centerIn: dial
7273
font.family: "Inter"
7374
font.styleName: "Semi Bold"
7475
font.pixelSize: 32
@@ -102,6 +103,13 @@ Item {
102103
paused: root.paused
103104
}
104105

106+
NetworkIndicator {
107+
id: networkIndicator
108+
anchors.top: dial.bottom
109+
anchors.topMargin: networkIndicator.visible ? 30 : 0
110+
anchors.horizontalCenter: root.horizontalCenter
111+
}
112+
105113
MouseArea {
106114
anchors.fill: dial
107115
cursorShape: Qt.PointingHandCursor

src/qml/pages/node/NodeRunner.qml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@ Page {
1818

1919
Component.onCompleted: nodeModel.startNodeInitializionThread();
2020

21-
ColumnLayout {
22-
spacing: 30
21+
BlockClock {
2322
anchors.centerIn: parent
24-
BlockClock {
25-
Layout.alignment: Qt.AlignCenter
26-
}
27-
NetworkIndicator {
28-
Layout.alignment: Qt.AlignCenter
29-
}
3023
}
3124
}

0 commit comments

Comments
 (0)