add squeekboard toggle button

This commit is contained in:
2026-08-02 12:16:23 +02:00
parent 18c00d40b4
commit 9eca88992e
8 changed files with 394 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
import QtQuick
import qs.config
import qs.components
import qs.services
// Right section: the on-screen keyboard button. No menu behind it — a click
// shows squeekboard, another hides it.
Item {
id: root
// Machines with no squeekboard unit get no button at all.
visible: Osk.available
implicitWidth: button.implicitWidth
PanelButton {
id: button
anchors.verticalCenter: parent.verticalCenter
height: root.height - Theme.spacing
minContentWidth: Theme.iconSize
active: Osk.shown
activeColor: Theme.accent
onClicked: Osk.toggle()
KeyboardGlyph {
size: Theme.iconSize
color: button.active ? Theme.background : Theme.text
}
}
}