diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 9 | ||||
-rw-r--r-- | config.h | 3 | ||||
-rw-r--r-- | designer.c | 1 | ||||
-rw-r--r-- | displaymessage.c | 2 | ||||
-rw-r--r-- | dtd/functions.dtd | 4 | ||||
-rw-r--r-- | libcore/imageloader.c | 38 | ||||
-rw-r--r-- | libcore/imageloader.h | 1 | ||||
-rw-r--r-- | libtemplate/templatefunction.c | 18 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaychannel.xml | 4 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaymenuchannels.xml | 4 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaymenudetailepg.xml | 4 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaymenumain.xml | 2 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaymenuschedules.xml | 6 | ||||
-rw-r--r-- | skins/metrixhd/xmlfiles/displaymenutimers.xml | 2 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaychannel.xml | 4 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaymenuchannels.xml | 4 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaymenudetailepg.xml | 4 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaymenumain.xml | 2 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaymenuschedules.xml | 6 | ||||
-rw-r--r-- | skins/nopacity/xmlfiles/displaymenutimers.xml | 2 |
21 files changed, 26 insertions, 95 deletions
@@ -87,3 +87,4 @@ Version 0.0.5 - added {newmails} Token in displaychannel statusinfo, mailbox plugin has to be installed - clearing displaymessage if it is called without text +- changed handling of channel logos, width and height are now mandatory @@ -11,9 +11,6 @@ cDesignerConfig::cDesignerConfig() { limitLogoCache = 1; numLogosMax = 200; debugImageLoading = 0; - //default logo width and height - logoWidth = 268; - logoHeight = 200; replaceDecPoint = false; //settings for rerun display rerunAmount = 10; @@ -86,12 +83,6 @@ bool cDesignerConfig::GetSkin(string &skin) { return true; } -void cDesignerConfig::SetChannelLogoSize(void) { - cImageLoader imgLoader; - imgLoader.DeterminateChannelLogoSize(logoWidth, logoHeight); - dsyslog("skindesigner: using %dx%d px as original channel logo size", logoWidth, logoHeight); -} - void cDesignerConfig::CheckDecimalPoint(void) { struct lconv *pLocInfo; pLocInfo = localeconv(); @@ -36,7 +36,6 @@ public: void ReadSkins(void); void InitSkinIterator(void) { skinIterator = skins.begin(); }; bool GetSkin(string &skin); - void SetChannelLogoSize(void); void CheckDecimalPoint(void); void SetSkin(void); bool SkinChanged(void); @@ -55,8 +54,6 @@ public: int limitLogoCache; int numLogosMax; int debugImageLoading; - int logoWidth; - int logoHeight; bool replaceDecPoint; char decPoint; vector<string> skins; @@ -177,7 +177,6 @@ void cSkinDesigner::Init(void) { } dsyslog("skindesigner: initializing skin %s", skin.c_str()); - config.SetChannelLogoSize(); config.CheckDecimalPoint(); if (fontManager) diff --git a/displaymessage.c b/displaymessage.c index 9d2ebed..ad3d47f 100644 --- a/displaymessage.c +++ b/displaymessage.c @@ -25,8 +25,8 @@ cSDDisplayMessage::~cSDDisplayMessage() { void cSDDisplayMessage::SetMessage(eMessageType Type, const char *Text) { if (!doOutput) return; + messageView->ClearMessage(); if (!Text) { - messageView->ClearMessage(); return; } messageView->DrawMessage(Type, Text); diff --git a/dtd/functions.dtd b/dtd/functions.dtd index 424378f..27ba561 100644 --- a/dtd/functions.dtd +++ b/dtd/functions.dtd @@ -133,8 +133,8 @@ <!ATTLIST drawimage x CDATA #IMPLIED y CDATA #IMPLIED - width CDATA #IMPLIED - height CDATA #IMPLIED + width CDATA #REQUIRED + height CDATA #REQUIRED align (left|center|right) #IMPLIED valign (top|center|bottom) #IMPLIED imagetype (channellogo|seplogo|skinpart|menuicon|icon|image) #REQUIRED diff --git a/libcore/imageloader.c b/libcore/imageloader.c index 139e2d0..ea7d983 100644 --- a/libcore/imageloader.c +++ b/libcore/imageloader.c @@ -16,7 +16,6 @@ cImageLoader::~cImageLoader() { cImage *cImageLoader::CreateImage(int width, int height, bool preserveAspect) { if (!importer) return NULL; - int w, h; importer->GetImageSize(w, h); if (width == 0) @@ -92,43 +91,6 @@ bool cImageLoader::LoadImage(std::string Path, std::string FileName, std::string return LoadImage(imgFile.c_str()); } -void cImageLoader::DeterminateChannelLogoSize(int &width, int &height) { - cString logoPath; - cString logoPathSkin = cString::sprintf("%s%s/themes/%s/logos/", *config.skinPath, Setup.OSDSkin, Setup.OSDTheme); - - if (FolderExists(*logoPathSkin)) - logoPath = logoPathSkin; - else - logoPath = config.logoPath; - - DIR *folder = NULL; - struct dirent *file; - folder = opendir(logoPath); - if (!folder) - return; - - while ( (file = readdir(folder)) ) { - if (endswith(file->d_name, ".png") || - endswith(file->d_name, ".svg")) { - std::stringstream filePath; - filePath << *logoPath << file->d_name; - if (LoadImage(filePath.str().c_str())) { - int logoWidth = 0; - int logoHeight = 0; - importer->GetImageSize(logoWidth, logoHeight); - if (logoWidth > 0 && logoHeight > 0) { - width = logoWidth; - height = logoHeight; - delete(importer); - importer = NULL; - return; - } - } - } - } -} - - // // Image importer for PNG // diff --git a/libcore/imageloader.h b/libcore/imageloader.h index a06f433..64eea07 100644 --- a/libcore/imageloader.h +++ b/libcore/imageloader.h @@ -76,7 +76,6 @@ public: cImage *CreateImage(int width, int height, bool preserveAspect = true); bool LoadImage(std::string Path, std::string FileName, std::string Extension); bool LoadImage(const char *fullpath); - void DeterminateChannelLogoSize(int &width, int &height); }; #endif //__NOPACITY_IMAGELOADER_H diff --git a/libtemplate/templatefunction.c b/libtemplate/templatefunction.c index 2a6e5a3..8465961 100644 --- a/libtemplate/templatefunction.c +++ b/libtemplate/templatefunction.c @@ -305,24 +305,6 @@ bool cTemplateFunction::ReCalculateParameters(void) { void cTemplateFunction::CompleteParameters(void) {
switch (type) {
case ftDrawImage: {
- //Calculate img size
- if ((GetNumericParameter(ptImageType) == itChannelLogo)||(GetNumericParameter(ptImageType) == itSepLogo)) {
- int logoWidthOrig = config.logoWidth;
- int logoHeightOrig = config.logoHeight;
- int logoWidth = GetNumericParameter(ptWidth);
- int logoHeight = GetNumericParameter(ptHeight);
- if (logoWidth <= 0 && logoHeight <= 0)
- break;
- if (logoWidth <= 0 && logoHeightOrig > 0) {
- logoWidth = logoHeight * logoWidthOrig / logoHeightOrig;
- numericParameters.erase(ptWidth);
- numericParameters.insert(pair<eParamType,int>(ptWidth, logoWidth));
- } else if (logoHeight <= 0 && logoWidthOrig > 0) {
- logoHeight = logoWidth * logoHeightOrig / logoWidthOrig;
- numericParameters.erase(ptHeight);
- numericParameters.insert(pair<eParamType,int>(ptHeight, logoHeight));
- }
- }
CalculateAlign(GetNumericParameter(ptWidth), GetNumericParameter(ptHeight));
if (imgPath.size() == 0) {
imgPath = GetParameter(ptPath);
diff --git a/skins/metrixhd/xmlfiles/displaychannel.xml b/skins/metrixhd/xmlfiles/displaychannel.xml index e4a0409..4effefb 100644 --- a/skins/metrixhd/xmlfiles/displaychannel.xml +++ b/skins/metrixhd/xmlfiles/displaychannel.xml @@ -31,7 +31,7 @@ <drawtext condition="{switching}" x="0" y="-10" font="{light}" fontsize="99%" color="{clrWhite}" text="{channelnumber}: {channelname}" /> </area> <area x="0" y="80%" width="20%" height="20%" layer="3"> - <drawimage cache="true" condition="{channellogoexists}" imagetype="channellogo" path="{channelid}" height="98%" align="center" valign="center" /> + <drawimage cache="true" condition="{channellogoexists}" imagetype="channellogo" path="{channelid}" width="98%" height="98%" align="center" valign="center" /> <drawtext condition="not{channellogoexists}" x="5" valign="center" font="{light}" fontsize="40%" color="{clrWhite}" text="{channelnumber}: {channelname}" /> </area> </channelinfo> @@ -150,7 +150,7 @@ --> <channelgroup> <area x="0" y="80%" width="20%" height="20%" layer="2"> - <drawimage condition="{sepexists}" imagetype="seplogo" path="{seppath}" height="98%" align="center" valign="center" /> + <drawimage condition="{sepexists}" imagetype="seplogo" path="{seppath}" width="98%" height="98%" align="center" valign="center" /> <drawimage condition="not{sepexists}" imagetype="icon" path="ico_channelsep" align="center" valign="center" width="{areaheight}*0.8" height="{areaheight}*0.8"/> </area> <area x="22%" y="85%" width="76%" height="10%" layer="2"> diff --git a/skins/metrixhd/xmlfiles/displaymenuchannels.xml b/skins/metrixhd/xmlfiles/displaymenuchannels.xml index baeae4b..3e6f771 100644 --- a/skins/metrixhd/xmlfiles/displaymenuchannels.xml +++ b/skins/metrixhd/xmlfiles/displaymenuchannels.xml @@ -28,7 +28,7 @@ <fill condition="{separator}" color="{clrSemiTransBlack}" /> </area> <area condition="not{separator}" x="1%" width="6%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="100%" valign="center" /> </area> <areascroll condition="not{separator}" scrollelement="menutext" mode="forthandback" orientation="horizontal" delay="1000" scrollspeed="medium" x="7%" width="52%" layer="3"> <drawtext name="menutext" x="20" valign="center" font="{light}" fontsize="95%" color="{clrWhite}" text="{number} {name} - {sourcedescription}, Transp. {transponder}" /> @@ -84,7 +84,7 @@ --> <currentelement delay="500" fadetime="0"> <area x="63%" y="0" width="36%" height="85%" layer="2"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" y="0" width="30%" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" y="0" width="30%" height="10%" /> <drawtext name="channame" align="right" y="{height(logo)}/2 - {height(channame)}/2" width="65%" font="{semibold}" fontsize="10%" color="{clrWhite}" text="{name}" /> <!-- now --> <drawtext name="now" x="2%" y="{height(logo)}" width="96%" font="{semibold}" fontsize="8%" color="{clrWhite}" text="Now: {presenteventtitle}" /> diff --git a/skins/metrixhd/xmlfiles/displaymenudetailepg.xml b/skins/metrixhd/xmlfiles/displaymenudetailepg.xml index a66ba86..39bd991 100644 --- a/skins/metrixhd/xmlfiles/displaymenudetailepg.xml +++ b/skins/metrixhd/xmlfiles/displaymenudetailepg.xml @@ -119,7 +119,7 @@ --> <detailheader> <area x="1%" y="0" width="98%" height="20%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" height="80%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="15%" height="80%" valign="center" /> <drawimage condition="{isseries}++{banneravailable}++not{epgpicavailable}" imagetype="image" path="{bannerpath}" x="{areawidth} - {areawidth}/3 - 10" valign="center" width="{areawidth}/3" height="{areawidth}/3 * {bannerheight} / {bannerwidth}"/> <drawimage condition="{ismovie}++{posteravailable}++not{epgpicavailable}" imagetype="image" path="{posterpath}" x="{areawidth} - {areaheight}*8/10" valign="center" width="{areaheight}*8 / 10 * {posterheight} / {posterwidth}" height="{areaheight}*8 / 10"/> <drawimage condition="{epgpicavailable}" imagetype="image" path="{epgpicpath}" x="{areawidth} - {areaheight}*8/10 * 174 / 130" valign="center" width="{areaheight}*8/10 * 174 / 130" height="{areaheight}*8 / 10"/> @@ -284,7 +284,7 @@ <tab condition="{hasreruns}" name="{tr(reruns)}" x="2%" y="20%" width="94%" height="65%" layer="2" scrollheight="{areaheight}/4"> <drawtext align="center" y="0" name="title" font="{light}" fontsize="10%" color="{clrWhite}" text="{tr(rerunsof)} '{title}'" /> <loop name="reruns" x="0" y="{height(title)} + 10" width="{areawidth}" orientation="vertical"> - <drawimage name="logo" condition="{reruns[channellogoexists]}" imagetype="channellogo" path="{reruns[channelid]}" x="0" height="10%" /> + <drawimage name="logo" condition="{reruns[channellogoexists]}" imagetype="channellogo" path="{reruns[channelid]}" x="0" width="10%" height="10%" /> <drawtext name="channelname" condition="not{reruns[channellogoexists]}" x="-5" font="{light}" fontsize="10%" color="{clrWhite}" text="{reruns[channelname]}" /> <drawtext condition="{reruns[channellogoexists]}" x="{width(logo)}+20" y="-5" width="{areawidth} - {width(logo)} - 20" font="{light}" fontsize="8%" color="{clrWhite}" text="{reruns[day]} {reruns[date]} {reruns[start]} - {reruns[stop]}: {reruns[title]} {reruns[shorttext]}" /> <drawtext condition="not{reruns[channellogoexists]}" x="{width(channelname)}+20" y="-5" width="{areawidth} - {width(logo)} - 20" font="{light}" fontsize="8%" color="{clrWhite}" text="{reruns[day]} {reruns[date]} {reruns[start]} - {reruns[stop]}: {reruns[title]} {reruns[shorttext]}" /> diff --git a/skins/metrixhd/xmlfiles/displaymenumain.xml b/skins/metrixhd/xmlfiles/displaymenumain.xml index 818f054..a13c94b 100644 --- a/skins/metrixhd/xmlfiles/displaymenumain.xml +++ b/skins/metrixhd/xmlfiles/displaymenumain.xml @@ -159,7 +159,7 @@ <area x="{areawidth}/8" y="75%" width="{areawidth}*0.875" height="25%" layer="2"> <loop name="timers" x="0" y="0" orientation="horizontal" columnwidth="{areawidth}/7" rowheight="{areaheight}" overflow="cut"> <drawrectangle condition="{timers[recording]}" x="0" y="0" width="{columnwidth}-5" height="{rowheight}" color="{clrRed}" /> - <drawimage cache="true" name="logo" imagetype="channellogo" path="{timers[channelid]}" height="40%" align="center" y="10" /> + <drawimage cache="true" name="logo" imagetype="channellogo" path="{timers[channelid]}" width="{columnwidth}-15" height="40%" align="center" y="10" /> <drawtextbox x="5" y="{height(logo)} + 10" width="{columnwidth}-10" align="center" maxlines="2" font="{light}" fontsize="15%" color="{clrWhite}" text="{timers[title]}" /> <drawtext align="center" y="75%" font="{light}" fontsize="20%" color="{clrWhite}" text="{timers[datetime]}" /> </loop> diff --git a/skins/metrixhd/xmlfiles/displaymenuschedules.xml b/skins/metrixhd/xmlfiles/displaymenuschedules.xml index 42169eb..08c6070 100644 --- a/skins/metrixhd/xmlfiles/displaymenuschedules.xml +++ b/skins/metrixhd/xmlfiles/displaymenuschedules.xml @@ -16,7 +16,7 @@ <area x="0" y="0" width="38%" height="10%" layer="2"> <drawimage condition="{whatsonnow}||{whatsonnext}" name="menuicon" imagetype="menuicon" path="{icon}" x="5" valign="center" width="{areaheight}*8/10" height="80%"/> <drawtext condition="{whatsonnow}||{whatsonnext}" x="{width(menuicon)} + 15" valign="center" font="{light}" fontsize="80%" color="{clrWhite}" text="{title}" /> - <drawimage name="logo" condition="{whatson}" imagetype="channellogo" path="{channelid}" x="0" height="100%" align="left" valign="center" /> + <drawimage name="logo" condition="{whatson}" imagetype="channellogo" path="{channelid}" x="0" width="15%" height="100%" align="left" valign="center" /> <drawtext condition="{whatson}" x="{width(logo)}+20" valign="center" font="{light}" fontsize="80%" color="{clrWhite}" text="{channelnumber} - {channelname}" /> </area> </header> @@ -73,7 +73,7 @@ </area> <!-- WHATSONNOW --> <area condition="not{separator}++{whatsonnow}" x="1%" width="6%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="100%" valign="center" /> </area> <area condition="not{separator}++{whatsonnow}++{running}" x="8%" width="7%" layer="3"> <drawrectangle condition="{current}" x="0" y="{areaheight}/3" width="{areawidth}" height="{areaheight}/3" color="{clrWhite}" /> @@ -92,7 +92,7 @@ </areascroll> <!-- WHATSONNEXT --> <area condition="not{separator}++{whatsonnext}" x="1%" width="6%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="100%" valign="center" /> </area> <area condition="not{separator}++{whatsonnext}++{timerfull}" x="53%" width="6%" layer="4"> <drawimage imagetype="icon" path="ico_activetimer" x="{areawidth} - 0.9*{areaheight} - 10" width="0.9*{areaheight}" height="0.9*{areaheight}" valign="center" /> diff --git a/skins/metrixhd/xmlfiles/displaymenutimers.xml b/skins/metrixhd/xmlfiles/displaymenutimers.xml index 8fb5856..607de90 100644 --- a/skins/metrixhd/xmlfiles/displaymenutimers.xml +++ b/skins/metrixhd/xmlfiles/displaymenutimers.xml @@ -68,7 +68,7 @@ --> <currentelement delay="500" fadetime="0"> <area x="63%" y="0" width="36%" height="15%" layer="2"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" y="0" height="100%" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="10" y="0" width="30%" height="100%" /> <drawtext name="channum" x="{width(logo)} + 20" y="{areaheight}/6" width="{areawidth} - {width(logo)} - 30" font="{light}" fontsize="40%" color="{clrWhite}" text="Channel No. {channelnumber}" /> <drawtext name="channame" x="{width(logo)} + 20" y="{areaheight}/3 + {areaheight}/6" width="{areawidth} - {width(logo)} - 30" font="{semibold}" fontsize="40%" color="{clrWhite}" text="{channelname}" /> </area> diff --git a/skins/nopacity/xmlfiles/displaychannel.xml b/skins/nopacity/xmlfiles/displaychannel.xml index 00c5308..0209dd8 100644 --- a/skins/nopacity/xmlfiles/displaychannel.xml +++ b/skins/nopacity/xmlfiles/displaychannel.xml @@ -23,7 +23,7 @@ --> <channelinfo> <area x="2%" y="80%" width="14%" height="18%" layer="2"> - <drawimage cache="true" imagetype="channellogo" path="{channelid}" height="98%" align="center" valign="center"/> + <drawimage cache="true" imagetype="channellogo" path="{channelid}" width="94%" height="94%" align="center" valign="center"/> </area> <area x="18%" y="74%" width="60%" height="6%" layer="2"> <drawtext x="0" valign="center" font="{vdrOsd}" fontsize="95%" color="{clrWhite}" text="{channelnumber} {channelname}" /> @@ -151,7 +151,7 @@ --> <channelgroup> <area x="2%" y="80%" width="14%" height="18%" layer="2"> - <drawimage condition="{sepexists}" imagetype="seplogo" path="{seppath}" height="98%" align="center" valign="center" /> + <drawimage condition="{sepexists}" imagetype="seplogo" path="{seppath}" width="96%" height="96%" align="center" valign="center" /> <drawimage condition="not{sepexists}" imagetype="icon" path="ico_channelsep" align="center" valign="center" width="{areaheight}*0.8" height="{areaheight}*0.8"/> </area> <area x="18%" y="82%" width="80%" height="10%" layer="2"> diff --git a/skins/nopacity/xmlfiles/displaymenuchannels.xml b/skins/nopacity/xmlfiles/displaymenuchannels.xml index 101de5d..b90ece5 100644 --- a/skins/nopacity/xmlfiles/displaymenuchannels.xml +++ b/skins/nopacity/xmlfiles/displaymenuchannels.xml @@ -35,7 +35,7 @@ </area> <!-- channel logo --> <area condition="not{separator}" x="5" width="6%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="100%" valign="center" /> </area> <!-- scrollable channel name --> <areascroll condition="not{separator}++not{current}" scrollelement="channelname" mode="forthandback" orientation="horizontal" delay="1000" scrollspeed="medium" x="7%" width="20%" layer="3"> @@ -104,7 +104,7 @@ </area> <area x="32%" y="2%" width="67%" height="76%" layer="2"> <!-- Logo and Header --> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="1%" y="1%" width="20%" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="1%" y="1%" width="20%" height="15%" /> <drawtext name="channelname" x="23%" y="{height(logo)} * 3 / 10" font="{vdrOsd}" fontsize="10%" color="{clrWhite}" text="{number} - {name}" /> <drawtext x="23%" y="{posy(channelname)} + {height(channelname)}" font="{vdrOsd}" fontsize="7%" color="{clrWhite}" text="{sourcedescription}, {tr(transponder)} {transponder}" /> <!-- NOW --> diff --git a/skins/nopacity/xmlfiles/displaymenudetailepg.xml b/skins/nopacity/xmlfiles/displaymenudetailepg.xml index 2ceb561..32e7c17 100644 --- a/skins/nopacity/xmlfiles/displaymenudetailepg.xml +++ b/skins/nopacity/xmlfiles/displaymenudetailepg.xml @@ -44,7 +44,7 @@ <fill color="{clrTransBlack}" /> </area> <area x="1%" y="10%" width="98%" height="15%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" height="80%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="15%" height="80%" valign="center" /> <drawimage condition="{isseries}++{banneravailable}++not{epgpicavailable}" imagetype="image" path="{bannerpath}" x="{areawidth} - {areawidth}/3 - 10" valign="center" width="{areawidth}/3" height="{areawidth}/3 * {bannerheight} / {bannerwidth}"/> <drawimage condition="{ismovie}++{posteravailable}++not{epgpicavailable}" imagetype="image" path="{posterpath}" x="{areawidth} - {areaheight}*8/10" valign="center" width="{areaheight}*8 / 10 * {posterheight} / {posterwidth}" height="{areaheight}*8 / 10"/> @@ -192,7 +192,7 @@ <tab condition="{hasreruns}" name="{tr(reruns)}" x="2%" y="25%" width="94%" height="60%" layer="2" scrollheight="{areaheight}/4"> <drawtext align="center" y="0" name="title" font="{vdrOsd}" fontsize="10%" color="{clrWhite}" text="{tr(rerunsof)} '{title}'" /> <loop name="reruns" x="0" y="{height(title)} + 10" width="{areawidth}" orientation="vertical"> - <drawimage name="logo" condition="{reruns[channellogoexists]}" imagetype="channellogo" path="{reruns[channelid]}" x="0" height="10%" /> + <drawimage name="logo" condition="{reruns[channellogoexists]}" imagetype="channellogo" path="{reruns[channelid]}" x="0" width="10%" height="10%" /> <drawtext name="channelname" condition="not{reruns[channellogoexists]}" x="-5" font="{vdrOsd}" fontsize="10%" color="{clrWhite}" text="{reruns[channelname]}" /> <drawtext condition="{reruns[channellogoexists]}" x="{width(logo)}+20" y="-5" width="{areawidth} - {width(logo)} - 20" font="{vdrOsd}" fontsize="8%" color="{clrWhite}" text="{reruns[day]} {reruns[date]} {reruns[start]} - {reruns[stop]}: {reruns[title]} {reruns[shorttext]}" /> <drawtext condition="not{reruns[channellogoexists]}" x="{width(channelname)}+20" y="-5" width="{areawidth} - {width(logo)} - 20" font="{vdrOsd}" fontsize="8%" color="{clrWhite}" text="{reruns[day]} {reruns[date]} {reruns[start]} - {reruns[stop]}: {reruns[title]} {reruns[shorttext]}" /> diff --git a/skins/nopacity/xmlfiles/displaymenumain.xml b/skins/nopacity/xmlfiles/displaymenumain.xml index 8ff53e5..b3ea9c0 100644 --- a/skins/nopacity/xmlfiles/displaymenumain.xml +++ b/skins/nopacity/xmlfiles/displaymenumain.xml @@ -38,7 +38,7 @@ <area x="85%" y="28%" width="14%" height="60%" layer="2"> <loop name="timers" x="0" y="0" orientation="vertical" columnwidth="100%" rowheight="{areaheight} / 4" overflow="cut"> <drawrectangle condition="{timers[recording]}" x="0" y="0" width="{columnwidth}" height="{rowheight} * 99 / 100" color="{clrTransRed}" /> - <drawimage cache="true" name="logo" imagetype="channellogo" path="{timers[channelid]}" height="{rowheight} / 2" align="center" y="5" /> + <drawimage cache="true" name="logo" imagetype="channellogo" path="{timers[channelid]}" width="98%" height="{rowheight} / 2" align="center" y="5" /> <drawtextbox x="5" y="{height(logo)}+2" width="{columnwidth}-10" align="center" maxlines="2" font="{vdrOsd}" fontsize="4%" color="{clrWhite}" text="{timers[title]}" /> <drawtext name="datetime" align="center" y="{rowheight}*84/100" font="{vdrOsd}" fontsize="4%" color="{clrWhite}" text="{timers[datetime]}" /> </loop> diff --git a/skins/nopacity/xmlfiles/displaymenuschedules.xml b/skins/nopacity/xmlfiles/displaymenuschedules.xml index eae8e9d..8330e4d 100644 --- a/skins/nopacity/xmlfiles/displaymenuschedules.xml +++ b/skins/nopacity/xmlfiles/displaymenuschedules.xml @@ -13,7 +13,7 @@ <header> <area x="1%" y="0" width="64%" height="10%" layer="2"> <drawtext condition="{whatsonnow}||{whatsonnext}" x="5" valign="center" font="{vdrOsd}" fontsize="80%" color="{clrWhite}" text="{title}" /> - <drawimage name="logo" condition="{whatson}" imagetype="channellogo" path="{channelid}" x="0" height="100%" align="left" valign="center" /> + <drawimage name="logo" condition="{whatson}" imagetype="channellogo" path="{channelid}" x="0" width="15%" height="100%" align="left" valign="center" /> <drawtext condition="{whatson}" x="{width(logo)}+20" valign="center" font="{vdrOsd}" fontsize="50%" color="{clrWhite}" text="{channelnumber} - {channelname}" /> </area> </header> @@ -78,7 +78,7 @@ </areascroll> <!-- element whatsonnow --> <area condition="not{separator}++{whatsonnow}" x="5" width="8%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="94%" valign="center" /> </area> <area condition="not{separator}++{whatsonnow}++not{current}" x="9%" width="18%" layer="3"> <drawtext x="0" y="5%" font="{vdrOsd}" fontsize="40%" color="{clrFontMenuItem}" text="{start} - {stop}" /> @@ -104,7 +104,7 @@ </area> <!-- element whatsonnext --> <area condition="not{separator}++{whatsonnext}" x="5" width="8%" layer="3"> - <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" height="100%" valign="center" /> + <drawimage name="logo" imagetype="channellogo" path="{channelid}" x="0" width="100%" height="94%" valign="center" /> </area> <area condition="not{separator}++{whatsonnext}++not{current}" x="9%" width="18%" layer="3"> <drawtext x="0" y="5%" font="{vdrOsd}" fontsize="40%" color="{clrFontMenuItem}" text="{start} - {stop}" /> diff --git a/skins/nopacity/xmlfiles/displaymenutimers.xml b/skins/nopacity/xmlfiles/displaymenutimers.xml index 38274a3..db53f5d 100644 --- a/skins/nopacity/xmlfiles/displaymenutimers.xml +++ b/skins/nopacity/xmlfiles/displaymenutimers.xml @@ -35,7 +35,7 @@ </area> <!-- channel logo --> <area x="5" width="6%" layer="3"> - <drawimage imagetype="channellogo" path="{channelid}" x="0" height="100%" valign="center" /> + <drawimage imagetype="channellogo" path="{channelid}" x="0" width="100%" height="100%" valign="center" /> </area> <!-- datetime and icons --> <area x="1%" width="28%" layer="3"> |