From e78dfaec3450c98d3a51ad9046d0e4675f9b17f8 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 10 Sep 2023 23:12:25 +0200 Subject: [PATCH] Use view background color for SpaceDrawer --- src/qml/Page/RoomList/Page.qml | 7 ++++++- src/qml/Page/RoomList/SpaceDrawer.qml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/qml/Page/RoomList/Page.qml b/src/qml/Page/RoomList/Page.qml index dbf4d190f..44159d3c4 100644 --- a/src/qml/Page/RoomList/Page.qml +++ b/src/qml/Page/RoomList/Page.qml @@ -96,7 +96,7 @@ Kirigami.Page { RowLayout { anchors.fill: parent - spacing: 1 + spacing: 0 NeoChat.SpaceDrawer { id: spaceDrawer @@ -104,6 +104,11 @@ Kirigami.Page { Layout.fillHeight: true } + Kirigami.Separator { + Layout.fillHeight: true + Layout.preferredWidth: 1 + } + QQC2.ScrollView { id: scrollView Layout.fillWidth: true diff --git a/src/qml/Page/RoomList/SpaceDrawer.qml b/src/qml/Page/RoomList/SpaceDrawer.qml index da410abeb..fc624a976 100644 --- a/src/qml/Page/RoomList/SpaceDrawer.qml +++ b/src/qml/Page/RoomList/SpaceDrawer.qml @@ -41,6 +41,11 @@ QQC2.Control { QQC2.ScrollBar.horizontal.policy: QQC2.ScrollBar.AlwaysOff contentWidth: -1 // disable horizontal scroll + background: Rectangle { + color: Kirigami.Theme.backgroundColor + Kirigami.Theme.colorSet: Kirigami.Theme.View + } + ColumnLayout { id: column width: scrollView.width