+ Handful of useful macros/functions that are used basically everywhere
! There's no real order to these as they are mostly miscellaneous
This commit is contained in:
parent
1c85c88f96
commit
43e3f93aad
13
tui/src/common.rs
Normal file
13
tui/src/common.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#[macro_export]
|
||||||
|
macro_rules! bold {
|
||||||
|
($text:expr) => {
|
||||||
|
Span::styled($text, Style::default().add_modifier(Modifier::BOLD))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
macro_rules! normal {
|
||||||
|
($text:expr) => {
|
||||||
|
Span::raw($text)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user