Commit Graph

8 Commits

Author SHA1 Message Date
Robin Seger bca7b12072 feat: thunar & papirus-folders theming + new schemes (#80)
* feat: GTK app theming system

- Implemented custom.css import for user-managed app themes
- process_app_themes() to dynamically update colors in imported CSS files
- Inline comment markers for color replacement (e.g, /* accent-color */)
- Papirus icon color syncing with weighted hue/saturation algorithm

This allows users to create modular app themes that automatically update when the scheme/wallpaper changes

Example usage:
  .app .element { color: #24BD5C; /* accent-color */ }
  .app .element:hover { background: rgba(36, 189, 92, 0.15); /* accent-color with 15% opacity */ }

* feat: atomic theme changes with locking and mode-specific CSS

- Implemented locking to prevent concurrent theme changes
- Added mode-light/mode-dark CSS markers for dynamic property reordering
- Made terminal writes and Papirus sync non-blocking to prevent hangs
- Only save scheme.json after successful theme application

Fixes race conditions during rapid theme switching and ensures Shell and GTK apps scheme stay in sync.

* theme: added to color mapping for custom theming, new schemes

* theme: quick fixes, cleanup

* theme: include thunar.css as template, with new theming system

* theme: modified GTK theming approach

- Dropped comment targeted theming in favor for existing {{  }} replacement
- [app].css.template file created for customization, bypassing built in default if present
- Handling *.template for added templates to be parsed and added to import

* theme: fixes for  thunar.css

* theme: remove .template file use

* theme: path button color adjustment, non-active hover

* fixes & cleanup

* thunar css fixes

* more css fixes

* format

* fix tab vert spacing

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
2026-02-14 23:23:33 +11:00
2 * r + 2 * t f280b9cbb6 schemes: add dark green scheme
Scheme by @depcustodian with some tweaks
2025-08-17 15:25:12 +10:00
2 * r + 2 * t d3881bfc26 data: add new colours
NOTE: clear your scheme cache when updating to this version
`rm -r ~/.cache/caelestia/schemes`
2025-08-15 16:00:37 +10:00
2 * r + 2 * t 49db0a8258 schemes: fix static themes
add term colours
2025-06-25 00:35:32 +10:00
2 * r + 2 * t bdcea4ee8a scheme: add extended material to fixed schemes 2025-06-24 00:13:38 +10:00
2 * r + 2 * t 6284c74a32 scheme: add list and get subcommands 2025-06-17 12:10:31 +10:00
2 * r + 2 * t 672ef4a2d9 scheme: impl random + fix single schemes 2025-06-12 16:00:43 +10:00
2 * r + 2 * t f663e6f690 internal: refactor for packaging
Package using python-build, python-installer and hatch
2025-06-11 00:41:05 +10:00