HOW-TO:Change time and date in Confluence: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{mininav| [[Skinning]] | [[Confluence]] }}
{{mininav| [[Skinning]] | [[Confluence]] }}
This tutorial will show how to hide or '''change time and date'''. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml], [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/Home.xml Home.xml] and [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/includes.xml includes.xml].
__FORCETOC__
This tutorial will show how to hide or '''change time and date'''. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/includes.xml includes.xml], [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml] and [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/Home.xml Home.xml].


=Change the clock (except OSD/Info)=
==Change the clock (except OSD/Info)==
The clock in ''includes.xml'' is used by all windows except the ''OSD'' and ''Info screen''. The clock is defined in ''includes.xml'' and called by other windows using
The clock in ''includes.xml'' is used by all windows except the ''OSD'' and ''Info screen''. The clock is defined in ''includes.xml'' and called by other windows using
''<include>Clock</include>''. [[Skinning_Manual#Includes|Read more about how includes work]].
''<include>Clock</include>''. [[Skinning_Manual#Includes|Read more about how includes work]].
Line 23: Line 24:
           <animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
           <animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
     </control>
     </control>
</include>-->
</include>
</syntaxhighlight>
</syntaxhighlight>


If you want to remove the clock from a ''specific window'', open its XML file and comment out ''<include>Clock</include>''. If you want a customized clock add the ''control'' section from above to where the ''include'' section was and edit it.
If you want to remove the clock from a ''specific window'', open its XML file and comment out ''<include>Clock</include>''. If you want a customized clock add the ''control'' section from above to where the ''include'' section was and edit it.


=Change the clock for OSD/Info=
==Change the clock on the OSD and Info screen==
Open ''VideoFullScreen.xml'' and find the following code, then comment it out or edit it.
Open ''VideoFullScreen.xml'' and find the following code, then comment it out or edit it.
<syntaxhighlight lang="xml"><control type="label" id="1">
<syntaxhighlight lang="xml"><control type="label" id="1">
Line 46: Line 47:
</control></syntaxhighlight>
</control></syntaxhighlight>


=Change the date on the Home screen=
==Change the date on the Home screen==
Open ''Home.xml'' and find the following code, then comment it out or edit it.
Open ''Home.xml'' and find the following code, then comment it out or edit it.
<syntaxhighlight lang="xml"><control type="label">
<syntaxhighlight lang="xml"><control type="label">
Line 63: Line 64:
<animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
<animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
</control></syntaxhighlight>
</control></syntaxhighlight>
[[Category:How-to]]

Revision as of 10:26, 11 October 2015

Home icon grey.png   ▶ Skinning ▶ Confluence ▶ HOW-TO:Change time and date in Confluence

This tutorial will show how to hide or change time and date. This is achieved by editing includes.xml, VideoFullScreen.xml and Home.xml.

Change the clock (except OSD/Info)

The clock in includes.xml is used by all windows except the OSD and Info screen. The clock is defined in includes.xml and called by other windows using <include>Clock</include>. Read more about how includes work.

Open includes.xml and find the following code. Then comment it out which removes the clock completely from Kodi (except OSD/Info) or just edit it.

<include name="Clock"> 
     <control type="label">
          <description>time label</description>
          <right>20</right>
          <top>5</top>
          <width>200</width>
          <height>30</height>
          <align>right</align>
          <aligny>center</aligny>
          <font>font28_title</font>
          <textcolor>white</textcolor>
          <shadowcolor>black</shadowcolor>
          <label>$INFO[System.Time]</label>
          <animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
     </control>
</include>

If you want to remove the clock from a specific window, open its XML file and comment out <include>Clock</include>. If you want a customized clock add the control section from above to where the include section was and edit it.

Change the clock on the OSD and Info screen

Open VideoFullScreen.xml and find the following code, then comment it out or edit it.

<control type="label" id="1">
	<description>Clock label</description>
	<left>450</left>
	<top>5</top>
	<width>800</width>
	<height>25</height>
	<align>right</align>
	<aligny>center</aligny>
	<font>font13</font>
	<textcolor>white</textcolor>
	<shadowcolor>black</shadowcolor>
	<label>$INFO[System.Time]</label>
	<animation effect="slide" start="0,0" end="-30,0" time="0" condition="Window.IsVisible(Mutebug)">conditional</animation>
	<animation effect="slide" start="0,0" end="-70,0" time="0" condition="Window.IsVisible(VideoOSD)">conditional</animation>
</control>

Change the date on the Home screen

Open Home.xml and find the following code, then comment it out or edit it.

<control type="label">
	<description>Date label</description>
	<right>20</right>
	<top>35</top>
	<width>200</width>
	<height>15</height>
	<align>right</align>
	<aligny>center</aligny>
	<font>font10</font>
	<textcolor>white</textcolor>
	<shadowcolor>black</shadowcolor>
	<label>$INFO[System.Date]</label>
	<include>Window_OpenClose_Animation</include>
	<animation effect="slide" start="0,0" end="-40,0" time="75" condition="Window.IsVisible(Mutebug)">conditional</animation>
</control>