<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Color_Button_Control</id>
	<title>Color Button Control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Color_Button_Control"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Color_Button_Control&amp;action=history"/>
	<updated>2026-08-27T08:13:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Color_Button_Control&amp;diff=258075&amp;oldid=prev</id>
		<title>Hitcher: Created page with &quot;&lt;section begin=&quot;main content&quot; /&gt; The color button control is used for creating push buttons in Kodi with a box for color preview. You can choose the position, size, and look of the button, as well as choosing what action(s) should be performed when pushed. === Example === &lt;syntaxhighlight lang=&quot;xml&quot; enclose=&quot;div&quot;&gt; &lt;control type=&quot;colorbutton&quot; id=&quot;2&quot;&gt;       &lt;description&gt;My first colorbutton control&lt;/description&gt;       &lt;posx&gt;80&lt;/posx&gt;       &lt;posy&gt;60&lt;/posy&gt;       &lt;width&gt;250&lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Color_Button_Control&amp;diff=258075&amp;oldid=prev"/>
		<updated>2025-06-15T12:44:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;section begin=&amp;quot;main content&amp;quot; /&amp;gt; The color button control is used for creating push buttons in Kodi with a box for color preview. You can choose the position, size, and look of the button, as well as choosing what action(s) should be performed when pushed. === Example === &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt; &amp;lt;control type=&amp;quot;colorbutton&amp;quot; id=&amp;quot;2&amp;quot;&amp;gt;       &amp;lt;description&amp;gt;My first colorbutton control&amp;lt;/description&amp;gt;       &amp;lt;posx&amp;gt;80&amp;lt;/posx&amp;gt;       &amp;lt;posy&amp;gt;60&amp;lt;/posy&amp;gt;       &amp;lt;width&amp;gt;250&amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;section begin=&amp;quot;main content&amp;quot; /&amp;gt;&lt;br /&gt;
The color button control is used for creating push buttons in Kodi with a box for color preview. You can choose the position, size, and look of the button, as well as choosing what action(s) should be performed when pushed.&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;control type=&amp;quot;colorbutton&amp;quot; id=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;description&amp;gt;My first colorbutton control&amp;lt;/description&amp;gt;&lt;br /&gt;
      &amp;lt;posx&amp;gt;80&amp;lt;/posx&amp;gt;&lt;br /&gt;
      &amp;lt;posy&amp;gt;60&amp;lt;/posy&amp;gt;&lt;br /&gt;
      &amp;lt;width&amp;gt;250&amp;lt;/width&amp;gt;&lt;br /&gt;
      &amp;lt;height&amp;gt;200&amp;lt;/height&amp;gt;&lt;br /&gt;
      &amp;lt;visible&amp;gt;true&amp;lt;/visible&amp;gt;&lt;br /&gt;
      &amp;lt;colordiffuse&amp;gt;FFFFFFFF&amp;lt;/colordiffuse&amp;gt;&lt;br /&gt;
      &amp;lt;texturecolormask&amp;gt;mycolormask.png&amp;lt;/texturecolormask&amp;gt;&lt;br /&gt;
      &amp;lt;texturecolordisabledmask&amp;gt;mycolormask.png&amp;lt;/texturecolordisabledmask&amp;gt;&lt;br /&gt;
      &amp;lt;colorbox&amp;gt;FF0533ff&amp;lt;/colorbox&amp;gt;&lt;br /&gt;
      &amp;lt;onclick&amp;gt;ActivateWindow(MyVideos)&amp;lt;/onclick&amp;gt;&lt;br /&gt;
      &amp;lt;label&amp;gt;29&amp;lt;/label&amp;gt;&lt;br /&gt;
      &amp;lt;font&amp;gt;font12&amp;lt;/font&amp;gt;&lt;br /&gt;
      &amp;lt;textcolor&amp;gt;FFFFFFFF&amp;lt;/textcolor&amp;gt;&lt;br /&gt;
      &amp;lt;focusedcolor&amp;gt;FFFFFFFF&amp;lt;/focusedcolor&amp;gt;&lt;br /&gt;
      &amp;lt;disabledcolor&amp;gt;80FFFFFF&amp;lt;/disabledcolor&amp;gt;&lt;br /&gt;
      &amp;lt;align&amp;gt;left&amp;lt;/align&amp;gt;&lt;br /&gt;
      &amp;lt;aligny&amp;gt;center&amp;lt;/aligny&amp;gt;&lt;br /&gt;
      &amp;lt;pulseonselect&amp;gt;false&amp;lt;/pulseonselect&amp;gt;&lt;br /&gt;
      &amp;lt;onfocus&amp;gt;-&amp;lt;/onfocus&amp;gt;&lt;br /&gt;
      &amp;lt;onunfocus&amp;gt;-&amp;lt;/onunfocus&amp;gt;&lt;br /&gt;
      &amp;lt;onup&amp;gt;2&amp;lt;/onup&amp;gt;&lt;br /&gt;
      &amp;lt;ondown&amp;gt;3&amp;lt;/ondown&amp;gt;&lt;br /&gt;
      &amp;lt;onleft&amp;gt;1&amp;lt;/onleft&amp;gt;&lt;br /&gt;
      &amp;lt;onright&amp;gt;1&amp;lt;/onright&amp;gt;&lt;br /&gt;
