diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-23 22:16:30 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-23 22:16:30 -0700 |
commit | 3d0b692517be185e825a4e55f485082235999a58 (patch) | |
tree | 4ca10dd48b31a34b9ca0da752ce723e61a7be414 /presentty/palette.py | |
parent | 308a06134d7749638c7ba3afcc4031f31ba09930 (diff) | |
download | presentty-urwid-monkeypatch.tar.gz presentty-urwid-monkeypatch.tar.xz presentty-urwid-monkeypatch.zip |
Monkeypatch urwid to allow for italics and strikethrough formattingpresentty-urwid-monkeypatch
Diffstat (limited to 'presentty/palette.py')
-rw-r--r-- | presentty/palette.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/presentty/palette.py b/presentty/palette.py index 6079a95..933f19d 100644 --- a/presentty/palette.py +++ b/presentty/palette.py @@ -18,7 +18,9 @@ import urwid DARK_PALETTE = { '_default': urwid.AttrSpec('light gray', 'black'), - 'emphasis': urwid.AttrSpec('bold, light gray', 'black'), + 'emphasis': urwid.AttrSpec('italics, light gray', 'black'), + 'strong': urwid.AttrSpec('bold, light gray', 'black'), + 'strike': urwid.AttrSpec('strikethrough, light gray', 'black'), 'title': urwid.AttrSpec('bold, white', 'black'), 'progressive': urwid.AttrSpec('dark gray', 'black'), @@ -72,7 +74,9 @@ for k, v in DARK_PALETTE.items(): LIGHT_PALETTE.update({ '_default': urwid.AttrSpec('black', 'h15'), - 'emphasis': urwid.AttrSpec('bold, black', 'h15'), + 'emphasis': urwid.AttrSpec('italics, black', 'h15'), + 'strike': urwid.AttrSpec('strikethrough, black', 'h15'), + 'strong': urwid.AttrSpec('bold, black', 'h15'), 'title': urwid.AttrSpec('bold, #000', 'h15'), 'progressive': urwid.AttrSpec('light gray', 'h15'), }) |