FTXUI icon indicating copy to clipboard operation
FTXUI copied to clipboard

the decoration of stacked window not work correctly

Open walkthetalk opened this issue 1 year ago • 1 comments

Container::Stacked({ Renderer(comp1, =->ftxui::Element { return comp1->Render() | color(ftxui::Color::Red); }), Renderer(comp2, =->ftxui::Element { return comp2->Render() | color(ftxui::Color::Blue); }) })

the result is comp2 displayed as red, comp1 displayed normal without decoration.

walkthetalk avatar Dec 04 '23 06:12 walkthetalk

This is working as expected, and as implemented. Indeed the color apply the red color everywhere. It override the blue previous blue color.

That being said, I might be working on adding support for "transparent" colors. This would require rethinking what dbox and Container::Stacked means for the effect to be closer to what developers would expect.

ArthurSonzogni avatar Dec 16 '23 17:12 ArthurSonzogni