aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleSetEditor.cpp
blob: 313b53da07d5aa17392172bd88267f2368dbb23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "StyleRuleSetEditor.h"
#include "cru/ui/controls/FlexLayout.h"

namespace cru::theme_builder {
using namespace cru::ui::controls;
StyleRuleSetEditor::StyleRuleSetEditor() {
  main_layout_ = FlexLayout::Create();
}

StyleRuleSetEditor::~StyleRuleSetEditor() {
  main_layout_->RemoveFromParent();
  delete main_layout_;
}

void StyleRuleSetEditor::BindStyleRuleSet(
    std::shared_ptr<ui::style::StyleRuleSet> rule_set) {
  style_rule_set_ = std::move(rule_set);
  UpdateView();
}

void StyleRuleSetEditor::UpdateView() {}
}  // namespace cru::theme_builder