From df2eb795594a79dcbe93416b7573c48c1af00016 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 21 Feb 2022 00:53:28 -0500 Subject: [PATCH] navigationpanel: Make opaque when keyboard is open Addresses https://invent.kde.org/plasma/plasma-mobile/-/issues/163 --- .../package/contents/ui/NavigationPanelComponent.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml b/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml index 0bcebcf4..1db7be73 100644 --- a/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml +++ b/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml @@ -18,14 +18,14 @@ MobileShell.NavigationPanel { property bool appIsShown: !plasmoid.nativeInterface.allMinimized // background is: - // - opaque if an app is shown + // - opaque if an app is shown or vkbd is shown // - translucent if the task switcher is open // - transparent if on the homescreen backgroundColor: { if (root.taskSwitcher.visible) { return Qt.rgba(0, 0, 0, 0.1); } else { - return appIsShown ? PlasmaCore.ColorScope.backgroundColor : "transparent"; + return (MobileShell.KWinVirtualKeyboard.visible || appIsShown) ? PlasmaCore.ColorScope.backgroundColor : "transparent"; } } foregroundColorGroup: (!root.taskSwitcher.visible && appIsShown) ? PlasmaCore.Theme.NormalColorGroup : PlasmaCore.Theme.ComplementaryColorGroup