rename CornersOuter to Outer

This commit is contained in:
🪞👃🪞 2024-12-23 20:23:13 +01:00
parent 473c9e4510
commit 85ef1087db
4 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ render!(<Tui>|self: ArrangerTui|{
let arranger = ||lay!(|add|{
let color = self.color;
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))
});
with_size(with_status(with_editbar(with_pool(with_transport(col!([

View file

@ -198,7 +198,7 @@ render!(<Tui>|self: PhraseListView<'a>|{
let upper_right = format!("({})", phrases.len());
let color = ItemPalette::from(Color::Rgb(128,0,0));
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(&Tui::inset_xy(0, 1, Fill::wh(col!(move|add|match mode {
Some(PhraseListMode::Import(_, ref file_picker)) => add(file_picker),

View file

@ -65,7 +65,7 @@ render!(<Tui>|self: PianoHorizontal|{
let notes = move||PianoHorizontalNotes(&self);
let cursor = move||PianoHorizontalCursor(&self);
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)]);
with_border(Fill::wh(Bsp::s(
Fixed::h(1, Bsp::e(Fixed::w(keys_width, ""), Fill::w(timeline()),)),

View file

@ -197,7 +197,7 @@ border! {
"" ""
"🭼" "" "🭿" fn style (&self) -> Option<Style> { Some(self.0) }
},
CornersOuter {
Outer {
"🭽" "" "🭾"
"" ""
"🭼" "" "🭿"