Tweak visibility display
This commit is contained in:
parent
064cab1988
commit
fa6b90a115
1 changed files with 4 additions and 1 deletions
|
@ -320,12 +320,15 @@ class StatusDetails(urwid.Pile):
|
||||||
"direct": "yellow"
|
"direct": "yellow"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
visibility = status.visibility.title()
|
||||||
|
visibility_color = visibility_colors.get(status.visibility, "gray")
|
||||||
|
|
||||||
yield ("pack", urwid.Text([
|
yield ("pack", urwid.Text([
|
||||||
("red", "🠷 ") if status.bookmarked else "",
|
("red", "🠷 ") if status.bookmarked else "",
|
||||||
("gray", f"⤶ {status.data['replies_count']} "),
|
("gray", f"⤶ {status.data['replies_count']} "),
|
||||||
("yellow" if status.reblogged else "gray", f"♺ {status.data['reblogs_count']} "),
|
("yellow" if status.reblogged else "gray", f"♺ {status.data['reblogs_count']} "),
|
||||||
("yellow" if status.favourited else "gray", f"★ {status.data['favourites_count']}"),
|
("yellow" if status.favourited else "gray", f"★ {status.data['favourites_count']}"),
|
||||||
(visibility_colors[status.visibility], f" · {status.visibility}"),
|
(visibility_color, f" · {visibility}"),
|
||||||
("yellow", f" · Translated from {translated_from} ") if translated_from else "",
|
("yellow", f" · Translated from {translated_from} ") if translated_from else "",
|
||||||
("gray", f" · {application}" if application else ""),
|
("gray", f" · {application}" if application else ""),
|
||||||
]))
|
]))
|
||||||
|
|
Loading…
Reference in a new issue