Autoformatting + translations

This commit is contained in:
ItsLemmy
2025-11-20 21:38:00 -05:00
parent 63940703f8
commit 088431b20d
20 changed files with 201 additions and 218 deletions
+2 -9
View File
@@ -602,12 +602,7 @@ Loader {
}
// Calculate maximum width needed
property real maxTextWidth: Math.max(
logoutText.implicitWidth,
Math.max(suspendText.implicitWidth,
Math.max(hibernateText.implicitWidth,
Math.max(rebootText.implicitWidth,
shutdownText.implicitWidth))))
property real maxTextWidth: Math.max(logoutText.implicitWidth, Math.max(suspendText.implicitWidth, Math.max(hibernateText.implicitWidth, Math.max(rebootText.implicitWidth, shutdownText.implicitWidth))))
property real minButtonWidth: maxTextWidth + iconSize + spacing + padding
}
@@ -615,9 +610,7 @@ Loader {
// Button row needs: margins + 5 buttons + 4 spacings + margins
// Plus ColumnLayout margins (14 on each side = 28 total)
// Add extra buffer to ensure password input has proper padding
property real minButtonRowWidth: buttonRowTextMeasurer.minButtonWidth > 0
? (5 * buttonRowTextMeasurer.minButtonWidth) + 40 + (2 * Style.marginM) + 28 + (2 * Style.marginM)
: 750
property real minButtonRowWidth: buttonRowTextMeasurer.minButtonWidth > 0 ? (5 * buttonRowTextMeasurer.minButtonWidth) + 40 + (2 * Style.marginM) + 28 + (2 * Style.marginM) : 750
width: Math.max(750, minButtonRowWidth)
ColumnLayout {