summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2021-11-14 21:49:09 +0100
committerLink Mauve <linkmauve@linkmauve.fr>2021-11-15 12:02:12 +0100
commit69f28e97f3276c2c817287d97168dcca8ab7e4c0 (patch)
tree96cc52fc0e2401fe3021cbe879281a4ba8424575 /doc
parent8947caae2e813627b446fbb0ffff2e2e356ca507 (diff)
downloadpoezio-69f28e97f3276c2c817287d97168dcca8ab7e4c0.tar.gz
poezio-69f28e97f3276c2c817287d97168dcca8ab7e4c0.tar.bz2
poezio-69f28e97f3276c2c817287d97168dcca8ab7e4c0.tar.xz
poezio-69f28e97f3276c2c817287d97168dcca8ab7e4c0.zip
Documentation: Fix theming docs, the module is namespaced in poezio.
Thanks Hund for finding this issue!
Diffstat (limited to 'doc')
-rw-r--r--doc/source/themes.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/source/themes.rst b/doc/source/themes.rst
index f6da6af5..ba4be33b 100644
--- a/doc/source/themes.rst
+++ b/doc/source/themes.rst
@@ -19,7 +19,7 @@ the text impossible to read).
.. note:: The default theme should work properly in any case. If not, that’s a bug.
A theme file is a python file (with the .py extension) containing a
-class, inheriting the *theming.Theme* class defined into the *theming*
+class, inheriting the *poezio.theming.Theme* class defined into the *theming*
poezio module.
To check how many colors your current terminal/$TERM supports, do:
@@ -38,18 +38,18 @@ add:
.. code-block:: python
- import theming
+ from poezio.theming import Theme
- class FooTheme(theming.Theme):
- # Define here colors for that theme
+ class FooTheme(Theme):
+ # Define here colors for that theme
theme = FooTheme()
To define a *color pair* and assign it to the *COLOR_NAME* option, just do
.. code-block:: python
- class FooTheme(theming.Theme):
- COLOR_NAME = (fg_color, bg_color, opt_attr)
+ class FooTheme(Theme):
+ COLOR_NAME = (fg_color, bg_color, opt_attr)
You do not have to define all the :ref:`available-options`,
you can decide that your theme will only change some options, the other