[maemo-commits] [maemo-commits] r12776 - in projects/haf/trunk/hildon-theme-layout-4: . rc

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jul 23 11:31:27 EEST 2007
Author: mdk
Date: 2007-07-23 11:31:25 +0300 (Mon, 23 Jul 2007)
New Revision: 12776

Modified:
   projects/haf/trunk/hildon-theme-layout-4/ChangeLog
   projects/haf/trunk/hildon-theme-layout-4/rc/ossomediaplayer.rc
Log:
Adding rc support for mediaplayer background images. Fixes: NB#62182. 


Modified: projects/haf/trunk/hildon-theme-layout-4/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-theme-layout-4/ChangeLog	2007-07-18 17:24:26 UTC (rev 12775)
+++ projects/haf/trunk/hildon-theme-layout-4/ChangeLog	2007-07-23 08:31:25 UTC (rev 12776)
@@ -1,3 +1,8 @@
+2007-07-23  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
+
+	* rc/ossomediaplayer.rc: Adding rc support for mediaplayer background
+	images. Fixes: NB#62182. 
+
 2007-07-12  Tommi Komulainen  <tommi.komulainen at nokia.com>
 
 	* rc/gtktoolbar.rc: Use correct style properties and state/shadow

Modified: projects/haf/trunk/hildon-theme-layout-4/rc/ossomediaplayer.rc
===================================================================
--- projects/haf/trunk/hildon-theme-layout-4/rc/ossomediaplayer.rc	2007-07-18 17:24:26 UTC (rev 12775)
+++ projects/haf/trunk/hildon-theme-layout-4/rc/ossomediaplayer.rc	2007-07-23 08:31:25 UTC (rev 12776)
@@ -320,3 +320,20 @@
 }
 
 widget "MediaPlayerTabLibrary" style "mediaplayer-tab-left"
+
+# Background images for media player, as application installer,
+# because this behavior is not directly supported by the theming
+# machinery, the media player renders the background image itself.
+# What pixmap to render is specified here, but in a hackish
+# way: the render code will look into bg_pixmap[ACTIVE] and
+# bg_pixmap[NORMAL] to find the pixmap, and will render it always,
+# independent of the state of the widget.
+
+style "osso-mplayer-now-playing-current-clip-mode"
+{
+    bg_pixmap[ACTIVE] = "../images/qgn_plat_application_media_player_image.png"
+    bg_pixmap[NORMAL] = "../images/qgn_plat_application_media_player_image_webradio.png"
+}
+
+widget "*.MediaPlayerCurrentClipDetailsImage" style "osso-mplayer-now-playing-current-clip-mode"
+ 


More information about the maemo-commits mailing list