mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
Dock: Support ultrawide monitors and wide docks instead of hardcoded 1200px dock boundary (#502)
This commit is contained in:
@@ -252,8 +252,8 @@ Variants {
|
|||||||
property real currentScreen: modelData ? modelData : dock.screen
|
property real currentScreen: modelData ? modelData : dock.screen
|
||||||
property real screenWidth: currentScreen ? currentScreen.geometry.width : 1920
|
property real screenWidth: currentScreen ? currentScreen.geometry.width : 1920
|
||||||
property real screenHeight: currentScreen ? currentScreen.geometry.height : 1080
|
property real screenHeight: currentScreen ? currentScreen.geometry.height : 1080
|
||||||
property real maxDockWidth: Math.min(screenWidth * 0.8, 1200)
|
property real maxDockWidth: screenWidth * 0.98
|
||||||
property real maxDockHeight: Math.min(screenHeight * 0.8, 1200)
|
property real maxDockHeight: screenHeight * 0.98
|
||||||
|
|
||||||
height: {
|
height: {
|
||||||
if (dock.isVertical) {
|
if (dock.isVertical) {
|
||||||
|
|||||||
Reference in New Issue
Block a user