diff options
author | crupest <crupest@outlook.com> | 2022-01-29 23:18:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-29 23:18:18 +0800 |
commit | a6dd823a94f0e6338545a4885e9d428e83a56593 (patch) | |
tree | f3f0359971e5419201e4883d2de0588bcd310063 | |
parent | 43fe5dfe001f25870788742333d141f406b07364 (diff) | |
download | cru-a6dd823a94f0e6338545a4885e9d428e83a56593.tar.gz cru-a6dd823a94f0e6338545a4885e9d428e83a56593.tar.bz2 cru-a6dd823a94f0e6338545a4885e9d428e83a56593.zip |
...
-rw-r--r-- | src/theme_builder/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/theme_builder/components/StyleRuleSetEditor.cpp | 7 | ||||
-rw-r--r-- | src/theme_builder/components/StyleRuleSetEditor.hpp | 22 |
3 files changed, 30 insertions, 0 deletions
diff --git a/src/theme_builder/CMakeLists.txt b/src/theme_builder/CMakeLists.txt index e6ef1873..0ec34e39 100644 --- a/src/theme_builder/CMakeLists.txt +++ b/src/theme_builder/CMakeLists.txt @@ -1,6 +1,7 @@ add_executable(cru_theme_builder main.cpp components/MainWindow.cpp + components/StyleRuleSetEditor.cpp ) if(APPLE) diff --git a/src/theme_builder/components/StyleRuleSetEditor.cpp b/src/theme_builder/components/StyleRuleSetEditor.cpp new file mode 100644 index 00000000..be6fd8d6 --- /dev/null +++ b/src/theme_builder/components/StyleRuleSetEditor.cpp @@ -0,0 +1,7 @@ +#include "StyleRuleSetEditor.hpp" + +namespace cru::theme_builder { +StyleRuleSetEditor::StyleRuleSetEditor() {} + +StyleRuleSetEditor::~StyleRuleSetEditor() {} +} // namespace cru::theme_builder diff --git a/src/theme_builder/components/StyleRuleSetEditor.hpp b/src/theme_builder/components/StyleRuleSetEditor.hpp new file mode 100644 index 00000000..8bf55229 --- /dev/null +++ b/src/theme_builder/components/StyleRuleSetEditor.hpp @@ -0,0 +1,22 @@ +#pragma once +#include "cru/ui/components/Component.hpp" +#include "cru/ui/controls/Control.hpp" +#include "cru/ui/controls/FlexLayout.hpp" + +namespace cru::theme_builder { +class StyleRuleSetEditor : public ui::components::Component { + public: + StyleRuleSetEditor(); + + CRU_DELETE_COPY(StyleRuleSetEditor) + CRU_DELETE_MOVE(StyleRuleSetEditor) + + ~StyleRuleSetEditor() override; + + public: + ui::controls::Control* GetRootControl() override { return main_layout_; } + + private: + ui::controls::FlexLayout* main_layout_; +}; +} // namespace cru::theme_builder |