From 9a4317739bf1d8e3cc214c55c3e57e74e3ee2608 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Mon, 1 Sep 2025 15:16:28 -0400 Subject: [PATCH] SettingsPanel: better var naming --- Modules/SettingsPanel/SettingsPanel.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Modules/SettingsPanel/SettingsPanel.qml b/Modules/SettingsPanel/SettingsPanel.qml index b78c68f..9a9242f 100644 --- a/Modules/SettingsPanel/SettingsPanel.qml +++ b/Modules/SettingsPanel/SettingsPanel.qml @@ -12,14 +12,14 @@ NPanel { id: root panelWidth: { - var width = Math.round(Math.max(screen?.width * 0.4, 1000) * scaling) - width = Math.min(width, screen?.width - Style.marginL * 2) - return width + var w = Math.round(Math.max(screen?.width * 0.4, 1000) * scaling) + w = Math.min(w, screen?.width - Style.marginL * 2) + return w } panelHeight: { - var height = Math.round(Math.max(screen?.height * 0.75, 800) * scaling) - height = Math.min(height, screen?.height - Style.barHeight * scaling - Style.marginL * 2) - return height + var h = Math.round(Math.max(screen?.height * 0.75, 800) * scaling) + h = Math.min(h, screen?.height - Style.barHeight * scaling - Style.marginL * 2) + return h } panelAnchorHorizontalCenter: true panelAnchorVerticalCenter: true