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:
parent
85c3e7ae7c
commit
395dadf6e3
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue