mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
- infoviewer: rework tuner icons
Conflicts: data/icons/status/channel/tuner_1.png data/icons/status/channel/tuner_2.png data/icons/status/channel/tuner_3.png data/icons/status/channel/tuner_4.png Signed-off-by: Thilo Graf <dbt@novatux.de> I think it's not an excellent idea to have many icons for all possible tuner numbers. We should use one and only icon without any number and paint a text over the icon. This should be possible with a simple cc text object that contains a defined png-file file as background and a digit as text.
This commit is contained in:
@@ -193,7 +193,7 @@ void CInfoViewerBB::getBBIconInfo()
|
||||
break;
|
||||
case CInfoViewerBB::ICON_TUNER:
|
||||
if (CFEManager::getInstance()->getEnabledCount() > 1 && g_settings.infobar_show_tuner == 1 && !isTSMode && !IS_WEBCHAN(g_InfoViewer->get_current_channel_id()))
|
||||
iconView = checkBBIcon(NEUTRINO_ICON_TUNER_1, &w, &h);
|
||||
iconView = checkBBIcon(NEUTRINO_ICON_TUNER, &w, &h);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -678,22 +678,13 @@ void CInfoViewerBB::showIcon_Tuner()
|
||||
return;
|
||||
}
|
||||
|
||||
std::string icon_name;
|
||||
switch (CFEManager::getInstance()->getLiveFE()->getNumber()) {
|
||||
case 1:
|
||||
icon_name = NEUTRINO_ICON_TUNER_2;
|
||||
break;
|
||||
case 2:
|
||||
icon_name = NEUTRINO_ICON_TUNER_3;
|
||||
break;
|
||||
case 3:
|
||||
icon_name = NEUTRINO_ICON_TUNER_4;
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
icon_name = NEUTRINO_ICON_TUNER_1;
|
||||
break;
|
||||
}
|
||||
char icon_name[12];
|
||||
snprintf(icon_name, sizeof(icon_name), "%s_%02d", NEUTRINO_ICON_TUNER, CFEManager::getInstance()->getLiveFE()->getNumber() + 1);
|
||||
|
||||
int w = 0, h = 0;
|
||||
if (!checkBBIcon(icon_name, &w, &h))
|
||||
snprintf(icon_name, sizeof(icon_name), "%s", NEUTRINO_ICON_TUNER);
|
||||
|
||||
showBBIcons(CInfoViewerBB::ICON_TUNER, icon_name);
|
||||
}
|
||||
|
||||
|
@@ -273,10 +273,7 @@
|
||||
#define NEUTRINO_ICON_SCRAMBLED2_GREY "ca2_gray"
|
||||
#define NEUTRINO_ICON_SUBT "subt"
|
||||
#define NEUTRINO_ICON_SUBT_GREY "subt_gray"
|
||||
#define NEUTRINO_ICON_TUNER_1 "tuner_1"
|
||||
#define NEUTRINO_ICON_TUNER_2 "tuner_2"
|
||||
#define NEUTRINO_ICON_TUNER_3 "tuner_3"
|
||||
#define NEUTRINO_ICON_TUNER_4 "tuner_4"
|
||||
#define NEUTRINO_ICON_TUNER "tuner"
|
||||
#define NEUTRINO_ICON_VTXT "vtxt"
|
||||
#define NEUTRINO_ICON_VTXT_GREY "vtxt_gray"
|
||||
|
||||
|
Reference in New Issue
Block a user