File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
7
import QtQuick.Layouts 1.15
8
+ import Qt.labs.settings 1.0
8
9
9
10
import org.bitcoincore.qt 1.0
10
11
@@ -28,10 +29,15 @@ Item {
28
29
29
30
activeFocusOnTab: true
30
31
32
+ Settings {
33
+ id: settings
34
+ property alias blockclocksize: dial .scale
35
+ }
36
+
31
37
BlockClockDial {
32
38
id: dial
33
39
anchors .horizontalCenter : root .horizontalCenter
34
- width: Math .min ((root .parentWidth * ( 1 / 3 )) , (root .parentHeight * ( 1 / 3 ) ))
40
+ width: Math .min ((root .parentWidth * dial . scale ) , (root .parentHeight * dial . scale ))
35
41
height: dial .width
36
42
penWidth: dial .width / 50
37
43
timeRatioList: chainModel .timeRatioList
Original file line number Diff line number Diff line change 1
1
pragma Singleton
2
2
import QtQuick 2.15
3
3
import QtQuick.Controls 2.15
4
+ import Qt.labs.settings 1.0
4
5
5
6
Control {
7
+ id: root
6
8
property bool dark: true
9
+ property real blockclocksize: (5 / 12 )
7
10
readonly property ColorSet color: dark ? darkColorSet : lightColorSet
8
11
readonly property ImageSet image: dark ? darkImageSet : lightImageSet
9
12
13
+ Settings {
14
+ id: settings
15
+ property alias blockclocksize: root .blockclocksize
16
+ }
17
+
10
18
component ColorSet: QtObject {
11
19
required property color white
12
20
required property color background
You can’t perform that action at this time.
0 commit comments