mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-07 19:59:14 -04:00
refactor: update KeybindsModal dynamic sizing
This commit is contained in:
@@ -14,8 +14,8 @@ DankModal {
|
|||||||
useOverlayLayer: true
|
useOverlayLayer: true
|
||||||
property real scrollStep: 60
|
property real scrollStep: 60
|
||||||
property var activeFlickable: null
|
property var activeFlickable: null
|
||||||
property real _maxW: Math.min(Screen.width * 0.92, 1200)
|
property real _maxW: Math.min(root.screenWidth * 0.92, 1200)
|
||||||
property real _maxH: Math.min(Screen.height * 0.92, 900)
|
property real _maxH: Math.min(root.screenHeight * 0.92, 900)
|
||||||
modalWidth: _maxW
|
modalWidth: _maxW
|
||||||
modalHeight: _maxH
|
modalHeight: _maxH
|
||||||
onBackgroundClicked: close()
|
onBackgroundClicked: close()
|
||||||
|
|||||||
Reference in New Issue
Block a user