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:
parent
850e925ae7
commit
9ac4cd0a97
|
@ -25,8 +25,8 @@ and this project adheres to
|
||||||
have this event as their last seen one in the room.
|
have this event as their last seen one in the room.
|
||||||
A way to see who read the message and when will be added in the future.
|
A way to see who read the message and when will be added in the future.
|
||||||
|
|
||||||
- Themes: add a `chat.message.serverState` property, controls the color of
|
- Themes: add `chat.message.localEcho` and `chat.message.readCounter` color
|
||||||
the local echo hourglass and read marker indicator.
|
properties
|
||||||
|
|
||||||
- Add a `zoom` setting, defaults to `1.0`
|
- Add a `zoom` setting, defaults to `1.0`
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,14 @@ HRowLayout {
|
||||||
readonly property string timeText: utils.formatTime(model.date, false)
|
readonly property string timeText: utils.formatTime(model.date, false)
|
||||||
|
|
||||||
readonly property string stateText:
|
readonly property string stateText:
|
||||||
`<font size=${theme.fontSize.small}px ` +
|
`<font size=${theme.fontSize.small}px color=` + (
|
||||||
`color=${theme.chat.message.serverState}>` + (
|
model.is_local_echo ?
|
||||||
model.is_local_echo ? ` ⏳` :
|
`${theme.chat.message.localEcho}> ⧗</font>` : // U+29D7
|
||||||
model.read_by_count ? ` ⦿ ${model.read_by_count}` :
|
|
||||||
|
model.read_by_count ?
|
||||||
|
`${theme.chat.message.readCounter}> ⦿ ` +
|
||||||
|
model.read_by_count : // U+29BF
|
||||||
|
|
||||||
""
|
""
|
||||||
) + "</font>"
|
) + "</font>"
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,8 @@ chat:
|
||||||
|
|
||||||
color body: colors.text
|
color body: colors.text
|
||||||
color date: colors.dimText
|
color date: colors.dimText
|
||||||
color serverState: colors.accentText
|
color localEcho: colors.dimText
|
||||||
|
color readCounter: colors.accentText
|
||||||
|
|
||||||
color redactedBody: colors.dimText
|
color redactedBody: colors.dimText
|
||||||
|
|
||||||
|
|
|
@ -424,7 +424,8 @@ chat:
|
||||||
|
|
||||||
color body: colors.text
|
color body: colors.text
|
||||||
color date: colors.dimText
|
color date: colors.dimText
|
||||||
color serverState: colors.accentText
|
color localEcho: colors.dimText
|
||||||
|
color readCounter: colors.accentText
|
||||||
|
|
||||||
color redactedBody: colors.dimText
|
color redactedBody: colors.dimText
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user