1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Dock: Support ultrawide monitors and wide docks instead of hardcoded 1200px dock boundary (#502)

This commit is contained in:
Roni Laukkarinen
2025-10-19 21:14:31 +03:00
committed by GitHub
parent 64960e4dcd
commit 4ceb5f13e5

View File

@@ -252,8 +252,8 @@ Variants {
property real currentScreen: modelData ? modelData : dock.screen
property real screenWidth: currentScreen ? currentScreen.geometry.width : 1920
property real screenHeight: currentScreen ? currentScreen.geometry.height : 1080
property real maxDockWidth: Math.min(screenWidth * 0.8, 1200)
property real maxDockHeight: Math.min(screenHeight * 0.8, 1200)
property real maxDockWidth: screenWidth * 0.98
property real maxDockHeight: screenHeight * 0.98
height: {
if (dock.isVertical) {