openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.31k stars 299 forks source link

[Feature Request] Ability to show/hide options in the config popup menu. #792

Open DrakeTDL opened 4 years ago

DrakeTDL commented 4 years ago

I think being about to show/hide config options based on another option would great. For example, a user sets x to false then y and z shows up. This (IMO) would be most beneficial for those who only want to show more options when a certain option is ticked or something. I'm not sure of the technicalities but I imagine that this would apply to checkboxes and selects

eight04 commented 4 years ago

Do you have a working usercss having a lot of options which can be used as the live example?

tophf commented 3 years ago

The idea is good. It should be implemented first as usercss @var syntax though.

HrBingR commented 1 year ago

I second this feature request!

Example

In the example attached, I'd love to only show the litely or darkly color scheme options depending on whether the user has chosen litely or darkly in the base theme selection. Would make it a lot less confusing for users, and would make sure I only need a single user.css, rather than having to fragment based on light/dark.

While the extension does allow the user to choose between light and dark, and I could make use of that, I instead include the option here as a way to advise the user that the theme also needs to be changed in their Lemmy settings to display correctly.