update styledbutton to extend button

This commit is contained in:
Benjamin Palko 2025-08-29 17:22:04 -04:00
parent 160cd3c1d5
commit c983cf206b
12 changed files with 74 additions and 134 deletions

View file

@ -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;