diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | conf/theme-freestyle.conf | 1 | ||||
-rw-r--r-- | config.c | 1 | ||||
-rw-r--r-- | displaychannelview.c | 6 | ||||
-rw-r--r-- | po/ca_ES.po | 5 | ||||
-rw-r--r-- | po/de_DE.po | 5 | ||||
-rw-r--r-- | po/it_IT.po | 5 | ||||
-rw-r--r-- | po/sk_SK.po | 5 | ||||
-rw-r--r-- | setup.c | 1 |
9 files changed, 25 insertions, 5 deletions
@@ -330,3 +330,4 @@ Version 0.1.4 epg view - Fixed clearing pixmap in displaychannel if no epg is available - Changed display of channel groups in displaychannel +- Added configurable transparency for channeldisplay background diff --git a/conf/theme-freestyle.conf b/conf/theme-freestyle.conf index adb5c9d..55b49aa 100644 --- a/conf/theme-freestyle.conf +++ b/conf/theme-freestyle.conf @@ -1,4 +1,5 @@ displayType = 2 +channelBackgroundTransparency = 20 mainMenuTitleStyle = 1 menuRecFolderSize = 100 menuWidthRecordings = 40 @@ -143,6 +143,7 @@ void cNopacityConfig::LoadDefaults(void) { conf.insert(std::pair<std::string, int>("channelBorderVertical", 15)); conf.insert(std::pair<std::string, int>("channelBorderBottom", 15)); conf.insert(std::pair<std::string, int>("channelFadeTime", 300)); + conf.insert(std::pair<std::string, int>("channelBackgroundTransparency", 0)); conf.insert(std::pair<std::string, int>("logoPosition", 1)); conf.insert(std::pair<std::string, int>("logoWidth", 260)); conf.insert(std::pair<std::string, int>("logoHeight", 200)); diff --git a/displaychannelview.c b/displaychannelview.c index 7492344..bbf8fdb 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -142,11 +142,15 @@ void cNopacityDisplayChannelView::CreatePixmaps(void) { pixmapEPGInfo->SetAlpha(0); pixmapStatusIcons->SetAlpha(0); pixmapSourceInfo->SetAlpha(0); + } else { + int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*255/100; + pixmapBackground->SetAlpha(alphaBack); } } void cNopacityDisplayChannelView::SetAlpha(int alpha) { - pixmapBackground->SetAlpha(alpha); + int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*alpha/100; + pixmapBackground->SetAlpha(alphaBack); pixmapTop->SetAlpha(alpha); pixmapLogo->SetAlpha(alpha); pixmapLogoBackground->SetAlpha(alpha); diff --git a/po/ca_ES.po b/po/ca_ES.po index 6222760..7d5ff4a 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-10-20 11:15+0200\n" +"POT-Creation-Date: 2013-11-02 09:35+0100\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Gabychan <gbonich@gmail.com>\n" "Language-Team: \n" @@ -431,6 +431,9 @@ msgstr "Amplada vores esquerra i dreta" msgid "Bottom Border Height" msgstr "Alçada vora botó" +msgid "Background Transparency in Percent" +msgstr "" + msgid "Background Style" msgstr "Estil del Fons" diff --git a/po/de_DE.po b/po/de_DE.po index 4a6992b..d1c84b2 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-10-20 11:15+0200\n" +"POT-Creation-Date: 2013-11-02 09:35+0100\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -428,6 +428,9 @@ msgstr "Breite des linken und rechten Rands" msgid "Bottom Border Height" msgstr "Höhe des unteren Rands" +msgid "Background Transparency in Percent" +msgstr "Hintergrundtransparenz in %" + msgid "Background Style" msgstr "Hintergrund Stil" diff --git a/po/it_IT.po b/po/it_IT.po index a8330a6..2f60e6c 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-10-20 11:15+0200\n" +"POT-Creation-Date: 2013-11-02 09:35+0100\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: \n" @@ -431,6 +431,9 @@ msgstr "Larghezza bordi sinistro e destro" msgid "Bottom Border Height" msgstr "Altezza bordo inferiore" +msgid "Background Transparency in Percent" +msgstr "" + msgid "Background Style" msgstr "" diff --git a/po/sk_SK.po b/po/sk_SK.po index 89fcffc..52f0814 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-10-20 11:15+0200\n" +"POT-Creation-Date: 2013-11-02 09:35+0100\n" "PO-Revision-Date: 2013-09-16 19:34+0100\n" "Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n" "Language-Team: \n" @@ -428,6 +428,9 @@ msgstr "©írka µavého a pravého okraja" msgid "Bottom Border Height" msgstr "Vý¹ka spodného okraja" +msgid "Background Transparency in Percent" +msgstr "" + msgid "Background Style" msgstr "©týl pozadia" @@ -379,6 +379,7 @@ void cNopacitySetupChannelDisplay::Set(void) { Add(new cMenuEditIntItem(tr("Height of Channel Display (Percent of OSD Height)"), tmpConf->GetValueRef("channelHeight"), 15, 80)); Add(new cMenuEditIntItem(tr("Left & Right Border Width"), tmpConf->GetValueRef("channelBorderVertical"), 0, 300)); Add(new cMenuEditIntItem(tr("Bottom Border Height"), tmpConf->GetValueRef("channelBorderBottom"), 0, 300)); + Add(new cMenuEditIntItem(tr("Background Transparency in Percent"), tmpConf->GetValueRef("channelBackgroundTransparency"), 0, 80)); if (config.GetValue("displayType") != dtGraphical) { Add(new cMenuEditStraItem(tr("Background Style"), tmpConf->GetValueRef("backgroundStyle"), 2, bgStyle)); Add(new cMenuEditBoolItem(tr("Rounded Corners"), tmpConf->GetValueRef("roundedCornersChannel"))); |