From 9b31cebd4bab3312885bca56ea99e794ba4e1033 Mon Sep 17 00:00:00 2001 From: dsc Date: Mon, 6 Dec 2021 13:57:19 +0100 Subject: [PATCH] bla --- src/qml/chat/whatsthat/whatsthat.qml | 3 +++ src/qml/components/ChatRoot.qml | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/qml/chat/whatsthat/whatsthat.qml b/src/qml/chat/whatsthat/whatsthat.qml index e996315..fda7908 100644 --- a/src/qml/chat/whatsthat/whatsthat.qml +++ b/src/qml/chat/whatsthat/whatsthat.qml @@ -13,6 +13,9 @@ Components.ChatRoot { property int itemHeightDefault: 68 property int itemHeightSmall: 32 + historyPopupBackgroundColor: "#262d31" + historyPopupTextColor: "white" + Image { // background source: "qrc:/whatsthat/bg.png" diff --git a/src/qml/components/ChatRoot.qml b/src/qml/components/ChatRoot.qml index 5e63c5c..89ea9a0 100644 --- a/src/qml/components/ChatRoot.qml +++ b/src/qml/components/ChatRoot.qml @@ -11,7 +11,7 @@ Rectangle { property var chatList property string historyPopupBackgroundColor: "#b2b2b2" - property string historyPopupTextColor: "black" + property string historyPopupTextColor: "#393939" signal scrollToBottom() signal fetchHistory() @@ -36,12 +36,13 @@ Rectangle { anchors.top: parent.top anchors.topMargin: 20 - width: parent.width / 2 + width: parent.width / 3 height: 32 - color: "grey" + color: chatRoot.historyPopupBackgroundColor radius: 6 Text { + color: chatRoot.historyPopupTextColor font.pointSize: 16 text: !chatModel.exhausted ? "Load history" : "No more history" anchors.horizontalCenter: parent.horizontalCenter