diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-21 23:08:51 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-21 23:53:25 +0000 |
commit | 3e11dc2327d70e860b3ad32db386aadd549393b3 (patch) | |
tree | a9768d3c65dd3df77be7ae8530f76fa07a5c9c42 /README.md | |
parent | c43e1611437bcb450526f5624712dcde8d061245 (diff) |
Overhaul text theming.
Each piece of text is now individually themable, with foreground and
background colours and optionally rounded background corners.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -91,10 +91,12 @@ See the main [manpage](doc/tofi.1.md) for more info. ### Theming -Tofi supports a fair number of theming options - see the config file -[manpage](doc/tofi.5.md) for a complete description. Theming is based on the -box model shown below: +Tofi supports a fair number of theming options - see the default [config +file](doc/config) config file or the config file [manpage](doc/tofi.5.md) for a +complete description. Theming is based on the box model shown below: +  + This consists of a box with a border, border outlines and optionally rounded corners. Text inside the box can either be laid out vertically: ``` @@ -111,6 +113,8 @@ or horizontally: ║ prompt input result 1 result 2 ... ║ ╚═══════════════════════════════════════════╝ ``` +Each piece of text can have its colour customised, and be surrounded by a box +with optionally rounded corners, A few example themes are included and shown below. Note that you may need to tweak them to look correct on your display. @@ -165,8 +169,8 @@ In roughly descending order, the most important options for performance are: results will speed this up, but since this likely only applies to dmenu-like themes (which are already very quick) it's probably not worth setting this. -* `--selection-match-color`, `--selection-background` - Passing either of these - options causes some more complex rendering to take place, again leading to a +* `--*-background` - Drawing background boxes around text effectively requires + drawing the text twice, so specifying a lot of these options can lead to a couple of ms slowdown. * `--hint-font` - Getting really into it now, one of the remaining slow points |