forked from NotAShelf/beer
config: default cursor style/blink and visual bell
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ibd512084374fe4723ee267a916187af56a6a6964
This commit is contained in:
parent
2d319b7e73
commit
0738ce3b6f
4 changed files with 90 additions and 1 deletions
|
|
@ -138,6 +138,13 @@ impl Theme {
|
|||
pub fn reset_bg(&mut self) {
|
||||
self.bg = self.default_bg;
|
||||
}
|
||||
|
||||
/// A copy with foreground and background swapped, for the visual bell flash.
|
||||
pub fn inverted(&self) -> Self {
|
||||
let mut t = self.clone();
|
||||
std::mem::swap(&mut t.fg, &mut t.bg);
|
||||
t
|
||||
}
|
||||
}
|
||||
|
||||
/// Foreground/background used for `Color::Default`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue