How protorayn/klipperscreen-theme-creator works
KlipperScreen Theme Creator is a GTK visual editor for configuring theme styles and exporting a KlipperScreen-compatible CSS file. The workflow starts the GTK app, displays a clickable KlipperScreen-style preview, sends selected roles and edited properties through the inspector to the theme model, and applies regenerated preview CSS. Export uses that model to generate theme CSS, which the app writes to the user-selected file. The README also describes adjustable preview resolution and live editing of colors, opacity, borders, and radius. Edges reflect shown callbacks and calls; unsampled implementation details are omitted.
Main entry points: app.py Editor window · property_panel.py Property inspector · main_preview.py Clickable preview · main.py App entry point
Components 9
GTK Editor UI
- App entry point
theme_creator/main.py - Editor window
theme_creator/app.py - Clickable preview
theme_creator/preview/main_preview.py - Property inspector
theme_creator/inspector/property_panel.py
Theme State
- Theme model
theme_creator/model/theme_model.py
CSS Generation
- Editor styling
theme_creator/app_style.py - CSS generator
theme_creator/export/css_generator.py
Other components
- Theme editor user
- Selected CSS file
Connections 15
- Theme editor user → App entry point: starts app
theme_creator/main.py - App entry point → Editor window: creates app
theme_creator/main.py - Editor window → Theme model: creates model
theme_creator/app.py - Editor window → Clickable preview: creates preview
theme_creator/app.py - Editor window → Property inspector: creates inspector
theme_creator/app.py - Clickable preview → Editor window: reports selection
theme_creator/preview/main_preview.py - Property inspector → Editor window: reports edits
theme_creator/inspector/property_panel.py - Property inspector → Editor window: reports resolution
theme_creator/inspector/property_panel.py - Property inspector → Editor window: requests export
theme_creator/inspector/property_panel.py - Editor window → Theme model: updates state
theme_creator/app.py - Editor window → Clickable preview: sets resolution
theme_creator/app.py - Editor window → Editor styling: loads editor CSS
theme_creator/app.py - Editor window → CSS generator: generates preview CSS
theme_creator/app.py - Editor window → CSS generator: generates theme CSS
theme_creator/app.py - Editor window → Selected CSS file: writes CSS
theme_creator/app.py