]> git.tdb.fi Git - xinema.git/commitdiff
Display a logo graphic on startup
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Oct 2015 23:21:54 +0000 (02:21 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Oct 2015 23:21:54 +0000 (02:21 +0300)
source/xinema.cpp
xinema.png [new file with mode: 0644]
xinema.svg [new file with mode: 0644]

index c7ffa810b6a357ebb146c7a7c5b6bc7407426242..025ec562ad85fff87c414f5b023ceeb6cec62eb8 100644 (file)
@@ -1,4 +1,5 @@
 #include <sigc++/bind.h>
+#include <msp/fs/dir.h>
 #include <msp/time/utils.h>
 #include "xineengine.h"
 #include "xinema.h"
@@ -22,6 +23,7 @@ int Xinema::main()
        display.tick();
 
        engine = new XineEngine(window, &display_mutex);
+       play_file(FS::get_sys_data_dir()/"xinema.png");
 
        Application::main();
 
diff --git a/xinema.png b/xinema.png
new file mode 100644 (file)
index 0000000..ee877c0
Binary files /dev/null and b/xinema.png differ
diff --git a/xinema.svg b/xinema.svg
new file mode 100644 (file)
index 0000000..a271e9f
--- /dev/null
@@ -0,0 +1,309 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   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="1920"
+   height="1080"
+   viewBox="0 0 1920 1080"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.91 r13725"
+   sodipodi:docname="xinema.svg"
+   inkscape:export-filename="/home/tdb/prog/xinema/xinema.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs4">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient4142">
+      <stop
+         style="stop-color:#ff8b10;stop-opacity:1;"
+         offset="0"
+         id="stop4144" />
+      <stop
+         style="stop-color:#ff8b10;stop-opacity:0;"
+         offset="1"
+         id="stop4146" />
+    </linearGradient>
+    <filter
+       inkscape:collect="always"
+       style="color-interpolation-filters:sRGB"
+       id="filter4591"
+       x="-0.0225"
+       width="1.045"
+       y="-0.044999998"
+       height="1.09">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="15.75"
+         id="feGaussianBlur4593" />
+    </filter>
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4142"
+       id="radialGradient4601"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(-2.3333339,6.4337337e-8,0,-0.33333333,3832.5008,803.14954)"
+       cx="1282.5"
+       cy="872.36237"
+       fx="1282.5"
+       fy="872.36237"
+       r="180" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4142"
+       id="radialGradient4605"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.3333331,5.5581776e-7,-7.9402543e-8,0.33333333,-1439.9997,221.57407)"
+       cx="1080"
+       cy="872.36212"
+       fx="1080"
+       fy="872.36212"
+       r="180" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#000000"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="1"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.70710678"
+     inkscape:cx="1032.3109"
+     inkscape:cy="505.94627"
+     inkscape:document-units="px"
+     inkscape:current-layer="g4162"
+     showgrid="true"
+     units="px"
+     inkscape:object-nodes="true"
+     inkscape:snap-smooth-nodes="true"
+     inkscape:window-width="2520"
+     inkscape:window-height="1382"
+     inkscape:window-x="2560"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid4136"
+       units="px"
+       spacingx="15"
+       spacingy="15"
+       empspacing="8"
+       color="#a0a0ff"
+       opacity="0.1254902"
+       empcolor="#a0a0ff"
+       empopacity="0.25098039"
+       visible="true" />
+  </sodipodi:namedview>
+  <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="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,27.637839)">
+    <g
+       id="g4162"
+       style="filter:url(#filter4591)">
+      <rect
+         y="452.36215"
+         x="360"
+         height="120.00002"
+         width="420"
+         id="rect4275"
+         style="opacity:1;fill:url(#radialGradient4601);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+      <rect
+         style="opacity:1;fill:url(#radialGradient4605);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect4253"
+         width="420"
+         height="120.00002"
+         x="1140"
+         y="452.36212" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#rect4253"
+         id="use4263"
+         transform="translate(60,-119.99996)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4263"
+         id="use4265"
+         transform="translate(60,-120.00001)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4265"
+         id="use4267"
+         transform="translate(60,-119.99999)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#rect4253"
+         id="use4269"
+         transform="translate(60,120.00001)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4269"
+         id="use4271"
+         transform="translate(60,120.00002)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4271"
+         id="use4273"
+         transform="translate(60,120.00001)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#rect4275"
+         id="use4279"
+         transform="translate(-60,-120.00004)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4279"
+         id="use4281"
+         transform="translate(-60,-119.99995)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4281"
+         id="use4283"
+         transform="translate(-60,-120)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#rect4275"
+         id="use4285"
+         transform="translate(-60,119.99997)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4285"
+         id="use4287"
+         transform="translate(-60,120.00001)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4287"
+         id="use4289"
+         transform="translate(-60,120)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4265"
+         id="use4291"
+         transform="translate(-480,-1.0996093e-6)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4291"
+         id="use4293"
+         transform="translate(-180,-120.00002)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4283"
+         id="use4295"
+         transform="translate(720,-1.0996093e-6)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4295"
+         id="use4297"
+         transform="translate(-180,119.99995)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4293"
+         id="use4571"
+         transform="translate(0,720.00003)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4295"
+         id="use4573"
+         transform="translate(0,720.00003)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4291"
+         id="use4575"
+         transform="translate(0,480.00003)"
+         width="100%"
+         height="100%" />
+      <use
+         x="0"
+         y="0"
+         xlink:href="#use4297"
+         id="use4577"
+         transform="translate(0,480.00003)"
+         width="100%"
+         height="100%" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path4138"
+         d="M 960,332.36216 720,92.362161 l -360,0 420,419.999999 -420,420 360,0 240,-240 240,240 360,0 -420,-420 420,-419.999999 -360,0 z"
+         style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         sodipodi:nodetypes="ccccccccccccc" />
+    </g>
+  </g>
+</svg>