aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elabel.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-01-09 16:29:34 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-01-09 16:29:34 +0000
commitba02fb4aced5868d047a5bffbd2ed87583daee4d (patch)
treebcfea66b1f7fd2212539a99abc074de1424ac9a0 /lib/gui/elabel.cpp
parent2494509cd031727d92c6556089c99711d16d8af9 (diff)
downloadenigma2-ba02fb4aced5868d047a5bffbd2ed87583daee4d.tar.gz
enigma2-ba02fb4aced5868d047a5bffbd2ed87583daee4d.zip
- add more python stuff
- fix some gui/gdi - add eslider - improve windowstyle
Diffstat (limited to 'lib/gui/elabel.cpp')
-rw-r--r--lib/gui/elabel.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/gui/elabel.cpp b/lib/gui/elabel.cpp
index f133b661..f9dcf31b 100644
--- a/lib/gui/elabel.cpp
+++ b/lib/gui/elabel.cpp
@@ -11,15 +11,18 @@ int eLabel::event(int event, void *data, void *data2)
{
case evtPaint:
{
+ ePtr<eWindowStyle> style;
+
+ getStyle(style);
+
+ eWidget::event(event, data, data2);
+
gPainter &painter = *(gPainter*)data2;
- ePtr<gFont> fnt = new gFont("Arial", 70);
+ ePtr<gFont> fnt = new gFont("Arial", 14);
painter.setFont(fnt);
- painter.setBackgroundColor(gColor(0x10));
- painter.setForegroundColor(gColor(0x1f));
- painter.clear();
- painter.setBackgroundColor(gColor(0x1f));
- painter.setForegroundColor(gColor(0x10));
+ style->setForegroundStyle(painter);
painter.renderText(eRect(0, 0, size().width(), size().height()), m_text);
+
return 0;
}
case evtChangedText: