diff --git a/include/ftxui/component/checkbox.hpp b/include/ftxui/component/checkbox.hpp index 1dcffea..ffcee32 100644 --- a/include/ftxui/component/checkbox.hpp +++ b/include/ftxui/component/checkbox.hpp @@ -20,10 +20,13 @@ class CheckBox : public Component { bool state = false; std::wstring label = L"label"; - // std::wstring checked = L"[X] "; - // std::wstring unchecked = L"[ ] "; +#if defined(_WIN32) + std::wstring checked = L"[X] "; + std::wstring unchecked = L"[ ] "; +#else std::wstring checked = L"▣ "; std::wstring unchecked = L"☐ "; +#endif Decorator focused_style = inverted; Decorator unfocused_style = nothing; diff --git a/include/ftxui/component/radiobox.hpp b/include/ftxui/component/radiobox.hpp index a938b1b..726f763 100644 --- a/include/ftxui/component/radiobox.hpp +++ b/include/ftxui/component/radiobox.hpp @@ -21,8 +21,13 @@ class RadioBox : public Component { int focused = 0; std::vector entries; +#if defined(_WIN32) + std::wstring checked = L"(*) "; + std::wstring unchecked = L"( ) "; +#else std::wstring checked = L"◉ "; std::wstring unchecked = L"○ "; +#endif Decorator focused_style = inverted; Decorator unfocused_style = nothing;