Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all features toggleable #33

Open
Tanvir1337x opened this issue Jul 12, 2024 · 0 comments
Open

Make all features toggleable #33

Tanvir1337x opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Tanvir1337x
Copy link
Owner

Tanvir1337x commented Jul 12, 2024

Description

Enhance the user chrome (*css) configuration by making all features toggleable using the @supports -moz-bool-pref directive. This will allow users to easily enable or disable specific customizations without modifying the CSS directly.

Example Implementation

Here's an example of how a feature can be made toggleable:

For Older versions (@supports -moz-bool-pref("PREFERENCE_NAME")):

@supports -moz-bool-pref("userchrome.horizontal-tab-bar-hidden.enabled") {
  #TabsToolbar {
    display: none !important;
  }
}

For Firefox 120+ (@media (-moz-bool-pref: "PREFERENCE_NAME")):

@media (-moz-bool-pref: "userchrome.horizontal-tab-bar-hidden.enabled") {
  #TabsToolbar {
    display: none !important;
  }
}

(not -moz-bool-pref("userchrome.horizontal-tab-bar-hidden.enabled")) is valid as well.

Benefits

  • Reduces/Removes the need for users to edit the CSS file directly.
  • Makes the configuration more modular and maintainable.

References

@Tanvir1337x Tanvir1337x added the enhancement New feature or request label Jul 12, 2024
@Tanvir1337x Tanvir1337x pinned this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant