HOW-TO:Change time and date in Confluence: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
{{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]. | 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]. | ||
=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]]. | ||
Open ''includes.xml'' and find the following code. | 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. | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<include name="Clock"> | <include name="Clock"> | ||
Line 25: | Line 26: | ||
</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 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= | |||
Open ''VideoFullScreen.xml'' and find the following code, then comment it out or edit it. | |||
<syntaxhighlight lang="xml"><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></syntaxhighlight> | |||
=Change the date on the Home screen= | |||
Open ''Home.xml'' and find the following code, then comment it out or edit it. | |||
<syntaxhighlight lang="xml"><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></syntaxhighlight> |
Revision as of 19:03, 5 September 2015
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 VideoFullScreen.xml, Home.xml and includes.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 for OSD/Info
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>