From b07454570fd3dd3c52f3abd50fbe2fd3f4834d84 Mon Sep 17 00:00:00 2001 From: mahmoud Date: Tue, 18 Jun 2024 17:11:09 +0200 Subject: [PATCH] issues update --- include/ftxui/component/component_options.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp index b7e771e6..bdfe2fc6 100644 --- a/include/ftxui/component/component_options.hpp +++ b/include/ftxui/component/component_options.hpp @@ -227,6 +227,13 @@ struct SliderOption { Direction direction = Direction::Right; Color color_active = Color::White; Color color_inactive = Color::GrayDark; + + // Neue Methode zum Setzen der Farbe des Sliders + void setColor(const Color& active, const Color& inactive) { + color_active = active; + color_inactive = inactive; + } + }; // Parameter pack used by `WindowOptions::render`.