mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
CComponentsFooter: fix wrong text color with single button in footers
* remove size compare If only one button exists, possible new text color would be ignored and wrong Text color was visible with one item. This behavior was observed in message boxes with single buttons (eg OK, or Cancel).
This commit is contained in:
@@ -362,8 +362,7 @@ void CComponentsFooter::setSelectedButton(size_t item_id,
|
|||||||
sel_col = sel_fr_col; //TODO: make it configurable
|
sel_col = sel_fr_col; //TODO: make it configurable
|
||||||
chain->setSelectedItem(item_id, sel_col, fr_col, sel_bg_col, bg_col, frame_width, sel_frame_width);
|
chain->setSelectedItem(item_id, sel_col, fr_col, sel_bg_col, bg_col, frame_width, sel_frame_width);
|
||||||
|
|
||||||
if (chain->size() > 1)
|
getSelectedButtonObject()->setButtonTextColor(sel_text_col);
|
||||||
getSelectedButtonObject()->setButtonTextColor(sel_text_col);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user