Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/qml/components/DeveloperOptions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ ColumnLayout {
dbcacheSetting.forceActiveFocus()
}
}
onClicked: loadedItem.forceActiveFocus()
onClicked: {
loadedItem.filled = true
loadedItem.forceActiveFocus()
}
}
Separator { Layout.fillWidth: true }
Setting {
Expand All @@ -50,7 +53,10 @@ ColumnLayout {
parSetting.forceActiveFocus()
}
}
onClicked: loadedItem.forceActiveFocus()
onClicked: {
loadedItem.filled = true
loadedItem.forceActiveFocus()
}
}
Separator { Layout.fillWidth: true }
Setting {
Expand Down
5 changes: 4 additions & 1 deletion src/qml/components/StorageSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ ColumnLayout {
pruneTargetSetting.forceActiveFocus()
}
}
onClicked: loadedItem.forceActiveFocus()
onClicked: {
loadedItem.filled = true
loadedItem.forceActiveFocus()
}
}
}
8 changes: 6 additions & 2 deletions src/qml/controls/ValueInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ TextInput {
id: root
required property string parentState
property string description: ""
property bool filled: false
property int descriptionSize: 18
property color textColor: Theme.color.neutral9
property color textColor: root.filled ? Theme.color.neutral9 : Theme.color.neutral5
enabled: true
state: root.parentState

Expand All @@ -21,7 +22,10 @@ TextInput {
},
State {
name: "HOVER"
PropertyChanges { target: root; textColor: Theme.color.orangeLight1 }
PropertyChanges {
target: root
textColor: root.filled ? Theme.color.orangeLight1 : Theme.color.neutral5
}
},
State {
name: "DISABLED"
Expand Down