mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Add edit indicator in modern display mode
This commit is contained in:
parent
7a83ebd7f4
commit
b9b363e686
1 changed files with 6 additions and 0 deletions
|
@ -714,6 +714,12 @@ func (view *MessageView) Draw(screen mauview.Screen) {
|
||||||
messageX+len(username)+3, line, view.width()-len(username)-3,
|
messageX+len(username)+3, line, view.width()-len(username)-3,
|
||||||
boldStyle.Foreground(msg.TimestampColor()),
|
boldStyle.Foreground(msg.TimestampColor()),
|
||||||
)
|
)
|
||||||
|
if msg.Edited {
|
||||||
|
widget.WriteLine(screen, mauview.AlignLeft, " "+string(tcell.RuneBullet)+" ",
|
||||||
|
messageX+len(username)+3+len(msg.FormatTime()), line, 3, boldStyle)
|
||||||
|
widget.WriteLine(screen, mauview.AlignLeft, "Edited",
|
||||||
|
messageX+len(username)+len(msg.FormatTime())+6, line, 6, boldStyle.Foreground(tcell.ColorDarkRed))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msg.Draw(mauview.NewProxyScreen(screen, messageX, line+offset, view.width()-messageX, msg.Height(header)), header)
|
msg.Draw(mauview.NewProxyScreen(screen, messageX, line+offset, view.width()-messageX, msg.Height(header)), header)
|
||||||
line += msg.Height(header)
|
line += msg.Height(header)
|
||||||
|
|
Loading…
Add table
Reference in a new issue