summaryrefslogtreecommitdiff
path: root/poezio/theming.py
AgeCommit message (Collapse)Author
2022-08-21mypy: Type some more thingsEmmanuel Gil Peyrot
This lets us pass under mypy 0.971, and is yet another step towards mypyc compatibility perhaps.
2022-04-06Colourize tab name in its infobarJonas Schäfer
This is for faster learning the colour <-> tab association and to see quickly in which tab you’re currently in.
2022-04-06Add option to use XEP-0392 for tab names/numbers in the infobarJonas Schäfer
This will autocolour the tabs based on their name (typically the JID) if a new message or highlight occured. If it was a normal new message, the colouring will be subtle (foreground instead of background), otherwise (on a highlight or 1:1 message), the colouring will affect the background and thus stand out much more.
2022-04-06Add explicit color flag for reverse video modeJonas Schäfer
Reverse video mode is useful when using the CCG/XEP-0392 palette. Since we don’t know the true background color and the CCG palette is (presumably) made for a specific background color (range), it can currently only be used as foreground colour against a `-1` background. Reverse video mode also allows it to be used as background colour (with the normal background colour as foreground colour).
2022-03-31Change license for (some previous and) future revisions to GPL-3.0-or-laterMaxime “pep” Buquet
From this revision on, all changes that were under the following authors' names are also under GPL-3.0-or-later, and not just future changes: - Maxime Buquet (or Maxime “pep” Buquet) Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25clean: remove unused importsmathieui
2021-11-15Make message format more configurable around nicksEmmanuel Gil Peyrot
Normal messages were previously hardcoded to 'nick> ', and /me messages to '* nick ', this commit adds three new theme variables to make these configurable.
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