luci-theme-bootstrap: add explicit dark/light mode selection
authorJo-Philipp Wich <[email protected]>
Sun, 7 Nov 2021 10:04:52 +0000 (11:04 +0100)
committerJo-Philipp Wich <[email protected]>
Sun, 7 Nov 2021 10:07:10 +0000 (11:07 +0100)
commitc14cac4eb9dc37651617ef81cf08568911f7ae7d
treeda9fa18139976621f80a8dea62d0fcac85a68ce4
parent433816e9bd214010f704a47115bc6aa4083dfa30
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 <[email protected]>
(cherry picked from commit ed86f03a9f7c2f58a9111f925bb81303596b394b)
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