93 Commits

Author SHA1 Message Date
Lysec 68ed7b397a fix(theming): wallpaper color generation with apostrophes in path 2026-03-22 14:44:21 +01:00
Lysec 3b2fa6a428 feat(emacs): add posthook to refresh the theme
Issue: #2229
2026-03-20 12:50:17 +01:00
Lemmy 5f2020151c fix(templating): run user templates even when no build-int templates are enabled 2026-03-07 09:18:13 -05:00
Lemmy 6ce879866b templates: terminal: foot-predefined: replace [colors] with [colors-dark] 2026-03-05 10:03:16 -05:00
Lysec f040c81530 move predefined colorschemes from python to separate template 2026-03-04 15:38:50 +01:00
Lemmy bceeb98941 template-processor: pass wallpaper path for predefined color schemes too. 2026-02-22 22:00:36 -05:00
Lysec 8aa32c7a6d Switch sh -lc to sh -c in the whole codebase 2026-02-03 19:55:08 +01:00
Lemmy cdf0a5dd44 template-processor: dysfunctional scheme 2026-02-02 21:18:22 -05:00
Lemmy feb65ad8b2 autofmt 2026-02-02 20:27:42 -05:00
tuibird b295933995 more robust method that targets all versions of the extension. this fixes an edge case where someone might have installed an extension locally instead of using the store. 2026-02-03 14:01:13 +13:00
Lysec 58a91b312e Revert "Theme: add faithful (alternative)"
This reverts commit 9da1cbd080.
2026-02-03 01:14:28 +01:00
Lysec 9da1cbd080 Theme: add faithful (alternative) 2026-02-03 01:01:37 +01:00
Lysec 4352b65da6 Theming/Emacs: adjust search logic (fixes #1543) 2026-01-25 11:20:49 +01:00
Lemmy 3b2c0bd1ef template-processor: simplified error reporting, only report template syntax errors from python. cleaned up template-apply.sh to only output errors. 2026-01-24 21:16:32 -05:00
Lemmy d1c5d13225 discord: dual templating - Midnight or Material Design, up to the user to select his favorite in the discord client. 2026-01-24 14:02:18 -05:00
Lemmy 564894232e comments 2026-01-24 08:56:24 -05:00
Lemmy 57f8f196f3 template-processor: reporting warnings via toast - ignoring post_hook warning/errors are they come from outside. 2026-01-24 08:47:53 -05:00
Lemmy 360b23f7d4 template-processor: ability to select the scheme straight from the wallpaper selector 2026-01-22 14:25:05 -05:00
Lemmy 2112a5b191 template-processor: added M3-Monochrome 2026-01-22 13:39:57 -05:00
Lemmy 7bdcbe515a template-processor: added a new "muted" scheme, very desaturated and monotonal 2026-01-22 13:04:19 -05:00
Lemmy 090fe26056 template-processor: refactor predefined colorscheme terminal theming by removing all the static files and using dynamic generation instead. 2026-01-21 20:00:19 -05:00
Lemmy 0e93a2fe0d templating: cleaned terminals templating - avoid code duplication and centralize theme apply and hotreload 2026-01-21 19:19:23 -05:00
Lemmy 25a1186b4d template-processor: properly fill the "default" colors in addition to "light" and "dark" 2026-01-21 19:07:05 -05:00
Lemmy 3c0b2369a8 template-processor: always process light/dark/default so everything is available 2026-01-21 14:34:11 -05:00
Lemmy 355110a862 hooks: if using wallpapers colors, delay the wallpaper hook until the colors are generated. 2026-01-21 10:46:22 -05:00
Lemmy 0ecb7f0bb0 template-processor: properly stop generate process 2026-01-21 09:18:39 -05:00
Lemmy d330eab6b9 template-processor: added M3-Content scheme 2026-01-21 09:14:01 -05:00
Lemmy dd6f041f32 template-processor: debug logs 2026-01-21 08:44:18 -05:00
Lemmy 37322d6bb2 template-processor: debounce + auto-kill process so everything stays snappy 2026-01-20 23:07:11 -05:00
Lemmy e967030cec template-processor: added new "faithful" mode + fixed contrast of container vs on_container 2026-01-20 18:27:57 -05:00
Lemmy cb3f6eb743 template-processor: implemented tonal-sport, fruit-salad, rainbow 2026-01-20 16:54:10 -05:00
Lemmy fe9febf495 template-processor: default to material design 2026-01-20 09:33:25 -05:00
Lemmy 575c15f270 python: project structure 2026-01-20 09:15:15 -05:00
Lemmy 25ddbbf48a i18n: cleanup - removing some more ending period on toast + cleaned some old matugen stuff 2026-01-19 16:56:35 -05:00
Lemmy ed5078adf3 template-processor: removed the old 'sed' implementation and moved it to python 2026-01-19 10:10:53 -05:00
Lemmy 414bf23701 template-processor: added error reporting + basic filters: grayscale, invert, set_alpha, set_lightness, set_hue, set_saturation, lighten, darken, saturate, desaturate. 2026-01-19 09:03:23 -05:00
Lysec 32bf799726 rename --normal to --default, add templateProcessorScript 2026-01-18 17:46:45 +01:00
Lemmy 027f932b5e Generator: new UI and i18n 2026-01-18 11:34:29 -05:00
Lysec 1410269dfd cleanup 2026-01-18 16:24:57 +01:00
Lysec 561a3e665d cleanup 2026-01-18 16:10:56 +01:00
Lysec c70cf13dec theming: update names 2026-01-18 16:06:06 +01:00
Lysec 5436918e06 colors: cleanup 2026-01-18 15:52:23 +01:00
Lysec 3c99656888 colors: initial commit 2026-01-18 14:53:03 +01:00
Lemmy 2b9d8d9418 TemplateProcessor: added support for HSL 2026-01-16 12:22:34 -05:00
Ly-sec 45f160137f TemplateSubTab: visual overhaul 2026-01-14 16:20:57 +01:00
Lemmy 6eb1579e1b autofmt 2026-01-12 21:15:27 -05:00
Ly-sec d06f9084ba revert #1351 - broke Qt theming 2026-01-13 02:43:38 +01:00
WojciechSulocki-Gif e341b66a3f feat: Auto-apply KDE color schemes with plasma-apply-colorscheme
This commit adds automatic KDE Plasma color scheme application when
KColorScheme template is enabled, resolving issue #1339.

## Changes

### 1. Dual color scheme generation (KDE bug workaround)
- Generate both `noctalia.colors` and `noctalia-alt.colors`
- KDE's plasma-apply-colorscheme requires different name to trigger refresh
- Alternate between schemes to ensure KDE detects changes

### 2. Automatic application via postProcess hook
- Added postProcess function to kcolorscheme in TemplateRegistry
- Detects if plasma-apply-colorscheme is available
- Maintains state in `~/.cache/noctalia/kde-colorscheme-state`
- Alternates between "noctalia" and "noctalia-alt" on each update

### 3. Fixed postProcess execution for multiple outputs
- Modified TemplateProcessor to call postProcess only once
- Previously called for every output file (causing duplicate executions)
- Now calls only on the last output (idx === outputs.length - 1)

## How it works

When colors change (wallpaper or predefined scheme):
1. Noctalia generates both color scheme files
2. Checks current state (main/alt)
3. Applies opposite scheme via plasma-apply-colorscheme
4. Updates state file for next iteration
5. KDE apps automatically update their colors

## Testing

Tested on:
- Hyprland with KDE apps (dolphin, kate, konsole)
- Both Material You (wallpaper colors) and predefined schemes
- Verified color scheme switches automatically without user intervention

Resolves: #1339

🤖 Generated with Claude Code
2026-01-12 01:09:31 +01:00
Lemmy 27233c628a Matugen: add --continue-on-error if matugen 3.1.0+ is detected 2026-01-10 14:21:49 -05:00
Lemmy 5251a22d20 Bash vs sh: phase 1 - uniformization to sh. Always use sh, use "-lc" for all user defined commands 2026-01-09 15:01:17 -05:00