You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by sentientbottleofwine October 20, 2024
This might be a very simple question and I might be just missing something obvious, I tried and couldn't resolve my issue. When I try to make a window that has a title that's supposed to be colored and apply the color to the title the whole upper border of the window changes color:
Here's the code:
#include<ftxui/dom/elements.hpp>
#include<ftxui/screen/screen.hpp>intmain() {
usingnamespaceftxui;auto render = window(text("Only text should be colored") | color(Color::Green), text("Contents")) | color(Color::White);
auto screen = Screen::Create(
Dimension::Full(),
Dimension::Fit(render)
);
Render(screen, render);
screen.Print();
}
I have no idea how to do this correctly. I greatly appreciate and thank any help.
The text was updated successfully, but these errors were encountered:
This looks like a bug. I believe this is because the "title" is flexible by default and covers the whole line, causing the color decorator to apply to everything that is behind.
Discussed in #939
Originally posted by sentientbottleofwine October 20, 2024
This might be a very simple question and I might be just missing something obvious, I tried and couldn't resolve my issue. When I try to make a window that has a title that's supposed to be colored and apply the color to the title the whole upper border of the window changes color:
Here's the code:
I have no idea how to do this correctly. I greatly appreciate and thank any help.
The text was updated successfully, but these errors were encountered: