use system theme for keypad

related: #52
This commit is contained in:
Han Young 2020-11-20 20:21:40 +08:00 committed by Devin Lin
parent 6f2742d2ac
commit 7dbb9fd46a

View file

@ -217,16 +217,16 @@ Rectangle {
width: parent.width width: parent.width
height: parent.height height: parent.height
radius: 5 radius: 5
color: "white" color: PlasmaCore.Theme.buttonBackgroundColor
visible: modelData.length > 0 visible: modelData.length > 0
AbstractButton { AbstractButton {
anchors.fill: parent anchors.fill: parent
onPressedChanged: { onPressedChanged: {
if(pressed) if(pressed)
parent.color = "#e0e0e0" parent.color = PlasmaCore.Theme.buttonFocusColor
else else
parent.color = "white" parent.color = PlasmaCore.Theme.buttonBackgroundColor
} }
onClicked: { onClicked: {
@ -262,7 +262,7 @@ Rectangle {
text: modelData text: modelData
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 18 font.pointSize: 18
color: "#424242" color: PlasmaCore.Theme.textColor
} }
PlasmaCore.IconItem { PlasmaCore.IconItem {