aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-10 23:37:38 +0800
committercrupest <crupest@outlook.com>2022-02-10 23:37:38 +0800
commit382d42802221941e24e672743d03e7adcb544f94 (patch)
treecce2a16646c289f66270e61a0b0533764049ceaf /src
parentf65d0502a9f0fc44be0dd79a5f3f31697bb3aad0 (diff)
downloadcru-382d42802221941e24e672743d03e7adcb544f94.tar.gz
cru-382d42802221941e24e672743d03e7adcb544f94.tar.bz2
cru-382d42802221941e24e672743d03e7adcb544f94.zip
...
Diffstat (limited to 'src')
-rw-r--r--src/theme_builder/components/ConditionEditor.h4
-rw-r--r--src/theme_builder/components/conditions/CompoundConditionEditor.hpp1
-rw-r--r--src/ui/helper/ClickDetector.cpp1
3 files changed, 6 insertions, 0 deletions
diff --git a/src/theme_builder/components/ConditionEditor.h b/src/theme_builder/components/ConditionEditor.h
index f32da304..ddca5e28 100644
--- a/src/theme_builder/components/ConditionEditor.h
+++ b/src/theme_builder/components/ConditionEditor.h
@@ -1,5 +1,7 @@
#pragma once
#include "cru/ui/components/Component.h"
+#include "cru/ui/controls/FlexLayout.h"
+#include "cru/ui/controls/TextBlock.h"
namespace cru::theme_builder {
class ConditionEditor : public ui::components::Component {
@@ -12,5 +14,7 @@ class ConditionEditor : public ui::components::Component {
ui::controls::Control* GetRootControl() override { return nullptr; }
private:
+ ui::controls::FlexLayout container_;
+ ui::controls::TextBlock label_;
};
} // namespace cru::theme_builder
diff --git a/src/theme_builder/components/conditions/CompoundConditionEditor.hpp b/src/theme_builder/components/conditions/CompoundConditionEditor.hpp
new file mode 100644
index 00000000..6f70f09b
--- /dev/null
+++ b/src/theme_builder/components/conditions/CompoundConditionEditor.hpp
@@ -0,0 +1 @@
+#pragma once
diff --git a/src/ui/helper/ClickDetector.cpp b/src/ui/helper/ClickDetector.cpp
index 6d4f38c1..981e9e04 100644
--- a/src/ui/helper/ClickDetector.cpp
+++ b/src/ui/helper/ClickDetector.cpp
@@ -2,6 +2,7 @@
#include "cru/common/Logger.h"
#include "cru/ui/DebugFlags.h"
+#include "cru/ui/controls/Control.h"
#include <optional>