Separate localEcho & readCounter theme properties

Allows making the hourglass gray by default again, while the read
counter uses the accent color.
This commit is contained in:
miruka
2020-09-16 06:40:21 -04:00
parent 850e925ae7
commit 9ac4cd0a97
4 changed files with 14 additions and 8 deletions

View File

@@ -36,10 +36,14 @@ HRowLayout {
readonly property string timeText: utils.formatTime(model.date, false)
readonly property string stateText:
`<font size=${theme.fontSize.small}px ` +
`color=${theme.chat.message.serverState}>` + (
model.is_local_echo ? `&nbsp;` :
model.read_by_count ? `&nbsp;⦿&nbsp;${model.read_by_count}` :
`<font size=${theme.fontSize.small}px color=` + (
model.is_local_echo ?
`${theme.chat.message.localEcho}>&nbsp;</font>` : // U+29D7
model.read_by_count ?
`${theme.chat.message.readCounter}>&nbsp;⦿&nbsp;` +
model.read_by_count : // U+29BF
""
) + "</font>"