Make the settings window a little bit taller to accommodate most pages

According to the HIG, scrolling should be kept to a minimum on settings
dialogs. The default window size for the dialog is too small on desktop,
and usually needs to be resized to prevent scrolling.
This commit is contained in:
Joshua Goins
2024-01-20 14:34:18 -05:00
committed by Tobias Fella
parent ca57732871
commit b2af69fd92
4 changed files with 15 additions and 5 deletions

View File

@@ -33,7 +33,9 @@ QQC2.Menu {
defaultPage: "notifications",
connection: root.connection
}, {
title: i18n("Configure")
title: i18n("Configure"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
})
}
QQC2.MenuItem {
@@ -43,7 +45,9 @@ QQC2.Menu {
defaultPage: "devices",
connection: root.connection
}, {
title: i18n("Configure")
title: i18n("Configure"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
})
}
QQC2.MenuItem {

View File

@@ -31,7 +31,9 @@ Labs.MenuBar {
onTriggered: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/SettingsPage.qml", {
connection: root.connection
}, {
title: i18n("Configure")
title: i18n("Configure"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
})
}
Labs.MenuItem {

View File

@@ -123,7 +123,9 @@ RowLayout {
onClicked: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/SettingsPage.qml", {
connection: root.connection
}, {
title: i18n("Configure")
title: i18n("Configure"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
})
text: i18n("Open Settings")
display: QQC2.AbstractButton.IconOnly

View File

@@ -442,7 +442,9 @@ Kirigami.ApplicationWindow {
pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/SettingsPage.qml", {
connection: root.connection
}, {
title: i18n("Configure")
title: i18n("Configure"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
});
}
}