aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-13 17:04:52 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-13 17:04:52 +0300
commit98a8b528624c9f497c213afe66fb738cf15f2c82 (patch)
treee2ab4025f93a16a17234513436495057c7449ef9 /ui/messages
parente5264a242d7fc6ac6b3f7bdca548163bb584875b (diff)
Minor UI changes
Diffstat (limited to 'ui/messages')
-rw-r--r--ui/messages/base.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/messages/base.go b/ui/messages/base.go
index cb9b371..05df72b 100644
--- a/ui/messages/base.go
+++ b/ui/messages/base.go
@@ -178,7 +178,7 @@ func (msg *BaseMessage) TimestampColor() tcell.Color {
func (msg *BaseMessage) ReplyHeight() int {
if msg.ReplyTo != nil {
- return 2 + msg.ReplyTo.Height()
+ return 1 + msg.ReplyTo.Height()
}
return 0
}
@@ -278,14 +278,14 @@ func (msg *BaseMessage) DrawReply(screen mauview.Screen) mauview.Screen {
}
width, height := screen.Size()
replyHeight := msg.ReplyTo.Height()
- widget.WriteLineSimpleColor(screen, "In reply to", 0, 0, tcell.ColorGreen)
- widget.WriteLineSimpleColor(screen, msg.ReplyTo.RealSender(), len("In reply to "), 0, msg.ReplyTo.SenderColor())
- for y := 1; y < 1+replyHeight; y++ {
- screen.SetCell(0, y, tcell.StyleDefault, '▋')
+ widget.WriteLineSimpleColor(screen, "In reply to", 1, 0, tcell.ColorGreen)
+ widget.WriteLineSimpleColor(screen, msg.ReplyTo.RealSender(), 13, 0, msg.ReplyTo.SenderColor())
+ for y := 0; y < 1+replyHeight; y++ {
+ screen.SetCell(0, y, tcell.StyleDefault, '▊')
}
replyScreen := mauview.NewProxyScreen(screen, 1, 1, width-1, replyHeight)
msg.ReplyTo.Draw(replyScreen)
- return mauview.NewProxyScreen(screen, 0, replyHeight+2, width, height-replyHeight-2)
+ return mauview.NewProxyScreen(screen, 0, replyHeight+1, width, height-replyHeight-1)
}
func (msg *BaseMessage) String() string {