mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CMsgBox: apply order of color buttons like on remote control
Ensures unified conventions over gui.
This commit is contained in:
@@ -143,15 +143,6 @@ void CMsgBox::initButtons()
|
||||
btn.btn_alias = mbOk;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbYes){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_GREEN;
|
||||
btn.text = BTN_TEXT(mbYes);
|
||||
btn.directKey = CRCInput::RC_green;
|
||||
btn.directKeyAlt = CRCInput::RC_ok;
|
||||
btn.btn_result = mbrYes;
|
||||
btn.btn_alias = mbYes;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbNo){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_RED;
|
||||
btn.text = BTN_TEXT(mbNo);
|
||||
@@ -161,6 +152,15 @@ void CMsgBox::initButtons()
|
||||
btn.btn_alias = mbNo;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbYes){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_GREEN;
|
||||
btn.text = BTN_TEXT(mbYes);
|
||||
btn.directKey = CRCInput::RC_green;
|
||||
btn.directKeyAlt = CRCInput::RC_ok;
|
||||
btn.btn_result = mbrYes;
|
||||
btn.btn_alias = mbYes;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbCancel){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_HOME;
|
||||
btn.text = BTN_TEXT(mbCancel);
|
||||
@@ -180,13 +180,6 @@ void CMsgBox::initButtons()
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbNoYes){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_GREEN;
|
||||
btn.text = BTN_TEXT(mbNo);
|
||||
btn.directKey = CRCInput::RC_green;
|
||||
btn.directKeyAlt = CRCInput::RC_home;
|
||||
btn.btn_result = mbrNo;
|
||||
btn.btn_alias = mbNo;
|
||||
v_buttons.push_back(btn);
|
||||
btn.button = NEUTRINO_ICON_BUTTON_RED;
|
||||
btn.text = BTN_TEXT(mbYes);
|
||||
btn.directKey = CRCInput::RC_red;
|
||||
@@ -194,6 +187,13 @@ void CMsgBox::initButtons()
|
||||
btn.btn_result = mbrYes;
|
||||
btn.btn_alias = mbYes;
|
||||
v_buttons.push_back(btn);
|
||||
btn.button = NEUTRINO_ICON_BUTTON_GREEN;
|
||||
btn.text = BTN_TEXT(mbNo);
|
||||
btn.directKey = CRCInput::RC_green;
|
||||
btn.directKeyAlt = CRCInput::RC_home;
|
||||
btn.btn_result = mbrNo;
|
||||
btn.btn_alias = mbNo;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
|
||||
ccw_footer->setButtonLabels(v_buttons, 0, 125);
|
||||
|
Reference in New Issue
Block a user