fix(StatusChatInput): improve code highlighting in code snippet/blocks

- make the bg/fg color follow our current Style/Theme colors

Fixes: #8649
This commit is contained in:
Lukáš Tinkl 2023-01-09 20:13:19 +01:00 committed by Lukáš Tinkl
parent 9e396f7344
commit 6f1ecb9c8c
4 changed files with 5 additions and 3 deletions

View File

@ -68,7 +68,7 @@ Theme {
property color backgroundTertiary: tenPercentBlue property color backgroundTertiary: tenPercentBlue
property color pillButtonTextColor: secondaryText property color pillButtonTextColor: secondaryText
property color chatReplyCurrentUser: lightGrey property color chatReplyCurrentUser: lightGrey
property color codeBackground: "#EEF2F5" property color codeBackground: graphite2
property color primarySelectionColor: "#b4c8ff" property color primarySelectionColor: "#b4c8ff"
property color emojiReactionBackground: "#2d2823" property color emojiReactionBackground: "#2d2823"
property color emojiReactionBackgroundHovered: "#3a3632" property color emojiReactionBackgroundHovered: "#3a3632"

View File

@ -68,7 +68,7 @@ Theme {
property color backgroundTertiary: tenPercentBlue property color backgroundTertiary: tenPercentBlue
property color pillButtonTextColor: white property color pillButtonTextColor: white
property color chatReplyCurrentUser: darkGrey property color chatReplyCurrentUser: darkGrey
property color codeBackground: "#EEF2F5" property color codeBackground: grey2
property color primarySelectionColor: "#b4c8ff" property color primarySelectionColor: "#b4c8ff"
property color emojiReactionBackground: "#e2e6e9" property color emojiReactionBackground: "#e2e6e9"
property color emojiReactionBackgroundHovered: "#d7dadd" property color emojiReactionBackgroundHovered: "#d7dadd"

View File

@ -1356,6 +1356,8 @@ Rectangle {
StatusSyntaxHighlighter { StatusSyntaxHighlighter {
quickTextDocument: messageInputField.textDocument quickTextDocument: messageInputField.textDocument
codeBackgroundColor: Style.current.codeBackground
codeForegroundColor: Style.current.textColor
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent

2
vendor/DOtherSide vendored

@ -1 +1 @@
Subproject commit d1926ff252c7645b04cfff014d6a6c80313d8628 Subproject commit 742a139b07338f23390b5d6ee84924424bbc8974