Skip to content

Commit

Permalink
themes: add heading to zt_light
Browse files Browse the repository at this point in the history
  • Loading branch information
mounilKshah committed Dec 30, 2021
1 parent 22a17fb commit ed3227b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions zulipterminal/themes/zt_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'msg_emoji' : (Color.LIGHT_MAGENTA, Color.WHITE),
'reaction' : (Color.LIGHT_MAGENTA__BOLD, Color.WHITE),
'reaction_mine' : (Color.WHITE, Color.LIGHT_MAGENTA),
'msg_heading' : (Color.WHITE__BOLD, Color.DARK_RED),
'msg_math' : (Color.DARK_GRAY, Color.LIGHT_GRAY),
'msg_mention' : (Color.LIGHT_RED__BOLD, Color.WHITE),
'msg_link' : (Color.DARK_BLUE, Color.WHITE),
Expand Down
4 changes: 2 additions & 2 deletions zulipterminal/ui_tools/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,8 @@ def soup2markup(
if text:
markup.append(unrendered_template.format(text))
elif tag in ("h1", "h2", "h3", "h4", "h5", "h6"):
# HEADING STYLE (for all heading style tags – h1 to h6)
markup.append(("msg_heading", tag_text))
# HEADING STYLE (h1 to h6)
markup.append(("msg_heading", cls.soup2markup(element, metadata)[0]))
elif tag in ("p", "del"):
# PARAGRAPH, STRIKE-THROUGH
markup.extend(cls.soup2markup(element, metadata)[0])
Expand Down

0 comments on commit ed3227b

Please sign in to comment.