infoviewer: rework tuner icons

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2aa3f86330
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-30 (Wed, 30 Dec 2020)

Origin message was:
------------------
- infoviewer: rework tuner icons

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-12-30 23:08:55 +01:00
parent 0bc9d63da7
commit 8f0c99c27f
32 changed files with 40 additions and 25 deletions

View File

@@ -31,9 +31,36 @@ install_DATA = \
res_uhd.png \
subt.png \
subt_gray.png \
tuner_1.png \
tuner_2.png \
tuner_3.png \
tuner_4.png \
vtxt.png \
vtxt_gray.png
install_DATA += \
tuner.png \
tuner_01.png \
tuner_02.png \
tuner_03.png \
tuner_04.png
if ! BOXTYPE_CST
install_DATA += \
tuner_05.png \
tuner_06.png \
tuner_07.png \
tuner_08.png \
tuner_09.png \
tuner_10.png \
tuner_11.png \
tuner_12.png \
tuner_13.png \
tuner_14.png \
tuner_15.png \
tuner_16.png \
tuner_17.png \
tuner_18.png \
tuner_19.png \
tuner_20.png \
tuner_21.png \
tuner_22.png \
tuner_23.png \
tuner_24.png
endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

View File

@@ -210,7 +210,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;
@@ -695,22 +695,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);
}

View File

@@ -275,10 +275,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"