Changed some theme files to higher quality versions. Fixed problem with detail screen...
[jspeed] / src / widgetscreen.cpp
index 4695f06..e78afa2 100644 (file)
@@ -57,6 +57,25 @@ bool WidgetScreen::load(Orientation orientation, QDomNode const& data, Reader* r
     return ret;
 }
 
+bool WidgetScreen::load(QDomNode const& data, Reader* reader)
+{
+    return load(LANDSCAPE, data, reader) && load(PORTRAIT, data, reader);
+}
+
+void WidgetScreen::setColor(Orientation orientation, QString const& color)
+{
+    if(screens_.find(orientation) != screens_.end())
+    {
+        screens_[orientation]->setColor(color);
+    }
+}
+
+void WidgetScreen::setColor(QString const& color)
+{
+    setColor(LANDSCAPE, color);
+    setColor(PORTRAIT, color);
+}
+
 void WidgetScreen::addScreen(ThemeScreen* screen, Orientation orientation)
 {
     if(screens_.find(orientation) != screens_.end())
@@ -116,11 +135,6 @@ void WidgetScreen::flip()
     }
 }
 
-void WidgetScreen::setColor(QString const& color)
-{
-    Q_UNUSED(color);
-}
-
 void WidgetScreen::clear()
 {
     for(QMap<Orientation, ThemeScreen*>::iterator it = screens_.begin();