Add message echo/read counter color theme property
This commit is contained in:
parent
d7d111705f
commit
5ce30d6019
|
@ -35,9 +35,9 @@ HRowLayout {
|
||||||
property string contentText: utils.processedEventText(model)
|
property string contentText: utils.processedEventText(model)
|
||||||
readonly property string timeText: utils.formatTime(model.date, false)
|
readonly property string timeText: utils.formatTime(model.date, false)
|
||||||
|
|
||||||
readonly property string readInfoText:
|
readonly property string stateText:
|
||||||
`<font size=${theme.fontSize.small}px ` +
|
`<font size=${theme.fontSize.small}px ` +
|
||||||
`color=${theme.chat.message.date}>` + (
|
`color=${theme.chat.message.serverState}>` + (
|
||||||
model.is_local_echo ? ` ⏳` :
|
model.is_local_echo ? ` ⏳` :
|
||||||
model.read_by_count ? ` ⦿ ${model.read_by_count}` :
|
model.read_by_count ? ` ⦿ ${model.read_by_count}` :
|
||||||
""
|
""
|
||||||
|
@ -170,7 +170,7 @@ HRowLayout {
|
||||||
timeText +
|
timeText +
|
||||||
"</font>" +
|
"</font>" +
|
||||||
|
|
||||||
readInfoText
|
stateText
|
||||||
|
|
||||||
transform: Translate { x: xOffset }
|
transform: Translate { x: xOffset }
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ HRowLayout {
|
||||||
mediaUrl: modelData
|
mediaUrl: modelData
|
||||||
showSender: pureMedia ? senderText : ""
|
showSender: pureMedia ? senderText : ""
|
||||||
showDate: pureMedia ? timeText : ""
|
showDate: pureMedia ? timeText : ""
|
||||||
showLocalEcho: pureMedia ? readInfoText : ""
|
showLocalEcho: pureMedia ? stateText : ""
|
||||||
|
|
||||||
transform: Translate { x: xOffset }
|
transform: Translate { x: xOffset }
|
||||||
|
|
||||||
|
|
|
@ -415,6 +415,7 @@ chat:
|
||||||
|
|
||||||
color body: colors.text
|
color body: colors.text
|
||||||
color date: colors.dimText
|
color date: colors.dimText
|
||||||
|
color serverState: colors.accentText
|
||||||
|
|
||||||
color redactedBody: colors.dimText
|
color redactedBody: colors.dimText
|
||||||
|
|
||||||
|
|
|
@ -424,6 +424,7 @@ chat:
|
||||||
|
|
||||||
color body: colors.text
|
color body: colors.text
|
||||||
color date: colors.dimText
|
color date: colors.dimText
|
||||||
|
color serverState: colors.accentText
|
||||||
|
|
||||||
color redactedBody: colors.dimText
|
color redactedBody: colors.dimText
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user