mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
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 {
|
||||
style = style.
|
||||
Foreground(tcell.ColorBlack).
|
||||
Background(tcell.ColorWhite)
|
||||
Background(tcell.ColorWhite).
|
||||
Italic(true)
|
||||
}
|
||||
|
||||
timestamp := room.LastReceivedMessage
|
||||
|
@ -243,7 +244,7 @@ func (rstr *RosterView) Draw(screen mauview.Screen) {
|
|||
lastMessage, received := rstr.getMostRecentMessage(room)
|
||||
msgStyle := style.Foreground(tcell.ColorGray).Italic(!received)
|
||||
if isSelected {
|
||||
msgStyle = msgStyle.Background(tcell.ColorWhite)
|
||||
msgStyle = msgStyle.Background(tcell.ColorWhite).Italic(true)
|
||||
}
|
||||
|
||||
tmX := rstr.width - 3 - len(tm)
|
||||
|
|
Loading…
Add table
Reference in a new issue