fix(chrome): generate browser theme contract from wallpaper colors#102
Open
yukazakiri wants to merge 11 commits intosnowarch:devfrom
Open
fix(chrome): generate browser theme contract from wallpaper colors#102yukazakiri wants to merge 11 commits intosnowarch:devfrom
yukazakiri wants to merge 11 commits intosnowarch:devfrom
Conversation
Add new Zed editor theme target configuration with support for Material You color generation. Refactor theme generator to improve color parsing robustness by validating hex colors, supporting multiple input sources (palette.json, terminal.json, SCSS), and adding fallback default terminal colors. Remove hardcoded syntax color configuration in favor of dynamic color handling.
Add input signature file to cache zed theme generation results and skip regeneration when inputs haven't changed. This improves performance by avoiding unnecessary theme rebuilds when source files remain unchanged. Introduce build_input_signature function that computes a checksum of all input files including color palette, scss, terminal config, template, and theme generator source. Store the signature in a lock file and compare on subsequent runs to determine if regeneration is needed.
Theme/zed new
removed some ugly thingy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Generate a dedicated
chromium.themecontract in iNiR's generated theme directory and use it as the source of truth for Chromium-based browser theming.Motivation
Chrome and Brave could end up with dark window chrome but the wrong browser theme color because the theming script was driven by the wallpaper seed/accent path instead of a browser-specific generated contract. This change makes wallpaper and preset theme generation emit
~/.local/state/quickshell/user/generated/chromium.themeas an RGB triplet, then updates the Chrome theming module to consume that file first and write managed policy withBrowserThemeColorandBrowserColorScheme.compressO-recording_2026-04-01_12.49.03.mp4
Testing
Steps to verify this works:
bash -n scripts/colors/switchwall.shandbash -n scripts/colors/apply-chrome-theme.sh.~/.local/state/quickshell/user/generated/chromium.themeis created with anR,G,Btriplet.Checklist
Related
Closes #
Fixes #