Skip to content
Snippets Groups Projects
Unverified Commit e70afddc authored by Integral's avatar Integral
Browse files

Fix row spacing in the command completer

Currently no row spacing exists in the command completer. Add row spacing
to make it prettier.
parent 3cd45b65
No related branches found
No related tags found
No related merge requests found
Pipeline #6052 failed
...@@ -103,7 +103,7 @@ Control { ...@@ -103,7 +103,7 @@ Control {
// on each side of a row, 1px of padding above the first item and below the last item, and nominally // on each side of a row, 1px of padding above the first item and below the last item, and nominally
// some kind of content height. avatarHeight is used for just about every delegate, so we're using // some kind of content height. avatarHeight is used for just about every delegate, so we're using
// that until we find something better. Put is all together and you have the formula below! // that until we find something better. Put is all together and you have the formula below!
implicitHeight: Math.min(contentHeight, 6 * rowSpacing + 7 * (popup.avatarHeight + 2 * rowMargin)) implicitHeight: Math.min(contentHeight, 6 * Nheko.paddingSmall + 7 * (popup.avatarHeight + 2 * rowMargin))
// Broken, see https://bugreports.qt.io/browse/QTBUG-102811 // Broken, see https://bugreports.qt.io/browse/QTBUG-102811
//reuseItems: true //reuseItems: true
...@@ -153,7 +153,7 @@ Control { ...@@ -153,7 +153,7 @@ Control {
RowLayout { RowLayout {
anchors.centerIn: centerRowContent ? parent : undefined anchors.centerIn: centerRowContent ? parent : undefined
spacing: rowSpacing spacing: Nheko.paddingSmall
Avatar { Avatar {
displayName: model.displayName displayName: model.displayName
...@@ -178,7 +178,7 @@ Control { ...@@ -178,7 +178,7 @@ Control {
RowLayout { RowLayout {
anchors.centerIn: parent anchors.centerIn: parent
spacing: rowSpacing spacing: Nheko.paddingSmall
Label { Label {
color: model.index == popup.currentIndex ? palette.highlightedText : palette.text color: model.index == popup.currentIndex ? palette.highlightedText : palette.text
...@@ -213,7 +213,7 @@ Control { ...@@ -213,7 +213,7 @@ Control {
RowLayout { RowLayout {
anchors.centerIn: parent anchors.centerIn: parent
spacing: rowSpacing spacing: Nheko.paddingSmall
Label { Label {
color: model.index == popup.currentIndex ? palette.highlightedText : palette.text color: model.index == popup.currentIndex ? palette.highlightedText : palette.text
...@@ -231,7 +231,7 @@ Control { ...@@ -231,7 +231,7 @@ Control {
RowLayout { RowLayout {
anchors.centerIn: centerRowContent ? parent : undefined anchors.centerIn: centerRowContent ? parent : undefined
spacing: rowSpacing spacing: Nheko.paddingSmall
Avatar { Avatar {
displayName: model.roomName displayName: model.roomName
...@@ -256,7 +256,7 @@ Control { ...@@ -256,7 +256,7 @@ Control {
RowLayout { RowLayout {
anchors.centerIn: parent anchors.centerIn: parent
spacing: rowSpacing spacing: Nheko.paddingSmall
Avatar { Avatar {
displayName: model.roomName displayName: model.roomName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment