summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-01-27 14:07:53 +0100
committerlouis <louis.braun@gmx.de>2013-01-27 14:07:53 +0100
commite50f2f798c90b3ff4c9e5389d29556b38cd7deb7 (patch)
treede0587e94a18b7926e97175e5d99c1df97837abd
parent1e92b7d3d32235c557147283399bfd7c9cfb903b (diff)
downloadvdr-plugin-tvguide-e50f2f798c90b3ff4c9e5389d29556b38cd7deb7.tar.gz
vdr-plugin-tvguide-e50f2f798c90b3ff4c9e5389d29556b38cd7deb7.tar.bz2
Removed transparency of header in detailed EPG View
-rw-r--r--detailview.c9
-rw-r--r--detailview.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/detailview.c b/detailview.c
index e70b3fa..e867315 100644
--- a/detailview.c
+++ b/detailview.c
@@ -17,6 +17,7 @@ cDetailView::cDetailView(cEpgGrid *grid) {
cDetailView::~cDetailView(void){
delete header;
osdManager.releasePixmap(headerLogo);
+ osdManager.releasePixmap(headerBack);
osdManager.releasePixmap(content);
osdManager.releasePixmap(scrollBar);
osdManager.releasePixmap(footer);
@@ -40,7 +41,10 @@ void cDetailView::createPixmaps() {
headerLogo = osdManager.requestPixmap(6, cRect(borderWidth, borderWidth, tvguideConfig.osdWidth - 2*borderWidth, headerHeight), cRect::Null, "detailViewHeaderLogo");
headerLogo->Fill(clrTransparent);
headerLogo->SetAlpha(0);
- header->setColor(theme.Color(clrHeader), theme.Color(clrHeaderBlending));
+ headerBack = osdManager.requestPixmap(4, cRect(borderWidth, borderWidth, tvguideConfig.osdWidth - 2*borderWidth, headerHeight), cRect::Null, "detailViewHeaderBack");
+ headerBack->SetAlpha(0);
+ headerBack->Fill(clrBlack);
+ header->setColor(theme.Color(clrHeader), theme.Color(clrHeaderBlending));
content = osdManager.requestPixmap(5, cRect(borderWidth, borderWidth + headerHeight, tvguideConfig.osdWidth - 2*borderWidth - scrollBarWidth, tvguideConfig.osdHeight-2*borderWidth-headerHeight),
cRect(0,0, tvguideConfig.osdWidth - 2*borderWidth - scrollBarWidth, max(heightContent, tvguideConfig.osdHeight-2*borderWidth-headerHeight)));
content->SetAlpha(0);
@@ -51,7 +55,7 @@ void cDetailView::createPixmaps() {
footer = osdManager.requestPixmap(5, cRect(borderWidth, borderWidth + headerHeight + content->ViewPort().Height(), tvguideConfig.osdWidth - 2*borderWidth, 3));
footer->SetAlpha(0);
- footer->Fill(clrWhite);
+ footer->Fill(theme.Color(clrBorder));
}
void cDetailView::drawHeader() {
@@ -176,6 +180,7 @@ void cDetailView::Action(void) {
double t = min(double(Now - Start) / FadeTime, 1.0);
int Alpha = t * ALPHA_OPAQUE;
header->SetAlpha(Alpha);
+ headerBack->SetAlpha(Alpha);
headerLogo->SetAlpha(Alpha);
content->SetAlpha(Alpha);
scrollBar->SetAlpha(Alpha);
diff --git a/detailview.h b/detailview.h
index 79808cb..f8219d5 100644
--- a/detailview.h
+++ b/detailview.h
@@ -10,6 +10,7 @@ private:
cEpgGrid *grid;
cStyledPixmap *header;
cPixmap *headerLogo;
+ cPixmap *headerBack;
cPixmap *content;
cPixmap *scrollBar;
cPixmap *footer;