diff options
author | crupest <crupest@outlook.com> | 2020-12-09 17:21:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-09 17:21:44 +0800 |
commit | 9fcebe16b5ad4acc8b2e206dbe163e58b1f75cdf (patch) | |
tree | ab179c513081df6c9d5e35ee630b3575664e77c6 /src/ui/controls/Control.cpp | |
parent | f355356e4b022ed0fdebff3fac5daa88a1532132 (diff) | |
download | cru-9fcebe16b5ad4acc8b2e206dbe163e58b1f75cdf.tar.gz cru-9fcebe16b5ad4acc8b2e206dbe163e58b1f75cdf.tar.bz2 cru-9fcebe16b5ad4acc8b2e206dbe163e58b1f75cdf.zip |
...
Diffstat (limited to 'src/ui/controls/Control.cpp')
-rw-r--r-- | src/ui/controls/Control.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/controls/Control.cpp b/src/ui/controls/Control.cpp index 1c4ffe51..29c2c46a 100644 --- a/src/ui/controls/Control.cpp +++ b/src/ui/controls/Control.cpp @@ -16,7 +16,9 @@ using platform::gui::IUiApplication; using platform::gui::SystemCursorType; Control::Control() { - style_rule_set_ = std::make_unique<style::StyleRuleSet>(this); + style_rule_set_ = std::make_unique<style::StyleRuleSet>(); + style_rule_set_bind_ = + std::make_unique<style::StyleRuleSetBind>(this, style_rule_set_.get()); MouseEnterEvent()->Direct()->AddHandler([this](event::MouseEventArgs&) { this->is_mouse_over_ = true; |