diff options
author | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
commit | ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9 (patch) | |
tree | e5b886f1884fa56dd90059523b1f4dc730bb5003 /src/application.cpp | |
parent | 4b219b569c16db6027dd36e4656152f261321c60 (diff) | |
download | cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.gz cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.bz2 cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.zip |
Add predefine resource.
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp index dce01b11..672ee347 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -4,7 +4,7 @@ #include "timer.hpp" #include "ui/window.hpp" #include "ui/cursor.hpp" -#include "graph/graph.hpp" +#include "ui/predefine.hpp" namespace cru { constexpr auto god_window_class_name = L"GodWindowClass"; @@ -118,11 +118,7 @@ namespace cru { god_window_ = std::make_unique<GodWindow>(this); -#ifdef CRU_DEBUG_LAYOUT - debug_layout_resource_.out_border_brush = graph::CreateSolidBrush(D2D1::ColorF(D2D1::ColorF::Crimson)); - debug_layout_resource_.margin_brush = graph::CreateSolidBrush(D2D1::ColorF(D2D1::ColorF::LightCoral, 0.25f)); - debug_layout_resource_.padding_brush = graph::CreateSolidBrush(D2D1::ColorF(D2D1::ColorF::SkyBlue, 0.25f)); -#endif + ui::predefine::InitThemes(&predefine_resource_map_); caret_info_ = GetSystemCaretInfo(); |