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

fix sizing of dialogs, re-add ipcs

This commit is contained in:
bbedward
2025-07-22 23:00:09 -04:00
parent 7232d66b5d
commit 54a7281fa3
9 changed files with 64 additions and 74 deletions

View File

@@ -1,5 +1,6 @@
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Io
import qs.Common
import qs.Widgets
@@ -113,7 +114,8 @@ DankModal {
// DankModal configuration
visible: isVisible
size: "large"
width: 600
height: 500
keyboardFocus: "ondemand"
onVisibleChanged: {
@@ -312,7 +314,8 @@ DankModal {
DankModal {
id: clearConfirmDialog
visible: showClearConfirmation
size: "small"
width: 350
height: 180
keyboardFocus: "ondemand"
onBackgroundClicked: {
@@ -473,4 +476,23 @@ DankModal {
id: cleanupProcess
running: false
}
IpcHandler {
function open() {
console.log("ClipboardHistory: IPC open() called");
clipboardHistory.show();
return "CLIPBOARD_OPEN_SUCCESS";
}
function close() {
console.log("ClipboardHistory: IPC close() called");
clipboardHistory.hide();
return "CLIPBOARD_CLOSE_SUCCESS";
}
function toggle() {
console.log("ClipboardHistory: IPC toggle() called");
clipboardHistory.toggle();
return "CLIPBOARD_TOGGLE_SUCCESS";
}
target: "clipboard"
}
}

View File

@@ -36,7 +36,8 @@ DankModal {
}
visible: dialogVisible
size: "medium"
width: 400
height: 250
keyboardFocus: "exclusive"
onVisibleChanged: {

View File

@@ -37,7 +37,8 @@ DankModal {
// DankModal configuration
visible: powerConfirmVisible
size: "small"
width: 350
height: 200
keyboardFocus: "ondemand"
enableShadow: false
onBackgroundClicked: {

View File

@@ -21,7 +21,8 @@ DankModal {
// DankModal configuration
visible: settingsVisible
size: "extra-large"
width: 700
height: 600
keyboardFocus: "ondemand"
enableShadow: true

View File

@@ -200,23 +200,8 @@ DankModal {
// DankModal configuration
visible: spotlightOpen
size: "custom"
customWidth: 600
customHeight: {
// Fixed height to prevent shrinking - consistent experience
let baseHeight = Theme.spacingXL * 2 + Theme.spacingL * 3;
// Add category section height if visible
if (categories.length > 1 || filteredModel.count > 0)
baseHeight += 36 * 2 + Theme.spacingS + Theme.spacingM;
// Add search field height
baseHeight += 56;
// Add fixed results height for consistent size
let fixedResultsHeight = 400;
// Always same height regardless of content
baseHeight += fixedResultsHeight;
// Ensure reasonable bounds
return Math.min(Math.max(baseHeight, 500), 800);
}
width: 600
height: 500
keyboardFocus: "exclusive"
backgroundColor: Theme.popupBackground()
cornerRadius: Theme.cornerRadiusXLarge

View File

@@ -18,8 +18,8 @@ Rectangle {
SystemLogo {
visible: Prefs.useOSLogo
anchors.centerIn: parent
width: Theme.iconSize - 6
height: Theme.iconSize - 6
width: Theme.iconSize - 3
height: Theme.iconSize - 3
color: Theme.surfaceText
}

View File

@@ -12,7 +12,8 @@ DankModal {
property string wifiPasswordInput: ""
visible: wifiPasswordDialogVisible
size: "medium"
width: 450
height: 280
keyboardFocus: "exclusive"
onVisibleChanged: {
@@ -27,17 +28,20 @@ DankModal {
}
content: Component {
Column {
Item {
anchors.fill: parent
anchors.margins: Theme.spacingL
spacing: Theme.spacingL
Component.onCompleted: {
Qt.callLater(function() {
passwordInput.forceActiveFocus();
});
}
Column {
anchors.centerIn: parent
width: parent.width - Theme.spacingL * 2
spacing: Theme.spacingL
// Header
Row {
width: parent.width
@@ -225,6 +229,7 @@ DankModal {
}
}
}
}
}
}