Add Brave template (packed Chromium theme) - #87
Merged
Conversation
Render a Brave/Chromium theme pack from the Noctalia palette and install solid frame/toolbar PNGs so Linux chrome paints.
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.
Template
braveWhat it themes
Brave / Chromium chrome UI via a packed theme (
manifest.json+ generatedsolid PNGs). Noctalia renders the manifest to
$XDG_CACHE_HOME/noctalia/brave-theme/manifest.json. The hook installsframe / toolbar / NTP / tab-background images next to it at
$XDG_DATA_HOME/noctalia/brave-themeso Linux chrome actually paints(color-only packs often leave the frame and toolbar unpainted).
Surfaces: window frame, tabs, toolbar, bookmark text, omnibox, NTP
background / text / link.
Settings checkboxes and Leo accents are not in Chromium's overwriteable
theme table. If Brave is fully quit, the hook also writes
browser.theme.color_schemeandbrowser.theme.user_color(primary seed).It never writes Preferences while Brave is running.
Related but distinct from #84 (
ungoogled-chromium): this targets Brave'sprofile path and installs the PNG fill images.
Testing
Tested as a user template first (Noctalia v5.0.0).
Screenshot below is the current light palette. First-time step: load unpacked
from
brave://extensions→ Developer mode →~/.local/share/noctalia/brave-theme. After that, palette changes update thepack; reload with Developer mode → Update (or restart Brave).
Screenshots
Hooks
Linux paints frame/toolbar/NTP; prints first-time load-unpacked help; if
Brave is stopped, syncs
color_scheme/user_color. Optionalbackup/restoreverbs snapshot Preferences once.Checklist
[catalog.brave]id intemplate.toml.categoryis one of:ai,audio,browser,chat,compositor,editor,gaming,launcher,system,terminal,misc.input_pathnames a file that exists in this directory.