summaryrefslogtreecommitdiff
path: root/displaychannelview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-02 09:50:49 +0100
committerlouis <louis.braun@gmx.de>2013-11-02 09:50:49 +0100
commitf886f49ba90a8673d7e63550a7f87247fd633ffa (patch)
tree564f506dced48cf4f51c05de64f101acfcdc9fd8 /displaychannelview.c
parentc0d3345a116af273f4fb6f94c351566371a0dd40 (diff)
downloadskin-nopacity-f886f49ba90a8673d7e63550a7f87247fd633ffa.tar.gz
skin-nopacity-f886f49ba90a8673d7e63550a7f87247fd633ffa.tar.bz2
Added configurable transparency for channeldisplay background
Diffstat (limited to 'displaychannelview.c')
-rw-r--r--displaychannelview.c6
1 files changed, 5 insertions, 1 deletions
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);