update styledbutton to extend button
This commit is contained in:
parent
160cd3c1d5
commit
c983cf206b
12 changed files with 74 additions and 134 deletions
|
|
@ -80,11 +80,9 @@ StyledLabel {
|
|||
|
||||
StyledButton {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
color: containsMouse ? Theme.palette.error : Theme.palette.base200
|
||||
content: StyledText {
|
||||
text: 'Disconnect'
|
||||
font.pixelSize: 12
|
||||
}
|
||||
text: 'Disconnect'
|
||||
palette.button: hovered ? Theme.palette.error : Theme.palette.base200
|
||||
|
||||
onClicked: {
|
||||
if (root.modelData.state != BluetoothDeviceState.Connected) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue