File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ ColumnLayout {
35
35
dbcacheSetting .forceActiveFocus ()
36
36
}
37
37
}
38
- onClicked: loadedItem .forceActiveFocus ()
38
+ onClicked: {
39
+ loadedItem .filled = true
40
+ loadedItem .forceActiveFocus ()
41
+ }
39
42
}
40
43
Separator { Layout .fillWidth : true }
41
44
Setting {
@@ -50,7 +53,10 @@ ColumnLayout {
50
53
parSetting .forceActiveFocus ()
51
54
}
52
55
}
53
- onClicked: loadedItem .forceActiveFocus ()
56
+ onClicked: {
57
+ loadedItem .filled = true
58
+ loadedItem .forceActiveFocus ()
59
+ }
54
60
}
55
61
Separator { Layout .fillWidth : true }
56
62
Setting {
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ ColumnLayout {
41
41
pruneTargetSetting .forceActiveFocus ()
42
42
}
43
43
}
44
- onClicked: loadedItem .forceActiveFocus ()
44
+ onClicked: {
45
+ loadedItem .filled = true
46
+ loadedItem .forceActiveFocus ()
47
+ }
45
48
}
46
49
}
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ TextInput {
9
9
id: root
10
10
required property string parentState
11
11
property string description: " "
12
+ property bool filled: false
12
13
property int descriptionSize: 18
13
- property color textColor: Theme .color .neutral9
14
+ property color textColor: root . filled ? Theme .color .neutral9 : Theme . color . neutral5
14
15
enabled: true
15
16
state: root .parentState
16
17
@@ -21,7 +22,10 @@ TextInput {
21
22
},
22
23
State {
23
24
name: " HOVER"
24
- PropertyChanges { target: root; textColor: Theme .color .orangeLight1 }
25
+ PropertyChanges {
26
+ target: root
27
+ textColor: root .filled ? Theme .color .orangeLight1 : Theme .color .neutral5
28
+ }
25
29
},
26
30
State {
27
31
name: " DISABLED"
You can’t perform that action at this time.
0 commit comments