mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- infoviewer_bb: align icons on right side with text above
This commit is contained in:
@@ -157,7 +157,7 @@ void CInfoViewerBB::getBBIconInfo()
|
||||
bbIconMaxH = 0;
|
||||
BBarY = g_InfoViewer->BoxEndY + bottom_bar_offset;
|
||||
BBarFontY = BBarY + InfoHeightY_Info - (InfoHeightY_Info - g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()) / 2; /* center in buttonbar */
|
||||
bbIconMinX = g_InfoViewer->BoxEndX;
|
||||
bbIconMinX = g_InfoViewer->BoxEndX - 8; //should be 10px, but 2px will be reduced for each icon
|
||||
CNeutrinoApp* neutrino = CNeutrinoApp::getInstance();
|
||||
|
||||
for (int i = 0; i < CInfoViewerBB::ICON_MAX; i++) {
|
||||
@@ -680,7 +680,7 @@ void CInfoViewerBB::showBarHdd(int percent)
|
||||
void CInfoViewerBB::paint_ca_icons(int caid, char * icon, int &icon_space_offset)
|
||||
{
|
||||
char buf[20];
|
||||
int endx = g_InfoViewer->BoxEndX -3;
|
||||
int endx = g_InfoViewer->BoxEndX - 10;
|
||||
int py = g_InfoViewer->BoxEndY + 2; /* hand-crafted, should be automatic */
|
||||
int px = 0;
|
||||
static map<int, std::pair<int,const char*> > icon_map;
|
||||
|
Reference in New Issue
Block a user