aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/main.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-26 19:46:37 +0800
committercrupest <crupest@outlook.com>2022-02-26 19:46:37 +0800
commit65e288c40a593965b41378755f7111c56e123295 (patch)
tree3c329d8453f3514a374e5a0c47edcffe9231173b /src/theme_builder/main.cpp
parente80f44385dee8636b747848ecb6193c41a99d89c (diff)
downloadcru-65e288c40a593965b41378755f7111c56e123295.tar.gz
cru-65e288c40a593965b41378755f7111c56e123295.tar.bz2
cru-65e288c40a593965b41378755f7111c56e123295.zip
...
Diffstat (limited to 'src/theme_builder/main.cpp')
-rw-r--r--src/theme_builder/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/theme_builder/main.cpp b/src/theme_builder/main.cpp
index 7e7faa3d..df03b379 100644
--- a/src/theme_builder/main.cpp
+++ b/src/theme_builder/main.cpp
@@ -1,8 +1,18 @@
#include "components/MainWindow.h"
+#include "cru/common/io/Resource.h"
#include "cru/platform/bootstrap/Bootstrap.h"
+#include "cru/ui/ThemeManager.h"
+#include "cru/ui/ThemeResourceDictionary.h"
int main() {
using namespace cru::theme_builder;
+ using namespace cru::ui;
+
+ auto resource_dir = cru::io::GetResourceDir();
+
+ ThemeManager::GetInstance()->PrependThemeResourceDictionary(
+ ThemeResourceDictionary::FromFile(resource_dir /
+ "cru/theme_builder/ThemeResources.xml"));
std::unique_ptr<cru::platform::gui::IUiApplication> application(
cru::platform::bootstrap::CreateUiApplication());