1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

sizing changes

This commit is contained in:
bbedward
2025-07-22 23:35:48 -04:00
parent 54a7281fa3
commit 9c8c25711c
8 changed files with 56 additions and 70 deletions

View File

@@ -11,9 +11,13 @@ PanelWindow {
// Core properties
property alias content: contentLoader.sourceComponent
// Sizing
// Sizing - can use fixed or relative to screen
property real width: 400
property real height: 300
// Screen-relative sizing helpers
readonly property real screenWidth: parent ? parent.width : width
readonly property real screenHeight: parent ? parent.height : height
// Background behavior
property bool showBackground: true
@@ -71,6 +75,11 @@ PanelWindow {
if (root.visible) {
opened()
} else {
// Properly cleanup text input surfaces
if (Qt.inputMethod) {
Qt.inputMethod.hide()
Qt.inputMethod.reset()
}
dialogClosed()
}
}

View File

@@ -159,7 +159,6 @@ Rectangle {
cursorShape: Qt.PointingHandCursor
onClicked: {
textInput.text = "";
textInput.forceActiveFocus();
}
}