feat: add option to disable modal dim effect

For some terminal themes is cooler to not dim the screen when palettes
are showing.
This commit is contained in:
CJ van den Berg 2025-11-19 17:48:44 +01:00
parent 85c3e7ae7c
commit 395dadf6e3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 2 additions and 0 deletions

View file

@ -87,6 +87,7 @@ pub fn State(ctx_type: type) type {
}
pub fn render(self: *Self, theme: *const Widget.Theme) bool {
if (!tui.config().enable_modal_dim) return false;
return self.opts.on_render(self.opts.ctx, self, theme);
}