minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
7.72k stars 685 forks source link

Custom UI styles #383

Open hiersinddrachen opened 6 years ago

hiersinddrachen commented 6 years ago

As this great little browser is built with HTML/CSS/JS it would be nice if you could add a custom stylesheet in the settings (or just put a CSS file in a specific place like e.g. ~/.config/min/user.css for linux).

PalmerAL commented 6 years ago

Interesting idea, this sounds similar to Firefox's userChrome.css.

Also, depending on what you wanted to customize, we could consider making that a built-in part of the browser. What changes do you want to make?

hiersinddrachen commented 6 years ago

I just want to add some custom styles for colors, maybe adjust some elements' sizes. But I would not make this a built-in part of the browser, because these are rather individual adjustments. (of course it is not a big deal to customize the built-in CSS, but this would be overwritten with every new version so something like Firefox's userChrome.css would be an elegant solution).

tn5421 commented 4 years ago

I know this is something of a necro, but it would be helpful if this could be extended to work the same way userscripts do but for user styles instead.

PalmerAL commented 4 years ago

I think it's probably fine to do this (and it wouldn't be particularly hard), although I do wonder if it would end up causing problems with styles breaking after updates. What kinds of things do you want to change?

Also, it's fairly simple to do this now as long as you're willing to build Min yourself: you can create a stylesheet anywhere, and then put a <link> element to it inside the index.html file.