<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=Lua_theme_API</id>
	<title>Lua theme API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=Lua_theme_API"/>
	<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=Lua_theme_API&amp;action=history"/>
	<updated>2026-08-06T11:38:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.simtx.net/index.php?title=Lua_theme_API&amp;diff=571&amp;oldid=prev</id>
		<title>Clanker: Add and update user documentation for Lua extensions and the catalog</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=Lua_theme_API&amp;diff=571&amp;oldid=prev"/>
		<updated>2026-08-06T09:12:27Z</updated>

		<summary type="html">&lt;p&gt;Add and update user documentation for Lua extensions and the catalog&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;Lua theme&amp;#039;&amp;#039;&amp;#039; supplies colors and optional font settings for the SimTX Transmitter. Installed themes appear in the &amp;#039;&amp;#039;&amp;#039;Theme&amp;#039;&amp;#039;&amp;#039; list in the application footer.&lt;br /&gt;
&lt;br /&gt;
== Declaration ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
simtx.theme {&lt;br /&gt;
  name = &amp;quot;Midnight&amp;quot;,&lt;br /&gt;
  description = &amp;quot;A high-contrast dark theme.&amp;quot;,&lt;br /&gt;
  colors = {&lt;br /&gt;
    background  = &amp;quot;#10161f&amp;quot;,&lt;br /&gt;
    surface     = &amp;quot;#17212d&amp;quot;,&lt;br /&gt;
    surface_alt = &amp;quot;#202c3a&amp;quot;,&lt;br /&gt;
    foreground  = &amp;quot;#e8f0fa&amp;quot;,&lt;br /&gt;
    muted       = &amp;quot;#91a0b3&amp;quot;,&lt;br /&gt;
    accent      = &amp;quot;#4ac8ff&amp;quot;,&lt;br /&gt;
    selection   = &amp;quot;#24506a&amp;quot;,&lt;br /&gt;
    border      = &amp;quot;#34475b&amp;quot;,&lt;br /&gt;
    success     = &amp;quot;#58d68d&amp;quot;,&lt;br /&gt;
    warning     = &amp;quot;#f2c33c&amp;quot;,&lt;br /&gt;
    danger      = &amp;quot;#ff665c&amp;quot;,&lt;br /&gt;
    meter       = &amp;quot;#4ac8ff&amp;quot;,&lt;br /&gt;
  },&lt;br /&gt;
  font = {family = &amp;quot;SansSerif&amp;quot;, size = 13},&lt;br /&gt;
  ui = {&lt;br /&gt;
    [&amp;quot;Table.gridColor&amp;quot;] = &amp;quot;#233246&amp;quot;,&lt;br /&gt;
    [&amp;quot;ToolTip.background&amp;quot;] = &amp;quot;#202c3a&amp;quot;,&lt;br /&gt;
  },&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Required !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || Yes || Name shown in the Theme list.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; || No || User-facing description.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colors&amp;lt;/code&amp;gt; || Yes || Table of semantic color roles.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;font&amp;lt;/code&amp;gt; || No || Font family string, or a table containing &amp;lt;code&amp;gt;family&amp;lt;/code&amp;gt; and non-negative &amp;lt;code&amp;gt;size&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ui&amp;lt;/code&amp;gt; || No || Table of Swing UI property names to colors for details not covered by semantic roles.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Supported semantic roles are &amp;lt;code&amp;gt;background&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;surface&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;surface_alt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;foreground&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;muted&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;accent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;selection&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;success&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;warning&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;danger&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;meter&amp;lt;/code&amp;gt;. Omitted roles retain a suitable application default.&lt;br /&gt;
&lt;br /&gt;
Colors may use &amp;lt;code&amp;gt;#RGB&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;#RRGGBB&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;#AARRGGBB&amp;lt;/code&amp;gt;. The names &amp;lt;code&amp;gt;black&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;white&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;red&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;green&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;blue&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;gray&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;grey&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;orange&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;yellow&amp;lt;/code&amp;gt; are also accepted.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;ui&amp;lt;/code&amp;gt; table is optional and is applied after the semantic roles. It is intended for established Swing UI property names. A theme should remain usable when this table is omitted.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua extensions]]&lt;/div&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
</feed>