Theme

From OpenLP
Jump to: navigation, search

Openlp 2.x Theme Schema

For openlp 2.x a new xml schema will be used to store the themes.

 <?xml version="1.0" encoding="iso-8859-1"?>
 <theme version="1.0">
   <name>BlankStyle</name>

Only one background section should be present

   <background type="solid" >
      <color>#000000</color>
   </background>

Or

   <background type="gradient" >
      <startColor>#000000</startColor>
      <endColor>#000000</endColor>
      <direction>vertical</direction>
   </background>

Or

   <background type="image" >
      <filename>fred.bmp</filename>
      <borderColor>#000000</borderColor>
   </background>

Multiple font sections allow for more controlled formatting.

   <font type="main">
      <name>Arial</name>
      <color>#000000</color>
      <size>30</size>
      <location overide="False"/> 
      <shadow color=#000000>True</shadow>
      <outline color=#000000>False</outline>
   </font>
   <font type="footer">
      <name>Arial</name>
      <color>#000000</Color>
      <size>30</size>
      <shadow color=#000000>True</shadow>
      <outline color=#000000>False</outline>
      <location overide="True" x="10" y="10" width="100" height="150"/>
   </font>

Slide display information

   <display>
       <horizontalAlign>0</horizontalAlign>
       <verticalAlign>0</verticalAlign>
       <wrapStyle>0</wrapStyle>
   </display>
 </theme>