mirror of
https://github.com/imputnet/helium.git
synced 2026-11-17 18:59:24 +00:00
[FR]: Command to regenerate helium theme based on the wallpaper #1403
Labels
No labels
approved
approved
approved
bad ux
bot:review
bot:size
bug
bug
bug
can't replicate
can't replicate
can't replicate
confirmed
confirmed
confirmed
external
feat
feat
feat
good first issue
good first issue
good first issue
invalid
invalid
invalid
needs more info
needs more info
needs more info
pending
pending
pending
upstream
upstream
upstream
WAI
WAI
WAI
wontfix
wontfix
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
imputnet/helium#1403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently we can change the new tab wallpaper of the browser by replacing the background file, but the same cannot be done for the color theme.
Who's implementing?
The problem
Currently, users can personalise their New Tab Page background by programmatically replacing the local background image file. However, there is no equivalent functionality to customise the colour theme via local configuration or a command.
This limitation restricts the ability to create cohesive "ricing" or custom browser themes that align with specific wallpaper aesthetics, forcing users to settle for default colour schemes that often clash with personalised backgrounds or re-choose the wallpaper after opening the browser to generate the theme.
Possible solutions
Option 1: Add a command that can be called in the bash script to regenerate the color theme based on the updated background image
Option 2: Move the theming to a seperate
theme.css/theme.jsonfile so that the file can be regenerated using matugen or pywalOption 3: Regenerate the theme colours every time a new browser session is launched.
Additional context
No response
Hi, do we have any update on this?
Hi, do we have any update on this?
Hi, do we have any update on this?
Hi, do we have any update on this?
You can already achieve live theme switching using
pywal,matugen, or a bash script by combining Chromium's nativeBrowserThemeColorpolicy with the--refresh-platform-policyflag (which works out of the box in Helium without needing to restart the browser).Here is how to set it up on Linux:
1. Create the managed policies directory
Helium reads Chromium's standard policy path. Create the directory and give your user write permissions so your wallpaper script doesn't require
sudoevery time:2. Generate the policy JSON via template
Create a template for
pywal(e.g.,~/.config/wal/templates/helium-policy.json) ormatugenthat outputs a single seed color:(Chromium/Helium uses this hex code as a Material You seed color to automatically generate the full UI palette).
3. Update and live-reload from your script
Whenever your wallpaper changes, copy the generated JSON into the policies folder and trigger a live refresh on the running Helium instance:
The
--no-startup-windowflag ensures it signals the active window to reload the new colors immediately without opening a new browser window.