mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Port to use the new org.kde.kwin.VirtualKeyboard.visible property
Makes it possible to properly display the keyboard state when the keyboard is hidden but still active.
This commit is contained in:
parent
a97fe3bc02
commit
441936186a
2 changed files with 4 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ PlasmaCore.ColorScope {
|
|||
height: parent.height
|
||||
width: parent.width*0.8/3
|
||||
mouseArea: mainMouseArea
|
||||
enabled: TaskPanel.KWinVirtualKeyboard.active || (plasmoid.nativeInterface.hasCloseableActiveWindow && !taskSwitcher.visible)
|
||||
enabled: TaskPanel.KWinVirtualKeyboard.visible || (plasmoid.nativeInterface.hasCloseableActiveWindow && !taskSwitcher.visible)
|
||||
onClicked: {
|
||||
if (!enabled) {
|
||||
return
|
||||
|
|
@ -259,8 +259,8 @@ PlasmaCore.ColorScope {
|
|||
}
|
||||
|
||||
// mobile-close-app (from plasma-frameworks) seems to have less margins than icons from breeze-icons
|
||||
iconSizeFactor: TaskPanel.KWinVirtualKeyboard.active ? 1 : 0.75
|
||||
iconSource: TaskPanel.KWinVirtualKeyboard.active ? "go-down-symbolic" : "mobile-close-app"
|
||||
iconSizeFactor: TaskPanel.KWinVirtualKeyboard.visible ? 1 : 0.75
|
||||
iconSource: TaskPanel.KWinVirtualKeyboard.visible ? "go-down-symbolic" : "mobile-close-app"
|
||||
colorGroup: root.showingApp ? PlasmaCore.Theme.NormalColorGroup : PlasmaCore.Theme.ComplementaryColorGroup
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class KwinVirtualKeyboardInterface : public OrgKdeKwinVirtualKeyboardInterface
|
|||
Q_OBJECT
|
||||
Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
|
||||
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
|
||||
Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged)
|
||||
public:
|
||||
KwinVirtualKeyboardInterface()
|
||||
: OrgKdeKwinVirtualKeyboardInterface(QStringLiteral("org.kde.KWin"), QStringLiteral("/VirtualKeyboard"), QDBusConnection::sessionBus())
|
||||
|
|
|
|||
Loading…
Reference in a new issue