mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-09-18 05:16:44 +02:00
This commit is contained in:
parent
48aaa3933a
commit
5272b8ec55
1 changed files with 5 additions and 0 deletions
|
|
@ -128,6 +128,11 @@ pub const fn bold <'a> (on: bool, item: impl Draw<Tui>) -> impl Draw<Tui> {
|
||||||
modify(on, Modifier::BOLD, item)
|
modify(on, Modifier::BOLD, item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Draw contents with dim modifier applied.
|
||||||
|
pub const fn dim <'a> (on: bool, item: impl Draw<Tui>) -> impl Draw<Tui> {
|
||||||
|
modify(on, Modifier::DIM, item)
|
||||||
|
}
|
||||||
|
|
||||||
pub const fn fill_ul <'a> (color: Option<Color>) -> impl Draw<Tui> {
|
pub const fn fill_ul <'a> (color: Option<Color>) -> impl Draw<Tui> {
|
||||||
draw(move|to: &mut Tui|Ok(Some(if let Some(color) = color {
|
draw(move|to: &mut Tui|Ok(Some(if let Some(color) = color {
|
||||||
to.update(&|cell,_,_|{
|
to.update(&|cell,_,_|{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue