mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
widget-settings: increased min dialog width, help with the battery settings.
This commit is contained in:
@@ -20,7 +20,7 @@ Popup {
|
||||
|
||||
readonly property real maxHeight: screen ? screen.height * 0.9 : 800
|
||||
|
||||
width: Math.max(content.implicitWidth + padding * 2, 500)
|
||||
width: Math.max(content.implicitWidth + padding * 2, 640)
|
||||
height: Math.min(content.implicitHeight + padding * 2, maxHeight)
|
||||
padding: Style.marginXL
|
||||
modal: true
|
||||
|
||||
@@ -61,7 +61,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.battery.device-label")
|
||||
description: I18n.tr("bar.battery.device-description")
|
||||
minimumWidth: 134
|
||||
minimumWidth: 200
|
||||
model: root.deviceModel
|
||||
currentKey: root.valueDeviceNativePath
|
||||
onSelected: key => {
|
||||
@@ -81,15 +81,17 @@ ColumnLayout {
|
||||
|
||||
NIconButton {
|
||||
icon: "refresh"
|
||||
// TODO i18n
|
||||
tooltipText: "Refresh device list"
|
||||
onClicked: deviceModel = BatteryService.getDeviceOptionsModel()
|
||||
}
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
minimumWidth: 240
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
|
||||
Reference in New Issue
Block a user