mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
navigationpanel: Make opaque when keyboard is open
Addresses https://invent.kde.org/plasma/plasma-mobile/-/issues/163
This commit is contained in:
parent
48899f6e97
commit
df2eb79559
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue