mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsFooter: use different select color for button, if count = 1
TODO: should be configurable. Not all theme color combinations
have matched contrasts.
Origin commit data
------------------
Commit: b3e7e49592
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
This commit is contained in:
@@ -347,8 +347,12 @@ void CComponentsFooter::enableButtonBg(bool enable)
|
||||
|
||||
void CComponentsFooter::setSelectedButton(size_t item_id)
|
||||
{
|
||||
if (chain)
|
||||
chain->setSelectedItem(item_id, COL_GREEN, COL_SHADOW_PLUS_0, COL_MENUCONTENT_PLUS_0, COL_MENUCONTENT_PLUS_0, 2, 2);
|
||||
if (chain){
|
||||
fb_pixel_t sel_col = COL_MENUCONTENTSELECTED_PLUS_2;
|
||||
if (chain->size() > 1)
|
||||
sel_col = COL_MENUCONTENTSELECTED_PLUS_0; //TODO: make it configurable
|
||||
chain->setSelectedItem(item_id, sel_col, COL_MENUCONTENTSELECTED_PLUS_2, COL_MENUCONTENT_PLUS_0, COL_MENUCONTENT_PLUS_0, 1, 2);
|
||||
}
|
||||
}
|
||||
|
||||
int CComponentsFooter::getSelectedButton()
|
||||
|
Reference in New Issue
Block a user