~ihabunek/toot-discuss

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] Show visibility in TUI

Lim Ding Wen <limdingwen@gmail.com>
Details
Message ID
<20221221232241.26065-1-limdingwen@gmail.com>
DKIM signature
pass
Download raw message
Patch: +8 -0
---
 toot/tui/timeline.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py
index f69640c..21c64b0 100644
--- a/toot/tui/timeline.py
+++ b/toot/tui/timeline.py
@@ -307,10 +307,18 @@ class StatusDetails(urwid.Pile):
            else None
        )

        visibiility_colors = {
            "public": "gray",
            "unlisted": "white",
            "private": "cyan",
            "direct": "yellow"
        }

        yield ("pack", urwid.Text([
            ("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']}"),
            (visibiility_colors[status.visibility], f" · {status.visibility}"),
            ("yellow", f" · Translated from {translated_from} ") if translated_from else "",
            ("gray", f" · {application}" if application else ""),
        ]))
-- 
2.32.1 (Apple Git-133)

[PATCH v2] Show visibility in TUI

Lim Ding Wen <limdingwen@gmail.com>
Details
Message ID
<20221221233029.26536-1-limdingwen@gmail.com>
In-Reply-To
<20221221232241.26065-1-limdingwen@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Patch: +8 -0
---
 toot/tui/timeline.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py
index f69640c..fba33be 100644
--- a/toot/tui/timeline.py
+++ b/toot/tui/timeline.py
@@ -307,10 +307,18 @@ class StatusDetails(urwid.Pile):
            else None
        )

        visibility_colors = {
            "public": "gray",
            "unlisted": "white",
            "private": "cyan",
            "direct": "yellow"
        }

        yield ("pack", urwid.Text([
            ("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 ""),
        ]))
-- 
2.32.1 (Apple Git-133)

Re: [PATCH v2] Show visibility in TUI

Details
Message ID
<359ad0ea-0f3a-41a3-a526-863d1bea62e5@app.fastmail.com>
In-Reply-To
<20221221233029.26536-1-limdingwen@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Thanks, applied!

-- Ivan
Reply to thread Export thread (mbox)