aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/stylers/FontStylerEditor.h
blob: 11c931d390c023723a8ee320affa424a45a2c9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "../properties/FontPropertyEditor.h"
#include "StylerEditor.h"
#include "cru/base/ClonePtr.h"
#include "cru/ui/style/Styler.h"

namespace cru::theme_builder::components::stylers {
class FontStylerEditor : public StylerEditor {
 public:
  FontStylerEditor();
  ~FontStylerEditor();

 public:
  ClonePtr<ui::style::FontStyler> GetValue();
  void SetValue(ui::style::FontStyler* value, bool trigger_change = true);

  ClonePtr<ui::style::Styler> GetStyler() override { return GetValue(); }

 private:
  properties::FontPropertyEditor font_editor_;
};
}  // namespace cru::theme_builder::components::stylers