aboutsummaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
committerYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
commitb0057dc911f96258c7280b89c8f4da828ecc283c (patch)
treeccdc237b84423c9564458df3fae036f08815dda6 /src/application.cpp
parent7e870dd16e2f5b41fa6c6f687723aaa50c16274d (diff)
parent2261a4bc348a6017a0f31233f969bdf31ae35679 (diff)
downloadcru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.gz
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.bz2
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.zip
Merge branch '13-debug-layout' into 'master'
Resolve "Add debug layout visual effect." Closes #13 See merge request crupest/CruUI!13
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index af38116f..f53a002d 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -101,8 +101,10 @@ namespace cru {
god_window_ = std::make_unique<GodWindow>(this);
-#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER
- debug_border_brush_ = graph::CreateSolidBrush(D2D1::ColorF(D2D1::ColorF::Crimson));
+#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
caret_info_.caret_blink_duration = std::chrono::milliseconds(::GetCaretBlinkTime());