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.
This commit is contained in:
Pascal Precht 2021-07-28 22:16:54 +02:00 committed by GitHub
parent 79200f066e
commit 556e5ccafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -172,5 +172,9 @@ ThemePalette {
property QtObject statusRoundedImage: QtObject { property QtObject statusRoundedImage: QtObject {
property color backgroundColor: baseColor3 property color backgroundColor: baseColor3
} }
property QtObject statusChatInput: QtObject {
property color secondaryBackgroundColor: "#414141"
}
} }

View File

@ -170,5 +170,9 @@ ThemePalette {
property QtObject statusRoundedImage: QtObject { property QtObject statusRoundedImage: QtObject {
property color backgroundColor: white property color backgroundColor: white
} }
property QtObject statusChatInput: QtObject {
property color secondaryBackgroundColor: "#E2E6E8"
}
} }

View File

@ -134,6 +134,10 @@ QtObject {
property color backgroundColor property color backgroundColor
} }
property QtObject statusChatInput: QtObject {
property color secondaryBackgroundColor
}
function alphaColor(color, alpha) { function alphaColor(color, alpha) {
let actualColor = Qt.darker(color, 1) let actualColor = Qt.darker(color, 1)
actualColor.a = alpha actualColor.a = alpha