fix: make panel and label have the same bgcolor as the owner
This commit is contained in:
@@ -44,11 +44,13 @@ namespace nana
|
|||||||
panel(window wd, bool visible)
|
panel(window wd, bool visible)
|
||||||
{
|
{
|
||||||
this->create(wd, rectangle(), visible);
|
this->create(wd, rectangle(), visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
}
|
}
|
||||||
|
|
||||||
panel(window wd, const nana::rectangle& r = rectangle(), bool visible = true)
|
panel(window wd, const nana::rectangle& r = rectangle(), bool visible = true)
|
||||||
{
|
{
|
||||||
this->create(wd, r, visible);
|
this->create(wd, r, visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool transparent() const
|
bool transparent() const
|
||||||
|
|||||||
@@ -765,23 +765,27 @@ namespace nana
|
|||||||
label::label(window wd, bool visible)
|
label::label(window wd, bool visible)
|
||||||
{
|
{
|
||||||
create(wd, rectangle(), visible);
|
create(wd, rectangle(), visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
}
|
}
|
||||||
|
|
||||||
label::label(window wd, const nana::string& text, bool visible)
|
label::label(window wd, const nana::string& text, bool visible)
|
||||||
{
|
{
|
||||||
create(wd, rectangle(), visible);
|
create(wd, rectangle(), visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
caption(text);
|
caption(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
label::label(window wd, const nana::char_t* text, bool visible)
|
label::label(window wd, const nana::char_t* text, bool visible)
|
||||||
{
|
{
|
||||||
create(wd, rectangle(), visible);
|
create(wd, rectangle(), visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
caption(text);
|
caption(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
label::label(window wd, const rectangle& r, bool visible)
|
label::label(window wd, const rectangle& r, bool visible)
|
||||||
{
|
{
|
||||||
create(wd, r, visible);
|
create(wd, r, visible);
|
||||||
|
bgcolor(API::bgcolor(wd));
|
||||||
}
|
}
|
||||||
|
|
||||||
label& label::transparent(bool enabled)
|
label& label::transparent(bool enabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user