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

Styles editor export CSS settings #1931

Open
elig0n opened this issue Dec 22, 2024 · 2 comments
Open

Styles editor export CSS settings #1931

elig0n opened this issue Dec 22, 2024 · 2 comments

Comments

@elig0n
Copy link

elig0n commented Dec 22, 2024

Description

I often find my self wanting to save my latest CSS modifications to a file, i.e. to restore certain settings after further modifications.
I suggest adding such export button near the existing "Reset CSS variables" button that will either offer to save to file or copy to clipboard.
This way all users can backup & restore their style customizations, support theming and such.
Hopefully in the future it would be implemented to also read & load them back to the interface but for now I guess they could be put in the Custom CSS text box.

@emvaized
Copy link
Contributor

You can use the existing "Export addon data" button at the bottom of Sidebery settings

2024-12-24_18-58
2024-12-24_18-58_1

@JohnVKRDam
Copy link

JohnVKRDam commented Jan 4, 2025

Yes, indeed. I agree.
Just use the Export Addon Data option. It will create a json file which you can then use or archive.

Creating an option for each and every very specific use case cannot be the intention of this Sidebery extension. If the developer would do that, this extension would become SO bloated and impossible to maintain, that it may well stop to function properly....

In this case you already have TWO options:

  1. Use the Export Addon Data option as described by @emvaized
  2. Or just simply select the CSS Style code in the right pane of the Styles Editor, and do a Copy/Paste in Notepad, or your favorite text editing application.

As for option 2:
As I'm sure you are aware, each and every change you make to the styles in the left pane, is recorded as a CSS style line in the right pane.

  • Set an option to ON and a new line appears in the right pane.
  • Set it to OFF and the line disappears.
  • Change a value, and the right pane is immediately updated.

You have all the required CSS information right there, at your fingertips.

...

So, you can simply Copy/Paste the CSS Code and have a backup. Isn't that a good (enough) option? I really don't see how adding another export button in a remote part of the extension would be justified, or even needed?

I have made EXTENSIVE modifications to my Sidebery implementation, and I just use the Export Addon Data option AND Copy/Paste to Notepad, and save that, to backup and archive my settings & CSS Code. It works great 👍

...

The below is just a "my opinion" and something I think we ALL should think about when posting requests:

Seeing how insanely MANY requests are open right now, I don't think this request stands any chance whatsoever... The developer must be going out of his mind at the moment, with all the requests and reports he has to deal with....

Writing even just this reply with suggestions and an explanation took me 15 minutes in total (including gathering information, option names, etc. etc.). Just imagine how much time the developer will need to administer, answer, and code ALL those hundreds of posted requests.......... 😱

I would suggest please closing this request and use the already provided methods, and help save the developer @mbnuqw from going insane 😉

I hope you understand what I am trying to convey. There's absolutely no ill intent from my side, just trying to help 👍👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants