diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp index 172f3c5a224cedfc5225e858bddf27bfd11b0172..c5b330fa157b0163efd363c40209638f13ceef63 100644 --- a/include/ftxui/component/component_options.hpp +++ b/include/ftxui/component/component_options.hpp @@ -152,8 +152,6 @@ struct InputOption { static InputOption Default(); /// @brief A white on black style with high margins: static InputOption Spacious(); - /// @brief A style with a border: - static InputOption Arthur(); /// The content of the input when it's empty. StringRef placeholder = ""; diff --git a/src/ftxui/component/component_options.cpp b/src/ftxui/component/component_options.cpp index e36ac3585194575c77c81bab941e48fd707eaef1..aaebf19241d557ac9fc24d42315fc0998f4ef7bb 100644 --- a/src/ftxui/component/component_options.cpp +++ b/src/ftxui/component/component_options.cpp @@ -303,32 +303,6 @@ InputOption InputOption::Spacious() { return option; } -// static -InputOption InputOption::Arthur() { - InputOption option; - option.transform = [](InputState state) { - state.element |= borderEmpty; - state.element |= color(Color::White); - - if (state.is_placeholder) { - state.element |= dim; - } - - if (state.focused) { - state.element |= bgcolor(Color::Black); - } else { - state.element |= bgcolor(LinearGradient(0, Color::Blue, Color::Red)); - } - - if (state.hovered) { - state.element |= bgcolor(Color::GrayDark); - } - - return state.element; - }; - return option; -} - } // namespace ftxui // Copyright 2022 Arthur Sonzogni. All rights reserved.