improve filebox appearance on Linux

This commit is contained in:
Jinhao
2018-12-13 06:43:11 +08:00
parent 4f9b0560c7
commit 186b76e765
7 changed files with 441 additions and 88 deletions

View File

@@ -1522,11 +1522,12 @@ namespace nana
{
const nana::paint::image * img = nullptr;
auto & item_attr = compset->item_attribute();
if (item_attr.mouse_pointed)
img = &(item_attr.icon_hover);
else if (item_attr.expended)
img = &(item_attr.icon_expanded);
if (item_attr.expended)
img = &(item_attr.icon_expanded);
else if (item_attr.mouse_pointed)
img = &(item_attr.icon_hover);
if((nullptr == img) || img->empty())
img = &(item_attr.icon_normal);