๐จ Theme Toolkit Architecture & System Specifications
This technical wiki documents the internal design, native backend engines, packaging pipelines, and system integration specs powering Theme Toolkit.
๐๏ธ System Architecture
Theme Toolkit is designed as a modular desktop application featuring a high-performance Rust native core powered by Tauri v2 and a reactive web UI.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tauri v2 Frontend โ
โ (Theme Studio UI, Asset Previewers, Audio Meters) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ IPC Commands
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Rust Core Engine (`src-tauri`) โ
โ โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ โ
โ โ Windows Backend โ macOS Backend โ Linux Backend โ โ
โ โ (.deskthemepack)โ (HEIC / Sounds) โ (XDG / Kvantum) โ โ
โ โโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Asset Processing Pipeline (Audio Normalize, Cursors) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Native Platform Packaging Engines
1. Windows .deskthemepack Compiler
- CAB Generation: Generates Microsoft Diamond Directive Files (
.ddf) instructingmakecab.exeto assemble lossless MSZIP-compressed Cabinet files. - Theme Manifest: Authors valid Win32
[Theme],[Control Panel\Colors],[Control Panel\Cursors], and[AppEvents\Schemes\Apps\.Default]INI configuration blocks. - Line Endings & Encoding: Win32 theme files require UTF-16LE or ANSI encoding with CRLF line endings.
2. macOS Dynamic Wallpaper & Sound Bundle
- Dynamic HEIC Containers: Assembles high-efficiency image containers (
.heic) embedding Appleapple_desktop:solarorapple_desktop:timeproperty lists with azimuth/altitude tables. - Alert Sound Packs: Builds native
.soundpackdirectory bundles compatible with modern macOS system sound preferences.
3. Linux FreeDesktop & XDG Standards
- Sound Theme Spec: Adheres strictly to FreeDesktop Sound Theme Specification v0.8 (
index.themehierarchy with stereo fallback). - X11 / Wayland Cursors: Invokes
xcursorgenwith multi-scale configuration manifests (24px, 32px, 48px, 64px) for HiDPI fractional scaling. - Desktop Backgrounds: Generates GNOME/Cinnamon XML slideshow schemas and KDE Plasma wallpaper packages.
๐ Audio Engineering Standards
System event audio cues processed through Theme Toolkit must adhere to strict audio engineering limits:
- Integrated Loudness: Target -14 LUFS (EBU R128 / ITU-R BS.1770-4).
- True Peak: Maximum -1.0 dBFS to prevent DAC inter-sample clipping across desktop speakers and headphones.
- Sample Rate: 44.1 kHz / 48 kHz 16-bit PCM uncompressed WAV.