guide

.thm Files (UI Themes)

Rusty .thm files style app chrome colors (window background, panels, accents, and muted text).

What .thm Controls

Search Paths

Rusty searches for theme files in these directories:

  1. Near executable: theme/
  2. Near executable: dist/theme/
  3. Current working directory: theme/
  4. Current working directory: dist/theme/

When a specific theme is selected, Rusty tries that file first, then falls back to mode default (Dark.thm or Light.thm).

Format Rules

Supported Keys

Key Meaning
bgMain app background
fgMain text color
top_bgTop bar and panel background
top_borderPanel and chrome border color
accentSelection/highlight/action color
mutedSecondary text color

Supported Color Formats

# Example .thm
bg=#0a0c0e
fg=#dcdcdc
top_bg=#121418
top_border=#2d323a
accent=#ffb86c
muted=140,150,160

Bundled .thm Themes

Rusty ships these theme file names:

CrimsonDusk.thm, Dark.thm, EmeraldMist.thm, ForestNight.thm, Graphite.thm, Light.thm, MidnightBlue.thm, MonochromeSlate.thm, OceanBreeze.thm, Sandstone.thm, SolarizedDark.thm, SolarizedLight.thm.

Troubleshooting

Reference implementation is in Rusty source: src/app/00_all.rs and THEMES.md.