summaryrefslogtreecommitdiff
path: root/poezio/theming.py
AgeCommit message (Collapse)Author
2021-04-15internal: add a different class for UI messagesmathieui
2021-04-02fix: type error after module importmathieui
(despite hasattr())
2021-04-02fix: tons of type errorsmathieui
2021-04-02refactor: rewrite config.get() to getbool, getstr, getint…mathieui
2020-12-12from __future__ import annotationsEmmanuel Gil Peyrot
Now that our baseline is Python 3.7, we can rely on type annotations to be lazily evaluated.
2020-08-14move date and time SHORT_FORMAT and LONG_FORMAT to the themeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-24Do not degrade colors for terminals supporting more than 256mathieui
2020-04-15theming: add CHAR_AFFILIATION_OUTCASTMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20's/an user/a user/g'Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-08-17Add typing information and reformat stuffmathieui
2018-08-15Fix mypy errors, add type annotationsmathieui
2018-07-23yapf -irEmmanuel Gil Peyrot
2018-07-22theming: Add typing information.Emmanuel Gil Peyrot
2018-07-21yapf -ripmathieui
2018-07-16Fix custom theme loading under Python 3.5.Emmanuel Gil Peyrot
2018-07-14Stop making classes inherit from object.Emmanuel Gil Peyrot
2018-07-04Use pathlib.Path and poezio.xdg to load themes.Emmanuel Gil Peyrot
2017-11-14yapf -irEmmanuel Gil Peyrot
2017-11-12Replace italics with reversed when the curses module is too old to support it.Emmanuel Gil Peyrot
2017-11-12Move definition of CCG_PALETTE to Theme objectJonas Wielicki
2017-11-12Add support for XEP-0392 (Consistent Color Generation)Jonas Wielicki
2017-11-12Fix list alignment in theming.pymathieui
2017-11-12yapf -irmathieui
2017-10-18Check whether curses.A_ITALIC exists, fixes a traceback on <em/> on Python < ↵Emmanuel Gil Peyrot
3.7.
2017-10-14Add support for italic on ^Ci.Emmanuel Gil Peyrot
Fixes #2722.
2017-10-12Fix some excepts (bare, useless, unused)mathieui
2016-08-24Don’t traceback in theming if called without poezio installedmathieui
If we just want to see the color list, we shouldn’t need to be able to import poezio.config
2016-07-06Cache results in poezio.theming.to_curses_attr.Emmanuel Gil Peyrot
This increases performances a *lot* compared to the previous uncached version.
2016-06-30Use absolute imports instead of relative onesmathieui
All this crap is very brittle due to circular deps and python handling them badly. This appears to be fixing some stuff, at the very least. This is sed, so cleanup of imports (which can now be grouped together) is not done yet.
2016-06-27Make all relative imports explicit.Emmanuel Gil Peyrot
2016-06-11Prefer '\0' to None or an empty string for single characters.Emmanuel Gil Peyrot
2016-06-11Move the src directory to poezio, for better cython compatibility.Emmanuel Gil Peyrot