Commit df2eb795 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

navigationpanel: Make opaque when keyboard is open

Addresses #163
parent 48899f6e
Pipeline #140434 passed with stages
in 1 minute and 10 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment