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:
committed by
Tobias Fella
parent
ca57732871
commit
b2af69fd92
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user