mirror of
https://github.com/ihabunek/toot
synced 2024-12-25 08:30:49 +01: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:
parent
41d96249ba
commit
3d0c7be1e0
@ -134,6 +134,9 @@ class StatusListWindow:
|
|||||||
self.pad.addstr(offset + 1, 1, " " + date.ljust(12), color)
|
self.pad.addstr(offset + 1, 1, " " + date.ljust(12), color)
|
||||||
self.pad.addstr(offset + 2, 1, " " + time.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:
|
if draw_divider:
|
||||||
draw_horizontal_divider(self.pad, offset + 3)
|
draw_horizontal_divider(self.pad, offset + 3)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user