mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskpanel: Fix close vkbd button not showing
The "active" property of the KWin vkbd interface seems to be working, while "visible" no longer does. Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/310
This commit is contained in:
parent
3ebd3eb894
commit
154f3af336
1 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ MobileShell.NavigationPanel {
|
|||
// - opaque if an app is shown or vkbd is shown
|
||||
// - translucent if the task switcher is open
|
||||
// - transparent if on the homescreen
|
||||
backgroundColor: (Keyboards.KWinVirtualKeyboard.visible || opaqueBar) ? Kirigami.Theme.backgroundColor : "transparent";
|
||||
backgroundColor: (Keyboards.KWinVirtualKeyboard.active || opaqueBar) ? Kirigami.Theme.backgroundColor : "transparent";
|
||||
foregroundColorGroup: opaqueBar ? Kirigami.Theme.Window : Kirigami.Theme.Complementary
|
||||
shadow: !opaqueBar
|
||||
|
||||
|
|
@ -84,10 +84,10 @@ MobileShell.NavigationPanel {
|
|||
rightAction: MobileShell.NavigationPanelAction {
|
||||
id: closeAppAction
|
||||
|
||||
enabled: Keyboards.KWinVirtualKeyboard.visible || WindowPlugin.WindowUtil.hasCloseableActiveWindow
|
||||
iconSource: Keyboards.KWinVirtualKeyboard.visible ? "go-down-symbolic" : "mobile-close-app"
|
||||
enabled: Keyboards.KWinVirtualKeyboard.active || WindowPlugin.WindowUtil.hasCloseableActiveWindow
|
||||
iconSource: Keyboards.KWinVirtualKeyboard.active ? "go-down-symbolic" : "mobile-close-app"
|
||||
// mobile-close-app (from plasma-frameworks) seems to have less margins than icons from breeze-icons
|
||||
iconSizeFactor: Keyboards.KWinVirtualKeyboard.visible ? 1 : 0.75
|
||||
iconSizeFactor: Keyboards.KWinVirtualKeyboard.active ? 1 : 0.75
|
||||
|
||||
onTriggered: {
|
||||
if (Keyboards.KWinVirtualKeyboard.active) {
|
||||
|
|
@ -112,7 +112,7 @@ MobileShell.NavigationPanel {
|
|||
iconSizeFactor: 0.75
|
||||
|
||||
onTriggered: {
|
||||
if (Keyboards.KWinVirtualKeyboard.visible) {
|
||||
if (Keyboards.KWinVirtualKeyboard.active) {
|
||||
Keyboards.KWinVirtualKeyboard.active = false;
|
||||
} else {
|
||||
Keyboards.KWinVirtualKeyboard.forceActivate();
|
||||
|
|
|
|||
Loading…
Reference in a new issue