]> git.sesse.net Git - vlc/commitdiff
skins2: add support for art in default skin
authorErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 19:19:46 +0000 (21:19 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 20:13:15 +0000 (22:13 +0200)
This patch implements art display in the default skin, in the same way as it is
implemented in qt4 interface, namely if no video is available, art is displayed in lieu of video.

share/skins2/default/theme.xml

index dff40b12780ed5de377b69bf1b1eb639c4f4a031..58835f489194de159e967cbcdfdbca52e74bd3df 100644 (file)
         <Button up="sysbuttons.png.aot1.normal" down="sysbuttons.png.aot1.down" over="sysbuttons.png.aot1.hover" action="vlc.onTop()" id="main.normal.titlebar.aot1" x="26" y="3" visible="vlc.isOnTop" tooltiptext="Disable Always On Top"/>
       </Panel>
       <Panel id="main.normal.component" y="24" width="0" height="0" rightbottom="rightbottom">
-        <Image id="main.normal.component.background" image="main.png.background" resize="scale" rightbottom="rightbottom"/>
-        <Video id="main.normal.component.video" width="500" height="224" rightbottom="rightbottom"/>
+        <Image id="main.normal.component.background" image="main.png.background" resize="scale" rightbottom="rightbottom" />
+        <Image id="main.normal.component.art" image="main.png.background" resize="scale2" rightbottom="rightbottom" art="true"/>
+        <Video id="main.normal.component.video" width="500" height="224" rightbottom="rightbottom" visible="vlc.hasVout"/>
       </Panel>
       <Panel id="main.normal.controls" y="248" width="0" height="0" lefttop="leftbottom" rightbottom="rightbottom">
         <Image id="main.normal.controls.bg.left" image="main.png.controls.bg.left" action="move"/>