summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-04-05 22:33:05 +0200
committerchriszero <zerov83@gmail.com>2015-04-05 22:33:05 +0200
commitf3d792a866ba602458d5d6c521bafa66e56a5528 (patch)
tree8a0b9c52ca97635cbd682468f629784d0d5b2d6c /skins
parentf7f62b7ff1f12c1563a04560ad87d2f92a3e0af9 (diff)
downloadvdr-plugin-plex-f3d792a866ba602458d5d6c521bafa66e56a5528.tar.gz
vdr-plugin-plex-f3d792a866ba602458d5d6c521bafa66e56a5528.tar.bz2
Fixes some concurency bugs
Diffstat (limited to 'skins')
-rw-r--r--skins/blackhole/themes/default/skinparts/plexplaceholder.svg130
-rw-r--r--skins/blackhole/xmlfiles/plug-plex-root.xml146
2 files changed, 270 insertions, 6 deletions
diff --git a/skins/blackhole/themes/default/skinparts/plexplaceholder.svg b/skins/blackhole/themes/default/skinparts/plexplaceholder.svg
new file mode 100644
index 0000000..747b38d
--- /dev/null
+++ b/skins/blackhole/themes/default/skinparts/plexplaceholder.svg
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="280"
+ height="420"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="Neues Dokument 1">
+ <defs
+ id="defs4">
+ <radialGradient
+ id="radialGradient-1"
+ r="722.62571"
+ fy="388.73516"
+ fx="3496.9578"
+ cy="388.73516"
+ cx="3496.9578"
+ gradientTransform="scale(0.78082978,1.2806889)"
+ gradientUnits="userSpaceOnUse">
+ <stop
+ id="stop3011"
+ offset="0%"
+ stop-color="#F9BE03" />
+ <stop
+ id="stop3013"
+ offset="100%"
+ stop-color="#CC7C19" />
+ </radialGradient>
+ <radialGradient
+ id="radialGradient-1-2"
+ r="722.62573"
+ fy="388.73517"
+ fx="3496.9578"
+ cy="388.73517"
+ cx="3496.9578"
+ gradientTransform="scale(0.78082978,1.2806889)"
+ gradientUnits="userSpaceOnUse">
+ <stop
+ id="stop3011-5"
+ offset="0%"
+ stop-color="#F9BE03" />
+ <stop
+ id="stop3013-8"
+ offset="100%"
+ stop-color="#CC7C19" />
+ </radialGradient>
+ <radialGradient
+ r="722.62573"
+ fy="388.73517"
+ fx="3496.9578"
+ cy="388.73517"
+ cx="3496.9578"
+ gradientTransform="matrix(0.14560777,0,0,0.23882061,2068.5676,-690.71428)"
+ gradientUnits="userSpaceOnUse"
+ id="radialGradient3058"
+ xlink:href="#radialGradient-1-2"
+ inkscape:collect="always" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.8"
+ inkscape:cx="-13.217746"
+ inkscape:cy="194.86305"
+ inkscape:document-units="px"
+ inkscape:current-layer="g3017"
+ showgrid="false"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0"
+ inkscape:window-width="2564"
+ inkscape:window-height="1592"
+ inkscape:window-x="0"
+ inkscape:window-y="34"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Ebene 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-214.28569,-336.64789)">
+ <g
+ sketch:type="MSPage"
+ id="Page-1"
+ transform="translate(-2179.0664,1142.8264)"
+ style="fill:none;stroke:none">
+ <g
+ sketch:type="MSArtboardGroup"
+ id="plex-logo-light">
+ <g
+ id="g3017"
+ sketch:type="MSLayerGroup">
+ <path
+ sketch:type="MSShapeGroup"
+ id="chevron-4"
+ d="m 2476.2091,-690.71428 54.0789,0 59.6729,93.28575 -59.6729,93.28575 -54.0789,0 59.6729,-93.28575 -59.6729,-93.28575"
+ inkscape:connector-curvature="0"
+ style="fill:url(#radialGradient3058);fill-opacity:1;stroke:none" />
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/skins/blackhole/xmlfiles/plug-plex-root.xml b/skins/blackhole/xmlfiles/plug-plex-root.xml
index 4f29e14..b67e9c1 100644
--- a/skins/blackhole/xmlfiles/plug-plex-root.xml
+++ b/skins/blackhole/xmlfiles/plug-plex-root.xml
@@ -10,7 +10,13 @@
-->
<viewelement name="background">
<area x="0" y="0" width="100%" height="100%" layer="1">
- <drawimage imagetype="image" path="{selecteditembackground}" x="0" y="0" width="100%" height="100%" />
+ <drawimage imagetype="skinpart" path="displaymenuback" x="0" y="0" width="100%" height="100%"/>
+ </area>
+ <area x="0" y="0" width="83%" height="8%" layer="2">
+ <drawimage imagetype="skinpart" path="displaymenuheader" x="0" y="0" width="100%" height="100%"/>
+ </area>
+ <area x="74%" y="0" width="26%" height="46%" layer="3">
+ <drawimage imagetype="skinpart" path="displaymenucorner" x="0" y="0" width="100%" height="100%"/>
</area>
</viewelement>
@@ -49,8 +55,10 @@
{current} Currently active element
{title} Name of the element
{year}
- {thumb} Image/Cover
- {art} Fanart
+ {hasthumb}
+ {thumb} Image/Cover
+ {hasart}
+ {art} Fanart
{isdummy} Condition
@@ -71,7 +79,7 @@
{banner}
-->
- <grid name="browser" x="0" y="15%" width="100%" height="85%">
+ <grid name="browser" x="0" y="15%" width="100%" height="75%">
<area layer="3">
<drawtext x="1%" y="2%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="{title}" />
<drawtext condition="{current}" x="1%" y="20%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="Active" />
@@ -79,10 +87,136 @@
<drawtext condition="{isserver}" x="1%" y="60%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="{serverstartpointname}" />
<drawtext condition="{isdirectory}" x="1%" y="40%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="Directory" />
<drawtext condition="{ismovie}" x="1%" y="40%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="Movie" />
- <drawimage condition="{ismovie}" imagetype="image" path="{thumb}" x="10%" y="20%" width="80%" height="80%" />
+
+ <drawimage condition="not{hasthumb}" imagetype="skinpart" path="plexplaceholder" x="10%" y="20%" width="80%" height="80%" />
+ <drawimage condition="{hasthumb}" imagetype="image" path="{thumb}" x="10%" y="20%" width="80%" height="80%" />
+
<drawtext condition="{isepisode}" x="1%" y="40%" width="98%" font="{light}" fontsize="5%" color="{clrWhite}" text="Episode" />
- <drawimage condition="{isepisode}" imagetype="image" path="{grandparentthumb}" x="10%" y="20%" width="80%" height="80%" />
</area>
</grid>
+ <!-- Available Variables Footer:
+ {red1} true if red button is button 1
+ {red2} true if red button is button 2
+ {red3} true if red button is button 3
+ {red4} true if red button is button 4
+ {green1} true if green button is button 1
+ {green2} true if green button is button 2
+ {green3} true if green button is button 3
+ {green4} true if green button is button 4
+ {yellow1} true if yellow button is button 1
+ {yellow2} true if yellow button is button 2
+ {yellow3} true if yellow button is button 3
+ {yellow4} true if yellow button is button 4
+ {blue1} true if blue button is button 1
+ {blue2} true if blue button is button 2
+ {blue3} true if blue button is button 3
+ {blue4} true if blue button is button 4
+ {red} label of red button
+ {green} label of green button
+ {yellow} label of yellow button
+ {blue} label of blue button
+ -->
+ <viewelement name="footer">
+ <area condition="{red1}" x="0" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{red1}" x="0" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
+ </area>
+ <area condition="{green1}" x="0" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{green1}" x="0" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
+ </area>
+ <area condition="{yellow1}" x="0" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{yellow1}" x="0" y="90%" width="25%" height="10%" layer="4">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
+ </area>
+ <area condition="{blue1}" x="0" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{blue1}" x="0" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
+ </area>
+
+ <area condition="{red2}" x="25%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{red2}" x="25%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
+ </area>
+ <area condition="{green2}" x="25%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{green2}" x="25%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
+ </area>
+ <area condition="{yellow2}" x="25%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{yellow2}" x="25%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
+ </area>
+ <area condition="{blue2}" x="25%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{blue2}" x="25%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
+ </area>
+
+ <area condition="{red3}" x="50%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{red3}" x="50%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
+ </area>
+ <area condition="{green3}" x="50%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{green3}" x="50%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
+ </area>
+ <area condition="{yellow3}" x="50%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{yellow3}" x="50%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
+ </area>
+ <area condition="{blue3}" x="50%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{blue3}" x="50%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
+ </area>
+
+ <area condition="{red4}" x="75%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonred" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{red4}" x="75%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{red}" />
+ </area>
+ <area condition="{green4}" x="75%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttongreen" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{green4}" x="60%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{green}" />
+ </area>
+ <area condition="{yellow4}" x="75%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonyellow" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{yellow4}" x="75%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{yellow}" />
+ </area>
+ <area condition="{blue4}" x="75%" y="90%" width="25%" height="10%" layer="2">
+ <drawimage imagetype="skinpart" path="buttonblue" align="center" valign="center" width="90%" height="60%"/>
+ </area>
+ <area condition="{blue4}" x="75%" y="90%" width="25%" height="10%" layer="3">
+ <drawtext align="center" valign="center" font="{regular}" fontsize="50%" color="{clrWhite}" text="{blue}" />
+ </area>
+ </viewelement>
+
</displayplugin>