mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
rename CornersOuter to Outer
This commit is contained in:
parent
473c9e4510
commit
85ef1087db
4 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ render!(<Tui>|self: ArrangerTui|{
|
||||||
let arranger = ||lay!(|add|{
|
let arranger = ||lay!(|add|{
|
||||||
let color = self.color;
|
let color = self.color;
|
||||||
add(&Fill::wh(Tui::bg(color.darkest.rgb, ())))?;
|
add(&Fill::wh(Tui::bg(color.darkest.rgb, ())))?;
|
||||||
add(&Fill::wh(CornersOuter(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))))?;
|
add(&Fill::wh(Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))))?;
|
||||||
add(&Self::render_mode(self))
|
add(&Self::render_mode(self))
|
||||||
});
|
});
|
||||||
with_size(with_status(with_editbar(with_pool(with_transport(col!([
|
with_size(with_status(with_editbar(with_pool(with_transport(col!([
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ render!(<Tui>|self: PhraseListView<'a>|{
|
||||||
let upper_right = format!("({})", phrases.len());
|
let upper_right = format!("({})", phrases.len());
|
||||||
let color = ItemPalette::from(Color::Rgb(128,0,0));
|
let color = ItemPalette::from(Color::Rgb(128,0,0));
|
||||||
Tui::bg(bg, lay!(move|add|{
|
Tui::bg(bg, lay!(move|add|{
|
||||||
add(&Fill::wh(CornersOuter(Style::default().fg(color.light.rgb).bg(bg))))?;
|
add(&Fill::wh(Outer(Style::default().fg(color.light.rgb).bg(bg))))?;
|
||||||
//add(&Lozenge(Style::default().bg(border_bg).fg(border_color)))?;
|
//add(&Lozenge(Style::default().bg(border_bg).fg(border_color)))?;
|
||||||
add(&Tui::inset_xy(0, 1, Fill::wh(col!(move|add|match mode {
|
add(&Tui::inset_xy(0, 1, Fill::wh(col!(move|add|match mode {
|
||||||
Some(PhraseListMode::Import(_, ref file_picker)) => add(file_picker),
|
Some(PhraseListMode::Import(_, ref file_picker)) => add(file_picker),
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ render!(<Tui>|self: PianoHorizontal|{
|
||||||
let notes = move||PianoHorizontalNotes(&self);
|
let notes = move||PianoHorizontalNotes(&self);
|
||||||
let cursor = move||PianoHorizontalCursor(&self);
|
let cursor = move||PianoHorizontalCursor(&self);
|
||||||
let keys_width = 5;
|
let keys_width = 5;
|
||||||
let border = Fill::wh(CornersOuter(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)));
|
let border = Fill::wh(Outer(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)));
|
||||||
let with_border = |x|lay!([border, Tui::inset_xy(1, 1, &x)]);
|
let with_border = |x|lay!([border, Tui::inset_xy(1, 1, &x)]);
|
||||||
with_border(Fill::wh(Bsp::s(
|
with_border(Fill::wh(Bsp::s(
|
||||||
Fixed::h(1, Bsp::e(Fixed::w(keys_width, ""), Fill::w(timeline()),)),
|
Fixed::h(1, Bsp::e(Fixed::w(keys_width, ""), Fill::w(timeline()),)),
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ border! {
|
||||||
"" ""
|
"" ""
|
||||||
"🭼" "" "🭿" fn style (&self) -> Option<Style> { Some(self.0) }
|
"🭼" "" "🭿" fn style (&self) -> Option<Style> { Some(self.0) }
|
||||||
},
|
},
|
||||||
CornersOuter {
|
Outer {
|
||||||
"🭽" "▔" "🭾"
|
"🭽" "▔" "🭾"
|
||||||
"▏" "▕"
|
"▏" "▕"
|
||||||
"🭼" "▁" "🭿"
|
"🭼" "▁" "🭿"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue