Skip to content

Conversation

@BreakingBread0
Copy link

Quick update to the firefox documentation. Theming uses userChrome.css as far as I can see but the respective config entry in about:config was not enabled by default on my setup.


@stylix-automation stylix-automation bot added the topic: modules /modules/ subsystem label Oct 8, 2025
@0xda157 0xda157 changed the title modules/firefox: Update firefox documentation irefox: Update firefox documentation Oct 8, 2025
@0xda157 0xda157 changed the title irefox: Update firefox documentation firefox: Update firefox documentation Oct 8, 2025
@0xda157 0xda157 changed the title firefox: Update firefox documentation firefox: update documentation Oct 8, 2025
Copy link
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theming uses userChrome.css as far as I can see but the respective config entry in about:config was not enabled by default on my setup.

We are intentionally following Home Manager's programs.${firefox}.profiles.${profile}.extensions.force behavior:

However, I agree that this is non-untuitive since most Stylix applications apply theming to the best of their ability.

Either we mention programs.${firefox}.profiles.${profile}.extensions.force in the documentation, or we explicitly interface this option to make its existence more obvious.

CC: @Flameopathic, @awwpotato, @brckd, @danth

@danth
Copy link
Member

danth commented Oct 10, 2025

the respective config entry in about:config was not enabled by default on my setup

We do try to enable the setting automatically when it's needed:

settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"svg.context-properties.content.enabled" = true;
};

Note that this is only when Firefox GNOME Theme is selected, as in other cases we don't use userChrome.css. I believe that by default the theming for Firefox actually comes from our GTK module.

@danth
Copy link
Member

danth commented Oct 10, 2025

We are intentionally following Home Manager's programs.${firefox}.profiles.${profile}.extensions.force behavior

Home Manager should produce an error when force is required:

https://github.com/nix-community/home-manager/blob/c7f4214faca2f196c551b767c12a70bfa0614510/modules/programs/firefox/mkFirefoxModule.nix#L823-L830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: modules /modules/ subsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants