#include "BrightnessSlider.hpp" #include "Label.hpp" #include "Slider.hpp" using namespace UI::Widget; BrightnessSlider::BrightnessSlider(std::shared_ptr aDisplay) : Base(ID::Widgets::BrightnessSlider), mDisplay(aDisplay), mSlider(AddElement(std::make_unique( [this](auto aNewBrightness) { mDisplay->setBrightness(aNewBrightness); }, 0, 255))), mLabel(AddElement(std::make_unique