From 273b9d60502eb5b6c13cc773403fd51d9c7adf75 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 25 Jun 2010 05:14:13 +0000 Subject: Theme Editor: Fixed some compiler warnings and a segfault. Got some basic text rendering working (only with plaintext elements, no font support yet) as well as Viewport background color support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27126 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbscreen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/themeeditor/graphics/rbscreen.h') diff --git a/utils/themeeditor/graphics/rbscreen.h b/utils/themeeditor/graphics/rbscreen.h index f35aef680b..8b5f2f4a16 100644 --- a/utils/themeeditor/graphics/rbscreen.h +++ b/utils/themeeditor/graphics/rbscreen.h @@ -60,10 +60,14 @@ public: RBFont* getFont(int id); void setBackdrop(QString filename); + bool hasBackdrop(){ return backdrop != 0; } void makeCustomUI(QString id); static QColor stringToColor(QString str, QColor fallback); + QColor foreground(){ return fgColor; } + QColor background(){ return bgColor; } + private: int width; -- cgit v1.2.3