mirror of
https://github.com/orhun/systeroid
synced 2024-09-30 04:33:31 +00:00
style(tui): use better colors when background color is set to reset
This commit is contained in:
parent
fed4fad7e0
commit
3f862ffcdd
|
@ -31,7 +31,11 @@ impl Colors {
|
|||
|
||||
/// Returns the background/foreground colors with default style.
|
||||
pub fn get_style(&self) -> Style {
|
||||
Style::default().bg(self.fg).fg(self.bg)
|
||||
if self.bg == TuiColor::Reset {
|
||||
Style::default().bg(TuiColor::White).fg(TuiColor::Black)
|
||||
} else {
|
||||
Style::default().bg(self.fg).fg(self.bg)
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the background color with default style.
|
||||
|
|
Loading…
Reference in a new issue