From 2261a4bc348a6017a0f31233f969bdf31ae35679 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 6 Oct 2018 23:49:17 +0800 Subject: Add debug layout visual effects. --- src/application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/application.cpp') 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(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()); -- cgit v1.2.3