fix disabled checkbox square

disabled checkbox square now looks like disabled textbox
In addition found an unused instruction in text_editor.cpp: could be replaced or removed (or left as it is :) )
This commit is contained in:
besh81
2018-12-14 12:38:06 +01:00
parent 232c7ce7e5
commit 36095c9190
3 changed files with 8 additions and 3 deletions

View File

@@ -2002,7 +2002,7 @@ namespace nana {
auto fgcolor = scheme_->foreground.get_color();
if (!API::window_enabled(window_))
fgcolor.blend(bgcolor, 0.5);
fgcolor.blend(bgcolor, 0.5); // do nothing !!! should be replace with <code> fgcolor = fgcolor.blend(bgcolor, 0.5); <\code> or removed
if (API::widget_borderless(window_))
graph_.rectangle(false, bgcolor);