Update 'root/usr/libexec/rpcd/luci.argon'

main
ben 1 year ago
parent 8235ec24fd
commit 4580a80ca1

@ -3,6 +3,21 @@
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
local argon_mode=$(uci get argon.@global[0].mode 2>/dev/null)
local css_path="/www/luci-static/resources/view/dashboard/css/custom.css"
if [[ "$argon_mode" == "dark" ]]; then
echo "Applying dark mode..."
rm -f "$css_path"
cp -f /etc/dark.css "$css_path"
elif [[ "$argon_mode" == "light" ]]; then
echo "Applying light mode..."
rm -f "$css_path"
cp -f /etc/light.css "$css_path"
else
echo "The Argon theme mode is set to normal or is undefined. No changes made."
fi
readonly bg_path="/www/luci-static/argon/background"
readonly tmp_path="/tmp/argon_background.tmp"

Loading…
Cancel
Save