mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
54338546bc
Add dark mode following the luci-theme-bootstrap pattern: auto-detect via prefers-color-scheme, with forced MaterialDark/MaterialLight variants. Replace ~60 hardcoded colors in cascade.css with CSS variables and override them in a :root[data-darkmode="true"] block. Signed-off-by: Shannon Barber <sgbarber@gmail.com>
27 lines
554 B
Makefile
27 lines
554 B
Makefile
#
|
|
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
|
|
#
|
|
# This is free software, licensed under the Apache License, Version 2.0 .
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
LUCI_TITLE:=Material Theme
|
|
LUCI_DEPENDS:=+luci-base
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
define Package/luci-theme-material/postrm
|
|
#!/bin/sh
|
|
[ -n "$${IPKG_INSTROOT}" ] || {
|
|
uci -q delete luci.themes.Material
|
|
uci -q delete luci.themes.MaterialDark
|
|
uci -q delete luci.themes.MaterialLight
|
|
uci commit luci
|
|
}
|
|
endef
|
|
|
|
include ../../luci.mk
|
|
|
|
# call BuildPackage - OpenWrt buildroot signature
|