Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

How to turn off features? #8

Closed
fernandossmm opened this issue Jan 22, 2022 · 2 comments
Closed

How to turn off features? #8

fernandossmm opened this issue Jan 22, 2022 · 2 comments

Comments

@fernandossmm
Copy link

In the README it says features can be turned off modularly, but it doesn't say how. Deleting files maybe? Should probably be explained.

@1280px
Copy link
Owner

1280px commented Jan 22, 2022

No, much easier. Open userChrome.css and you'll see a bunch of @import command with short description:

•••

To disable/enable some part of the style, add/remove "/* " before its @import. Example:
@import "userChromeReplaceEverythingWithPizza.css"                [ ENABLED ]
/* @import "userChromeReplaceEverythingWithPizza.css"             [ DISABLED ]

•••

/* ### ###  Elem Animations & Rounding  ### ### */
@import "userChromeAnimations.css";

/* ### ###    PhotonUI icons (.icon)    ### ### */
@import "userChromeIcons.css";

/* ### ###   Hide Bloaty/Useless Opts   ### ### */
@import "userChromeOptHider.css";

•••

Let's say you want to disable Photon icons. To do this, add /* before @import "userChromeIcons.css", like this:

•••

/* ### ###    PhotonUI icons (.icon)    ### ### */
/* @import "userChromeIcons.css";

•••

Do the opposite to (re-)enable a disabled feature. Hope this helps

UPD: userChromeVariables.css is a necassary component and disabling it will break the rest of the style.
Also I don't recommend disabling userChromeAnimations.css this way because it will (likely) break the auto-hide bookmark bar.

@1280px
Copy link
Owner

1280px commented Jan 24, 2022

I guess the issue is now resolved, also added the link to it in README for clarity

@1280px 1280px closed this as completed Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants