Skip to content

Commit 893c2bc

Browse files
committed
Issues/PRs: show unicode symbol
1 parent f641810 commit 893c2bc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/Sauron/UI/Issue.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ issueLine now toggled' (Issue {issueNumber=(IssueNumber number), ..}) animationC
123123
where
124124
markerAttr = if issueState == StateOpen then openStateMarkerAttr else closedStateMarkerAttr
125125
line1 = hBox [
126-
withAttr markerAttr $ str (if toggled' then "[-] " else "[+] ")
126+
withAttr openMarkerAttr $ str (if toggled' then "[-] " else "[+] ")
127+
, withAttr markerAttr $ str (if issueState == StateOpen then "" else "")
127128
, withAttr normalAttr $ str $ toString issueTitle
128129
, fetchableQuarterCircleSpinner animationCounter fetchableState
129130
, padLeft Max $ str (if issueComments > 0 then [i|🗨 #{issueComments}|] else "")

app/Sauron/UI/Pull.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ pullLine now toggled' (Issue {issueNumber=(IssueNumber number), ..}) animationCo
106106
where
107107
markerAttr = if issueState == StateOpen then openStateMarkerAttr else closedStateMarkerAttr
108108
line1 = hBox [
109-
withAttr markerAttr $ str (if toggled' then "[-] " else "[+] ")
109+
withAttr openMarkerAttr $ str (if toggled' then "[-] " else "[+] ")
110+
, withAttr markerAttr $ str (if issueState == StateOpen then "" else "")
110111
, withAttr normalAttr $ str $ toString issueTitle
111112
, fetchableQuarterCircleSpinner animationCounter fetchableState
112113
, padLeft Max $ str "" -- (if pullComments > 0 then [i|🗨 #{pullComments}|] else "")

0 commit comments

Comments
 (0)