File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,21 @@ ColumnLayout {
23
23
onClicked: loadedItem .clicked ()
24
24
}
25
25
Setting {
26
+ id: dbcacheSetting
26
27
Layout .fillWidth : true
27
28
header: qsTr (" Database cache size" )
28
29
actionItem: ValueInput {
30
+ parentState: dbcacheSetting .state
29
31
description: (" 450 MiB" )
30
32
}
31
33
onClicked: loadedItem .forceActiveFocus ()
32
34
}
33
35
Setting {
36
+ id: parSetting
34
37
Layout .fillWidth : true
35
38
header: qsTr (" Script verification threads" )
36
39
actionItem: ValueInput {
40
+ parentState: parSetting .state
37
41
description: (" 0" )
38
42
}
39
43
onClicked: loadedItem .forceActiveFocus ()
Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ ColumnLayout {
22
22
}
23
23
}
24
24
Setting {
25
+ id: pruneTargetSetting
25
26
Layout .fillWidth : true
26
27
header: qsTr (" Storage limit (GB)" )
27
28
actionItem: ValueInput {
29
+ parentState: pruneTargetSetting .state
28
30
description: optionsModel .pruneSizeGB
29
31
onEditingFinished: optionsModel .pruneSizeGB = parseInt (text)
30
32
}
Original file line number Diff line number Diff line change @@ -7,14 +7,36 @@ import QtQuick.Controls 2.15
7
7
8
8
TextEdit {
9
9
id: root
10
+ required property string parentState
10
11
property string description: " "
11
12
property int descriptionSize: 18
13
+ property color textColor
14
+ state: root .parentState
15
+
16
+ states: [
17
+ State {
18
+ name: " FILLED"
19
+ PropertyChanges { target: root; textColor: Theme .color .neutral9 }
20
+ },
21
+ State {
22
+ name: " HOVER"
23
+ PropertyChanges { target: root; textColor: Theme .color .orangeLight1 }
24
+ },
25
+ State {
26
+ name: " ACTIVE"
27
+ PropertyChanges { target: root; textColor: Theme .color .orange }
28
+ }
29
+ ]
12
30
13
31
font .family : " Inter"
14
32
font .styleName : " Regular"
15
33
font .pixelSize : root .descriptionSize
16
- color: Theme . color . neutral8
34
+ color: root . textColor
17
35
text: description
18
36
horizontalAlignment: Text .AlignRight
19
37
wrapMode: Text .WordWrap
38
+
39
+ Behavior on color {
40
+ ColorAnimation { duration: 150 }
41
+ }
20
42
}
You can’t perform that action at this time.
0 commit comments