Add background to room page

Similar to What's App, Telegram and Kaidan.
This commit is contained in:
Carl Schwan
2024-12-12 12:57:18 +01:00
parent fe09dc23a6
commit 4daff26747
4 changed files with 14 additions and 0 deletions

View File

@@ -163,6 +163,15 @@ Kirigami.Page {
Kirigami.Theme.colorSet: Kirigami.Theme.View
Kirigami.Theme.inherit: false
color: NeoChatConfig.compactLayout ? Kirigami.Theme.backgroundColor : "transparent"
Image {
visible: !NeoChatConfig.compactLayout && !NeoChatConfig.blur
source: "qrc:/qt/qml/org/kde/neochat/timeline/images/chat-page-background.svg"
anchors.fill: parent
fillMode: Image.Tile
horizontalAlignment: Image.AlignLeft
verticalAlignment: Image.AlignTop
}
}
footer: Loader {

View File

@@ -79,6 +79,7 @@ ecm_add_qml_module(timeline GENERATE_PLUGIN_SOURCE
images/transfer.svg
images/wait.svg
images/walk.svg
images/chat-page-background.svg
DEPENDENCIES
QtQuick
)

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2022 Raghavendra Kamath <raghu@raghukamath.com>
SPDX-License-Identifier: CC-BY-SA-4.0