mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Hide task panel strut in convergence mode
The task panel window reserved bottom-edge screen space even with zero thickness and invisible content. Set its visibility mode to auto-hide in convergence and force the dock bottom margin to zero so the favourites bar sits flush at the screen edge.
This commit is contained in:
parent
d2cfa5497f
commit
db18022a9b
2 changed files with 5 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ Item {
|
|||
width: ShellSettings.Settings.convergenceModeEnabled ? Kirigami.Units.gridUnit * 3 : Kirigami.Units.gridUnit * 6
|
||||
|
||||
anchors.topMargin: root.topMargin
|
||||
anchors.bottomMargin: root.bottomMargin
|
||||
anchors.bottomMargin: ShellSettings.Settings.convergenceModeEnabled ? 0 : root.bottomMargin
|
||||
anchors.leftMargin: root.leftMargin
|
||||
anchors.rightMargin: root.rightMargin
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,10 @@ ContainmentItem {
|
|||
root.panel.offset = intendedWindowOffset;
|
||||
root.panel.thickness = navigationPanelHeight;
|
||||
root.panel.location = intendedWindowLocation;
|
||||
root.panel.visibilityMode = ShellSettings.Settings.autoHidePanelsEnabled ? 3 : 0;
|
||||
// In convergence mode the navigation panel is invisible (its functions
|
||||
// live in the dock), so auto-hide the panel window to avoid reserving
|
||||
// empty screen space at the bottom edge.
|
||||
root.panel.visibilityMode = (ShellSettings.Settings.autoHidePanelsEnabled || ShellSettings.Settings.convergenceModeEnabled) ? 3 : 0;
|
||||
MobileShell.ShellUtil.setWindowLayer(root.panel, LayerShell.Window.LayerOverlay);
|
||||
root.updateTouchArea();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue