From 79e5d220ce41e4bcba82fed8899a3f35fcefe69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20R=C3=BC=C3=9Fler?= Date: Wed, 22 May 2024 17:51:40 +0200 Subject: [PATCH] Extend documentation on breaking change --- THEMES.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/THEMES.md b/THEMES.md index 25990f332f..e843d05b14 100644 --- a/THEMES.md +++ b/THEMES.md @@ -14,7 +14,18 @@ The file uses the [Ron format](https://github.com/ron-rs/ron) and is located at Alternatively, you can create a theme in the same directory mentioned above and use it with the `-t` flag followed by the name of the file in the directory. E.g. If you are on linux calling `gitui -t arc.ron`, this will load the theme in `$XDG_CONFIG_HOME/gitui/arc.ron` or `$HOME/.config/gitui/arc.ron`. -Example theme override: +Example theme override (>= 0.23, < 0.26.2): + +``` +( + selection_bg: Some(Blue), + selection_fg: Some(White), +) +``` + +Note that you need to wrap values in `Some` due to the way the overrides work (as of 0.23). + +Example theme override (>= 0.26.2): ``` ( @@ -23,7 +34,9 @@ Example theme override: ) ``` -Note that you need to wrap values in `Some` due to the way the overrides work (as of 0.23). +Note that you need to specify colors using strings due to a change in `ratatui` as opposed to bare enum variants (as of 0.26.2). + +See for context. Notes: