luci-theme-bootstrap: add explicit dark/light mode selection
authorJo-Philipp Wich <jo@mein.io>
Sun, 7 Nov 2021 10:04:52 +0000 (11:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Nov 2021 10:06:33 +0000 (11:06 +0100)
commited86f03a9f7c2f58a9111f925bb81303596b394b
treef4f3f9f08c36bb9ce1ec8e50ca371dbf58dcd20a
parentcd6ad0a242a580fe006e7813c1904fe334299f9a
luci-theme-bootstrap: add explicit dark/light mode selection

Register two further "virtual" themes called BootstrapDark and
BootstrapLight which force dark and light mode respectively.

The actual Bootstrap theme itself will continue to auto-select
dark mode preference based on OS/Browser preference settings.

Fixes: #5492
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap-dark [new symlink]
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap-light [new symlink]
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap-dark [new symlink]
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap-light [new symlink]
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap