1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-22 04:25:55 -04:00

Indicate if status has been favorited in left pane of curses ui

Showing a yellow star in the right corner of second line.
This commit is contained in:
Denis Laxalde 2019-02-14 20:39:58 +01:00
parent 41d96249ba
commit 3d0c7be1e0

View File

@ -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)