+ 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:
shockrah 2021-04-04 14:15:06 -07:00
parent 1c85c88f96
commit 43e3f93aad

13
tui/src/common.rs Normal file
View 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)
}
}