1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

notepad: fix unsave changed dialog height

This commit is contained in:
bbedward
2026-01-21 16:01:59 -05:00
parent 39a9e3a89f
commit 3b1f084a13
2 changed files with 38 additions and 37 deletions

View File

@@ -692,6 +692,7 @@ Item {
data: item,
pluginId: pluginId,
isBuiltInLauncher: true,
keywords: item.keywords || [],
actions: [],
primaryAction: {
name: I18n.tr("Open"),
@@ -1198,6 +1199,7 @@ Item {
section: "plugin_" + pluginId,
data: item,
pluginId: pluginId,
keywords: item.keywords || [],
actions: item.actions || [],
primaryAction: item.primaryAction || {
name: I18n.tr("Select"),

View File

@@ -200,7 +200,7 @@ Item {
}
onPreviewRequested: {
textEditor.togglePreview()
textEditor.togglePreview();
}
onEscapePressed: {
@@ -362,8 +362,8 @@ Item {
DankModal {
id: confirmationDialog
width: 400
height: 180
modalWidth: 400
modalHeight: contentLoader.item ? contentLoader.item.implicitHeight + Theme.spacingM * 2 : 180
shouldBeVisible: false
allowStacking: true
@@ -376,6 +376,7 @@ Item {
FocusScope {
anchors.fill: parent
focus: true
implicitHeight: contentColumn.implicitHeight
Keys.onEscapePressed: event => {
confirmationDialog.close();
@@ -384,17 +385,13 @@ Item {
}
Column {
anchors.centerIn: parent
width: parent.width - Theme.spacingM * 2
id: contentColumn
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: Theme.spacingM
spacing: Theme.spacingM
Row {
width: parent.width
Column {
width: parent.width - 40
spacing: Theme.spacingXS
StyledText {
text: I18n.tr("Unsaved Changes")
font.pixelSize: Theme.fontSizeLarge
@@ -409,22 +406,10 @@ Item {
width: parent.width
wrapMode: Text.Wrap
}
}
DankActionButton {
iconName: "close"
iconSize: Theme.iconSize - 4
iconColor: Theme.surfaceText
onClicked: {
confirmationDialog.close();
root.confirmationDialogOpen = false;
}
}
}
Item {
width: parent.width
height: 40
height: 36
Row {
anchors.right: parent.right
@@ -515,6 +500,20 @@ Item {
}
}
}
DankActionButton {
anchors.top: parent.top
anchors.right: parent.right
anchors.topMargin: Theme.spacingM
anchors.rightMargin: Theme.spacingM
iconName: "close"
iconSize: Theme.iconSize - 4
iconColor: Theme.surfaceText
onClicked: {
confirmationDialog.close();
root.confirmationDialogOpen = false;
}
}
}
}
}