Kodi Community Forum
Adding a thin horizontal (separator) line? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Arctic: Zephyr - Reloaded (https://forum.kodi.tv/forumdisplay.php?fid=221)
+---- Thread: Adding a thin horizontal (separator) line? (/showthread.php?tid=355479)



Adding a thin horizontal (separator) line? - aeneas1 - 2020-06-27

i'm trying to figure out a way to add a thin / light horizontal line in between the large movie title and the info that's underneath it (year | rating | length | end time)...

Image

this code gives me the exact line i want, prob is i can't get it to align properly in between the information mentioned above...

Code:
<control type="image">
<width>100%</width>
<height>5</height>
<texture colordiffuse="main_fg_12">diffuse/progress-bg.png</texture>
<visible>true</visible>
</control>

i tried adding it to this section of the existing code, and played around with $param[pad], height, aligny, etc. but couldn't get it to work:

Code:
<include name="Object_Info_Title">
<param name="label" default="$INFO[ListItem.Label]" />
<param name="font" default="font_title_large" />
<param name="titleheight" default="150" />
<param name="textcolor" default="main_fg_70" />
<definition>
<control type="label">
<top>10</top>
<label>$PARAM[label]</label>
<height>$PARAM[titleheight]</height>
<aligny>top</aligny>
<textcolor>$PARAM[textcolor]</textcolor>
<font>custom00</font>
</control>
</definition>
</include>


EDIT - solved... i ended up adding a blank label below the separator line which allowed me to space the the distance between the line and label below it, probably not the most elegant solution but it seems to work...

Image

Image

Image