FTXUI
FTXUI copied to clipboard
the decoration of stacked window not work correctly
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.
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.