mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CComponentsFooter: set color of button frames to button type, default=gray
Origin commit data
------------------
Commit: 995eff8ffe
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)
This commit is contained in:
@@ -133,6 +133,17 @@ void CComponentsFooter::setButtonLabels(const struct button_label_s * const cont
|
||||
CComponentsButton *btn = new CComponentsButton(0, CC_CENTERED, w_btn_min, height-height/4, content[i].text, content[i].button);
|
||||
btn->setButtonFont(ccf_btn_font);
|
||||
btn->doPaintBg(btn_contour);
|
||||
|
||||
string btn_name = string(content[i].button);
|
||||
if (btn_name == NEUTRINO_ICON_BUTTON_RED)
|
||||
btn->setColorFrame(COL_DARK_RED);
|
||||
if (btn_name == NEUTRINO_ICON_BUTTON_GREEN)
|
||||
btn->setColorFrame(COL_DARK_GREEN);
|
||||
if (btn_name == NEUTRINO_ICON_BUTTON_YELLOW)
|
||||
btn->setColorFrame(COL_OLIVE);
|
||||
if (btn_name == NEUTRINO_ICON_BUTTON_BLUE)
|
||||
btn->setColorFrame(COL_DARK_BLUE);
|
||||
|
||||
chain->addCCItem(btn);
|
||||
|
||||
//set x position of next button object
|
||||
|
Reference in New Issue
Block a user