mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor sequencer styles
This commit is contained in:
parent
6f988e5072
commit
6e81082c17
2 changed files with 48 additions and 77 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue