Add Firefox template (userChrome.css / userContent.css) using the Noctalia palette - #82
Open
venus-fire wants to merge 1 commit into
Open
Add Firefox template (userChrome.css / userContent.css) using the Noctalia palette#82venus-fire wants to merge 1 commit into
venus-fire wants to merge 1 commit into
Conversation
…lia palette Themes Firefox's browser chrome and about: pages via native userChrome.css/userContent.css. The apply hook discovers Firefox profiles (regular, XDG-config, Flatpak, Snap), wires up @import lines and enables the required prefs through user.js.
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
firefoxWhat it themes
Firefox's native
userChrome.css/userContent.cssmechanism:firefox-userChrome.css— tab bar, navigation toolbar, URL bar + results,bookmarks bar, sidebar, find bar, menus/panels, context menus, dialogs,
autocomplete popups, download panel, web
selectdropdowns.firefox-userContent.css—about:newtab/home,about:preferencesand itssub-dialogs,
about:addons,about:logins,about:protections,about:config,about:profiles, etc.Dark and light variants are generated; Firefox switches via
prefers-color-scheme.No extension required (the Pywalfox-based
pywalfox/pywalfox-beta4templatesstay available for the extension path).
Testing
Tested as a user template on this machine (Noctalia v5.0.0), theme applied via
noctalia msg templates-apply.~/.config/mozilla/firefox)Screenshots
Hooks
prefs.js(regular
~/.mozilla/firefox,$XDG_CONFIG_HOME/mozilla/firefox, Flatpak,Snap), creates the profile
chrome/dir, adds the Noctalia@importlines touserChrome.css/userContent.css, and enablestoolkit.legacyUserProfileCustomizations.stylesheets,svg.context-properties.content.enabledanddevtools.chrome.enabledthrough the profile's
user.js.Checklist
[catalog.firefox]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.