diff --git a/src/ui/ui_controls/Button.cpp b/src/ui/ui_controls/Button.cpp index c24ef07..32b31ee 100644 --- a/src/ui/ui_controls/Button.cpp +++ b/src/ui/ui_controls/Button.cpp @@ -9,13 +9,12 @@ #include "MouseEvent.h" #include "FileLogger.h" -Button::Button() +Button::Button(ButtonData::Component component) : Widget(), mLabel(), - mCachedColor(ThemeToken::SystemToken::Primary), - mClickedColor(ThemeToken::SystemToken::Secondary), mClickFunc() { + mStyle.mComponent = component; mName = "Button"; } @@ -24,9 +23,9 @@ Button::~Button() } -std::unique_ptr