refactor sequencer styles

This commit is contained in:
🪞👃🪞 2024-09-19 00:19:05 +03:00
parent 6f988e5072
commit 6e81082c17
2 changed files with 48 additions and 77 deletions

View file

@ -652,3 +652,15 @@ impl Theme for Nord {
const PLAYING: Color = Color::Rgb(60, 100, 50);
const SEPARATOR: Color = Color::Rgb(0, 0, 0);
}
#[macro_export] macro_rules! tui_style {
($NAME:ident = $fg:expr, $bg:expr, $ul:expr, $add:expr, $sub:expr) => {
pub const $NAME: Style = Style {
fg: $fg,
bg: $bg,
underline_color: $ul,
add_modifier: $add,
sub_modifier: $sub,
};
}
}