File tree Expand file tree Collapse file tree 5 files changed +75
-0
lines changed Expand file tree Collapse file tree 5 files changed +75
-0
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ QML_QRC = qml/bitcoin_qml.qrc
341
341
QML_RES_QML = \
342
342
qml/components/AboutOptions.qml \
343
343
qml/components/BlockClock.qml \
344
+ qml/components/BlockClockDisplayMode.qml \
344
345
qml/components/BlockCounter.qml \
345
346
qml/components/CaretRightButton.qml \
346
347
qml/components/ConnectionOptions.qml \
@@ -389,6 +390,7 @@ QML_RES_QML = \
389
390
qml/pages/onboarding/OnboardingStorageLocation.qml \
390
391
qml/pages/onboarding/OnboardingStrengthen.qml \
391
392
qml/pages/settings/SettingsAbout.qml \
393
+ qml/pages/settings/SettingsBlockClockDisplayMode.qml \
392
394
qml/pages/settings/SettingsConnection.qml \
393
395
qml/pages/settings/SettingsDeveloper.qml \
394
396
qml/pages/settings/SettingsProxy.qml \
Original file line number Diff line number Diff line change 2
2
<qresource prefix="/qml">
3
3
<file>components/AboutOptions.qml</file>
4
4
<file>components/BlockClock.qml</file>
5
+ <file>components/BlockClockDisplayMode.qml</file>
5
6
<file>components/BlockCounter.qml</file>
6
7
<file>components/CaretRightButton.qml</file>
7
8
<file>components/ConnectionOptions.qml</file>
50
51
<file>pages/onboarding/OnboardingStorageLocation.qml</file>
51
52
<file>pages/onboarding/OnboardingStrengthen.qml</file>
52
53
<file>pages/settings/SettingsAbout.qml</file>
54
+ <file>pages/settings/SettingsBlockClockDisplayMode.qml</file>
53
55
<file>pages/settings/SettingsConnection.qml</file>
54
56
<file>pages/settings/SettingsDeveloper.qml</file>
55
57
<file>pages/settings/SettingsProxy.qml</file>
Original file line number Diff line number Diff line change 37
37
BlockClockDial {
38
38
id: dial
39
39
anchors .horizontalCenter : root .horizontalCenter
40
+ scale: Theme .blockclocksize
40
41
width: Math .min ((root .parentWidth * dial .scale ), (root .parentHeight * dial .scale ))
41
42
height: dial .width
42
43
penWidth: dial .width / 50
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import QtQuick.Layouts 1.15
8
+ import Qt.labs.settings 1.0
9
+ import "../controls"
10
+
11
+ ColumnLayout {
12
+ id: root
13
+ spacing: 15
14
+
15
+ ButtonGroup {
16
+ id: group
17
+ }
18
+
19
+ OptionButton {
20
+ Layout .fillWidth : true
21
+ ButtonGroup .group : group
22
+ text: qsTr (" Compact" )
23
+ description: qsTr (" For personal use on a computer or smartphone." )
24
+ image: " image://images/blockclock-size-compact"
25
+ checked: Theme .blockclocksize == (1 / 3 )
26
+ onClicked: {
27
+ Theme .blockclocksize = (1 / 3 )
28
+ }
29
+ }
30
+
31
+ OptionButton {
32
+ Layout .fillWidth : true
33
+ ButtonGroup .group : group
34
+ text: qsTr (" Showcase" )
35
+ description: qsTr (" A larger block clock for public display on a tablet or other large screen." )
36
+ image: " image://images/blockclock-size-showcase"
37
+ checked: Theme .blockclocksize == (1 / 2 )
38
+ onClicked: {
39
+ Theme .blockclocksize = (1 / 2 )
40
+ }
41
+ }
42
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import QtQuick.Layouts 1.15
8
+ import "../../controls"
9
+ import "../../components"
10
+
11
+ Page {
12
+ property alias navLeftDetail: navbar .leftDetail
13
+ property alias navMiddleDetail: navbar .middleDetail
14
+
15
+ background: null
16
+ implicitWidth: 450
17
+ leftPadding: 20
18
+ rightPadding: 20
19
+ topPadding: 30
20
+
21
+ header: NavigationBar {
22
+ id: navbar
23
+ }
24
+ BlockClockDisplayMode {
25
+ width: Math .min (parent .width , 450 )
26
+ anchors .horizontalCenter : parent .horizontalCenter
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments