forked from Mirrors/gomuks
Italicize selected room in roster view
This commit is contained in:
parent
73b0d3f1a2
commit
7e1f8bcc59
1 changed files with 3 additions and 2 deletions
|
@ -225,7 +225,8 @@ func (rstr *RosterView) Draw(screen mauview.Screen) {
|
||||||
if isSelected {
|
if isSelected {
|
||||||
style = style.
|
style = style.
|
||||||
Foreground(tcell.ColorBlack).
|
Foreground(tcell.ColorBlack).
|
||||||
Background(tcell.ColorWhite)
|
Background(tcell.ColorWhite).
|
||||||
|
Italic(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
timestamp := room.LastReceivedMessage
|
timestamp := room.LastReceivedMessage
|
||||||
|
@ -243,7 +244,7 @@ func (rstr *RosterView) Draw(screen mauview.Screen) {
|
||||||
lastMessage, received := rstr.getMostRecentMessage(room)
|
lastMessage, received := rstr.getMostRecentMessage(room)
|
||||||
msgStyle := style.Foreground(tcell.ColorGray).Italic(!received)
|
msgStyle := style.Foreground(tcell.ColorGray).Italic(!received)
|
||||||
if isSelected {
|
if isSelected {
|
||||||
msgStyle = msgStyle.Background(tcell.ColorWhite)
|
msgStyle = msgStyle.Background(tcell.ColorWhite).Italic(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
tmX := rstr.width - 3 - len(tm)
|
tmX := rstr.width - 3 - len(tm)
|
||||||
|
|
Loading…
Add table
Reference in a new issue