aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/MainWindow.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
committercrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
commit2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 (patch)
tree9f19ec2697e1cf27895540f989d52946dcf4adab /src/theme_builder/components/MainWindow.cpp
parentc6de932f727ed324cf875ea3fca9ca44775a820e (diff)
downloadcru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.gz
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.bz2
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.zip
...
Diffstat (limited to 'src/theme_builder/components/MainWindow.cpp')
-rw-r--r--src/theme_builder/components/MainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theme_builder/components/MainWindow.cpp b/src/theme_builder/components/MainWindow.cpp
index 91c093cc..59e2dae8 100644
--- a/src/theme_builder/components/MainWindow.cpp
+++ b/src/theme_builder/components/MainWindow.cpp
@@ -19,6 +19,10 @@ MainWindow::MainWindow() {
preview_layout_.AddChild(&preview_button_);
preview_layout_.SetChildLayoutData(
0, StackChildLayoutData{Alignment::Center, Alignment::Center});
+
+ style_rule_set_editor_.BindStyleRuleSet(
+ preview_button_.GetStyleRuleSet()->GetParent());
+ main_layout_.AddChild(style_rule_set_editor_.GetRootControl());
}
MainWindow::~MainWindow() {}