From 3d0c7be1e051ff5c4938d2cd43dd1cb0268871ca Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 14 Feb 2019 20:39:58 +0100 Subject: [PATCH] Indicate if status has been favorited in left pane of curses ui Showing a yellow star in the right corner of second line. --- toot/ui/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toot/ui/app.py b/toot/ui/app.py index 701ab36..9658e72 100644 --- a/toot/ui/app.py +++ b/toot/ui/app.py @@ -134,6 +134,9 @@ class StatusListWindow: self.pad.addstr(offset + 1, 1, " " + date.ljust(12), color) self.pad.addstr(offset + 2, 1, " " + time.ljust(12), color) + if status['favourited']: + self.pad.addstr(offset + 2, width - 3, '⭐', Color.YELLOW) + if draw_divider: draw_horizontal_divider(self.pad, offset + 3)