aboutsummaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-06 23:49:17 +0800
committercrupest <crupest@outlook.com>2018-10-06 23:49:17 +0800
commit2261a4bc348a6017a0f31233f969bdf31ae35679 (patch)
treeccdc237b84423c9564458df3fae036f08815dda6 /src/application.cpp
parentbeb6cfa6b3492f5a9d89ba99c03358c22598e7aa (diff)
downloadcru-2261a4bc348a6017a0f31233f969bdf31ae35679.tar.gz
cru-2261a4bc348a6017a0f31233f969bdf31ae35679.tar.bz2
cru-2261a4bc348a6017a0f31233f969bdf31ae35679.zip
Add debug layout visual effects.
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());