From 556e5ccafcdf3e398c4659aba6147e6901d1f9b3 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 28 Jul 2021 22:16:54 +0200 Subject: [PATCH] feat(StatusQ.Theme.Core): introduce theme colors for StatusChatInput (#299) There's some usage specific color being added to the chat input (which doesn't live in StatusQ yet). To make sure we don't lose that change, I'm adding the new colors to StatusQ theming system and have Status Desktop use it for the time being until `StatusChatInput` is moved to StatusQ anyways. --- src/StatusQ/Core/Theme/StatusDarkTheme.qml | 4 ++++ src/StatusQ/Core/Theme/StatusLightTheme.qml | 4 ++++ src/StatusQ/Core/Theme/ThemePalette.qml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/StatusQ/Core/Theme/StatusDarkTheme.qml b/src/StatusQ/Core/Theme/StatusDarkTheme.qml index 04a21688..15b9a3c4 100644 --- a/src/StatusQ/Core/Theme/StatusDarkTheme.qml +++ b/src/StatusQ/Core/Theme/StatusDarkTheme.qml @@ -172,5 +172,9 @@ ThemePalette { property QtObject statusRoundedImage: QtObject { property color backgroundColor: baseColor3 } + + property QtObject statusChatInput: QtObject { + property color secondaryBackgroundColor: "#414141" + } } diff --git a/src/StatusQ/Core/Theme/StatusLightTheme.qml b/src/StatusQ/Core/Theme/StatusLightTheme.qml index bdc2c18e..f1eb4464 100644 --- a/src/StatusQ/Core/Theme/StatusLightTheme.qml +++ b/src/StatusQ/Core/Theme/StatusLightTheme.qml @@ -170,5 +170,9 @@ ThemePalette { property QtObject statusRoundedImage: QtObject { property color backgroundColor: white } + + property QtObject statusChatInput: QtObject { + property color secondaryBackgroundColor: "#E2E6E8" + } } diff --git a/src/StatusQ/Core/Theme/ThemePalette.qml b/src/StatusQ/Core/Theme/ThemePalette.qml index 0516eb21..eea944a8 100644 --- a/src/StatusQ/Core/Theme/ThemePalette.qml +++ b/src/StatusQ/Core/Theme/ThemePalette.qml @@ -134,6 +134,10 @@ QtObject { property color backgroundColor } + property QtObject statusChatInput: QtObject { + property color secondaryBackgroundColor + } + function alphaColor(color, alpha) { let actualColor = Qt.darker(color, 1) actualColor.a = alpha