From 10f35de8f72310ad37ec6922c6464f0a8425a944 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Sat, 21 Mar 2015 18:17:50 +0100 Subject: [PATCH] fix: make checkbox and label have the same bgcolor as the owner --- source/gui/widgets/checkbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/gui/widgets/checkbox.cpp b/source/gui/widgets/checkbox.cpp index 1a73f706..8993a8b7 100644 --- a/source/gui/widgets/checkbox.cpp +++ b/source/gui/widgets/checkbox.cpp @@ -129,22 +129,26 @@ namespace checkbox checkbox::checkbox(window wd, bool visible) { create(wd, rectangle(), visible); + bgcolor(API::bgcolor(wd)); } checkbox::checkbox(window wd, const nana::string& text, bool visible) { create(wd, rectangle(), visible); + bgcolor(API::bgcolor(wd)); caption(text); } checkbox::checkbox(window wd, const nana::char_t* text, bool visible) { create(wd, rectangle(), visible); + bgcolor(API::bgcolor(wd)); caption(text); } checkbox::checkbox(window wd, const nana::rectangle& r, bool visible) { + bgcolor(API::bgcolor(wd)); create(wd, r, visible); }