teohhanhui / openwrt-luci-bootstrap-dark

A userstyle to make OpenWrt LuCI's (default) Bootstrap theme dark
Apache License 2.0
8 stars 2 forks source link

How Do I Install This to OpenWRT Luci? #1

Open bxbrenden opened 2 years ago

bxbrenden commented 2 years ago

This may sound like a stupid question, but there aren't a lot of words explaining the installation instructions,so here goes:

What does Install directly with Stylus actually mean in practice? When I click the supplied link, it just loads plaintext markup language which is presumably written in Stylus.

But how do I actually place that onto my OpenWRT router / the Luci GUI so that it persistently loads it instead of its own stylesheets? Sorry if I missed something, but searching didn't yield many results.

teohhanhui commented 2 years ago

It's meant to be used with the Stylus extension. This is client-side only, i.e. style override in your web browser. It's not for server-side use, i.e. modification on your OpenWRT router.

teohhanhui commented 2 years ago

If you're looking for a server-side solution, you'd have to use the master branch of OpenWRT, e.g. OpenWRT snapshots. This code has already been upstreamed: https://github.com/openwrt/luci/pull/5366 (and further improved since then)

EDIT: Apparently it was backported to the openwrt-21.02 branch, so I expect it should be available in the next release (21.02.2)?