Jelmerro / Vieb

Vim Inspired Electron Browser - Vim bindings for the web by design
https://vieb.dev
GNU General Public License v3.0
1.33k stars 65 forks source link

userstyle not applying to local files #554

Open analyticmind opened 7 months ago

analyticmind commented 7 months ago

Checklist

Updated to Vieb 11.0.0 (on Arch Linux), and the local stylesheet for my local html files are no longer being applied correctly. For example, the specified font-family, the background color, and the margins are ignored. Instead, Vieb's default colorscheme takes precedence.

I tried setting userstyle to 'true', userstylescope to 'file', and put file.css in '.config/Vieb/userstyle/' with a minimal :root { --bg: #303446; } to override the default colorscheme, but this has no effect. If instead of 'file', I put 'page' or 'special' in userstylescope, it does appear to have some effect. It's just the 'file' setting that is not responding.

Placing the same minimal css code in a custom colorscheme, i.e. in '.vieb/colors/custom.css', it is applied correctly, but now the special pages are affected as well, which is not what I want.

Any help is appreciated!

Jelmerro commented 7 months ago

Hello, sorry for the late reply. Just wondering if this has worked in previous versions? According to this closed issue it was never working in Electron: https://github.com/electron/electron/issues/34816 for local files. I cannot find a lot of movement on this issue, but as far as I understand it has never been worked at all in any Electron project.