&amp;lt;/control&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Available tags ===&lt;br /&gt;
In addition to the [[Default_control_tags]] the following tags are available. Note that each tag is &amp;#039;&amp;#039;&amp;#039;lower case&amp;#039;&amp;#039;&amp;#039; only. This is important, as xml tags are case-sensitive.&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! Tag !! Description&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;texturefocus&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the image file which should be displayed when the button has focus. [[Texture Attributes|See here for additional information about textures.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;texturenofocus&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the image file which should be displayed when the button does not have focus.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| The label used on the button. It can be a link into strings.po, or an actual text label.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;font&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Font used for the button label. From fonts.xml.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;textcolor&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Color used for displaying the button label. In AARRGGBB hex format, or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;focusedcolor&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Color used for the button label when the button has in focus. In AARRGGBB hex format or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;disabledcolor&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Color used for the button label if the button is disabled. In AARRGGBB hex format or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;invalidcolor&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Color used for the button if the user entered some invalid value. In AARRGGBB hex format or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;shadowcolor&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the color of the drop shadow on the text, in AARRGGBB format, or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;angle&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| The angle the text should be rendered at, in degrees. A value of 0 is horizontal.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;align&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Label horizontal alignment on the button. Defaults to left, can also be center or right.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;aligny&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Label vertical alignment on the button. Defaults to top, can also be center.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;textoffsetx&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Amount to offset the label from the left (or right) edge of the button when using left or right alignment.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;textoffsety&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Amount to offset the label from the top edge of the button when using top alignment.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;textwidth&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Will truncate any text that&amp;#039;s too long.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;onclick&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the action to perform when the button is pressed. Should be a built in function. [[Built-in_scripting|See here for more information.]] You may have more than one &amp;lt;onclick&amp;gt; tag, and they&amp;#039;ll be executed in sequence.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;onfocus&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the action to perform when the button is focused. Should be a built in function. The action is performed after any focus animations have completed. [[Built-in_scripting|See here for more information.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;onunfocus&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the action to perform when the button loses focus. Should be a built in function.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;wrapmultiline&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Will wrap the label across multiple lines if the label exceeds the control width.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;colorbox&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the color of the preview color box, in AARRGGBB format, or a name from the [[Colour themes|colour theme.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;colorposx&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| X offset of the preview color box.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;colorposy&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Y offset of the preview color box.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;colorwidth&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Width in Pixels of the preview color box.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;colorheight&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Height in Pixels of the preview color box.&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;texturecolormask&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the image mask which should be displayed to see the color preview. [[Texture Attributes|See here for additional information about textures.]]&lt;br /&gt;
|-  &lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;texturecolordisabledmask&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Specifies the image mask which should be displayed when the control is disabled. [[Texture Attributes|See here for additional information about textures.]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section end=&amp;quot;main content&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Development:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Add-on development]]&lt;br /&gt;
* [[Skinning]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Skin development]]&lt;/div&gt;</summary>
		<author><name>Hitcher</name></author>
	</entry>
</feed>