Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
feat(StatusQ.Theme.Core): introduce theme colors for StatusChatInput (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
0x-r4bbit committed Jul 28, 2021
1 parent 79200f0 commit 556e5cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/StatusQ/Core/Theme/StatusDarkTheme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,9 @@ ThemePalette {
property QtObject statusRoundedImage: QtObject {
property color backgroundColor: baseColor3
}

property QtObject statusChatInput: QtObject {
property color secondaryBackgroundColor: "#414141"
}
}

4 changes: 4 additions & 0 deletions src/StatusQ/Core/Theme/StatusLightTheme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,9 @@ ThemePalette {
property QtObject statusRoundedImage: QtObject {
property color backgroundColor: white
}

property QtObject statusChatInput: QtObject {
property color secondaryBackgroundColor: "#E2E6E8"
}
}

4 changes: 4 additions & 0 deletions src/StatusQ/Core/Theme/ThemePalette.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 556e5cc

Please sign in to comment.