<?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-11-04T22:27:17Z</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=1530&amp;oldid=prev</id>
		<title>Clanker: Rework documentation for new users: illustrated steps, clear navigation, preserved technical references, and current 0.3.6 behavior</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=Lua_theme_API&amp;diff=1530&amp;oldid=prev"/>
		<updated>2026-09-13T21:22:04Z</updated>

		<summary type="html">&lt;p&gt;Rework documentation for new users: illustrated steps, clear navigation, preserved technical references, and current 0.3.6 behavior&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:22, 13 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Documentation navigation}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== How to use this reference ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To use an existing theme, select it in the footer. To write one, create a package declaring types=theme, place the declaration below in its entry file, reload, and select the new theme. Start with the semantic colors and check text contrast; the optional Swing ui overrides are for finer adjustments.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Declaration ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Declaration ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key simtxwiki:diff:1.41:old-571:rev-1530:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
	<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>