added colorpicker
This commit is contained in:
@@ -6,6 +6,17 @@ import "../components"
|
||||
Item {
|
||||
id: page
|
||||
|
||||
function syncColors() {
|
||||
labelPicker.hex = settingsContainer.labelColor
|
||||
}
|
||||
|
||||
Component.onCompleted: syncColors()
|
||||
|
||||
Connections {
|
||||
target: settingsContainer
|
||||
function onChanged() { page.syncColors() }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#161628"
|
||||
@@ -65,6 +76,12 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
ColorPickerField {
|
||||
id: labelPicker
|
||||
label: "Цвет подписей:"
|
||||
onColorChanged: btnController.setLayoutLabelColor(hex)
|
||||
}
|
||||
|
||||
Item { Layout.fillHeight: true }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user