vertical-tabs-reloaded
vertical-tabs-reloaded copied to clipboard
Custom themes
Users should be able to customize the appearance of the tab sidebar.
In order to prevent people from breaking stuff and blaming either VTR or even Firefox for it, custom themes will build up on the VTR internal templates (e.g. https://github.com/Croydon/vertical-tabs-reloaded/blob/master/data/template/basic/template_example.css).
Users will be able to modify all variables provided by a template via the UI, but not to add (or remove) freely CSS style rules. The worst case scenario would be then that an update of VTR is changing the structure and template variables will be removed or added, alternating the appearance of the tab sidebar without asking the user. For the worst case scenario this seems to be very acceptable.
I don't rule out that customization will become even more liberal with future developments, but this is the first step.
Suggestions welcome for CSS value validation The only thing which I consider as maybe more complex before even starting with that (or looking into that) is the validation of the users input for each and every single variable. For instance, if the variable declars a height only valid CSS values for heights should be accepted, if it's invalid users should get instantly a visual warning.
If somebody knows a good standalone JavaScript library or another trick to do that please let me know. Writing something on my own seems to be way over the top.
Custom themes were first suggested in #24 and later in many more comments and reviews on AMO.
Look forward to this feature being added, thanks.
How about allowing adding plain custom style in advanced settings?
Just tell advanced users take a look at the themes ,open moz-extension://[ID]/vtr.html and press F12