mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsButton: fix transparecny of button icon
Background was black for some icons
This commit is contained in:
@@ -150,7 +150,7 @@ void CComponentsButton::initIcon()
|
|||||||
cc_btn_icon = frameBuffer->getIconBasePath() + "/" + cc_btn_icon + ".png";
|
cc_btn_icon = frameBuffer->getIconBasePath() + "/" + cc_btn_icon + ".png";
|
||||||
|
|
||||||
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, y_icon, cc_btn_icon, this);
|
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, y_icon, cc_btn_icon, this);
|
||||||
|
cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK);
|
||||||
int h_icon = cc_btn_icon_obj->getHeight();
|
int h_icon = cc_btn_icon_obj->getHeight();
|
||||||
|
|
||||||
//get required icon height
|
//get required icon height
|
||||||
|
Reference in New Issue
Block a user