mirror of
https://github.com/ihabunek/toot
synced 2025-02-14 02:50:39 +01:00
Show visibility in TUI
This commit is contained in:
parent
8ffe8d281f
commit
064cab1988
@ -313,11 +313,19 @@ class StatusDetails(urwid.Pile):
|
||||
else None
|
||||
)
|
||||
|
||||
visibility_colors = {
|
||||
"public": "gray",
|
||||
"unlisted": "white",
|
||||
"private": "cyan",
|
||||
"direct": "yellow"
|
||||
}
|
||||
|
||||
yield ("pack", urwid.Text([
|
||||
("red", "🠷 ") if status.bookmarked else "",
|
||||
("gray", f"⤶ {status.data['replies_count']} "),
|
||||
("yellow" if status.reblogged else "gray", f"♺ {status.data['reblogs_count']} "),
|
||||
("yellow" if status.favourited else "gray", f"★ {status.data['favourites_count']}"),
|
||||
(visibility_colors[status.visibility], f" · {status.visibility}"),
|
||||
("yellow", f" · Translated from {translated_from} ") if translated_from else "",
|
||||
("gray", f" · {application}" if application else ""),
|
||||
]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user