requery default colors on focus (#4673)
fixes an issue when terminals change their color scheme, e.g. dark/light mode, the composer wouldn't update its background color.
This commit is contained in:
@@ -362,6 +362,8 @@ impl Tui {
|
||||
}
|
||||
Event::FocusGained => {
|
||||
terminal_focused.store(true, Ordering::Relaxed);
|
||||
crate::terminal_palette::requery_default_colors();
|
||||
yield TuiEvent::Draw;
|
||||
}
|
||||
Event::FocusLost => {
|
||||
terminal_focused.store(false, Ordering::Relaxed);
|
||||
|
||||
Reference in New Issue
Block a user