From e4072e4e08023364258aa9f8783ca99660d1d30a Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 15 Dec 2021 04:37:06 +0300 Subject: [PATCH] [applets/batterymonitor] PopupDialog: Replace Column with its Layout counterpart This isn't doing much useful so far, but the next step would be to inline the scroll+listview with custom margins below. --- .../package/contents/ui/PopupDialog.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/applets/batterymonitor/package/contents/ui/PopupDialog.qml b/applets/batterymonitor/package/contents/ui/PopupDialog.qml index a289c2532..4957f4908 100644 --- a/applets/batterymonitor/package/contents/ui/PopupDialog.qml +++ b/applets/batterymonitor/package/contents/ui/PopupDialog.qml @@ -54,7 +54,7 @@ PlasmaComponents3.Page { focus: true - Column { + ColumnLayout { id: settingsColumn anchors { left: parent.left @@ -67,7 +67,8 @@ PlasmaComponents3.Page { BrightnessItem { id: brightnessSlider - width: parent.width + + Layout.fillWidth: true icon: "video-display-brightness" label: i18n("Display Brightness") @@ -91,7 +92,8 @@ PlasmaComponents3.Page { BrightnessItem { id: keyboardBrightnessSlider - width: parent.width + + Layout.fillWidth: true icon: "input-keyboard-brightness" label: i18n("Keyboard Brightness") @@ -114,7 +116,8 @@ PlasmaComponents3.Page { } PowerProfileItem { - width: parent.width + Layout.fillWidth: true + activeProfile: dialog.activeProfile inhibitionReason: dialog.inhibitionReason visible: dialog.profiles.length > 0