jerrykuku / luci-theme-argon

Argon is a clean and tidy OpenWrt LuCI theme that allows users to customize their login interface with images or videos. It also supports automatic and manual switching between light and dark modes.
Apache License 2.0
4.08k stars 799 forks source link

Theme is not selectable in LuCI on Snapshot r19160-7ea2f3d6e2 #300

Open mdPlusPlus opened 2 years ago

mdPlusPlus commented 2 years ago

To Reproduce Steps to reproduce the behavior:

wget -O luci-theme-argon.ipk https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.2.9/luci-theme-argon_2.2.9-20211016-1_all.ipk
wget -O luci-app-argon.ipk https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.2.9/luci-app-argon-config_0.9-20210309_all.ipk
opkg update
opkg install luci-lib-ipkg luci-compat
opkg install luci-theme-argon.ipk
opkg install luci-app-argon.ipk

Expected behavior Supposed to show up under http://x.x.x.x/cgi-bin/luci/admin/system/system

Screenshot image

Openwrt (please complete the following information):

Solution Manually setting it via SSH:

uci set luci.main.mediaurlbase='/luci-static/argon'
uci commit

But it is still not selectable via LuCI.

green1052 commented 2 years ago

try this

uci set luci.themes.Argon=/luci-static/argon
uci set luci.main.mediaurlbase=/luci-static/argon
uci commit luci
mdPlusPlus commented 2 years ago

uci set luci.themes.Argon=/luci-static/argon

This did the trick. Why is this not part of the package installation?

green1052 commented 2 years ago

https://github.com/jerrykuku/luci-theme-argon/blob/master/root/etc/uci-defaults/30_luci-theme-argon

green1052 commented 2 years ago

its run but sometime not working

mdPlusPlus commented 2 years ago

Does it require quotes?

    set luci.themes.Argon='/luci-static/argon'
    set luci.main.mediaurlbase='/luci-static/argon'

Instead of

    set luci.themes.Argon=/luci-static/argon
    set luci.main.mediaurlbase=/luci-static/argon

When I query my uci for themes, they all come back in quotes:

# uci show luci.themes
luci.themes=internal
luci.themes.Bootstrap='/luci-static/bootstrap'
luci.themes.BootstrapDark='/luci-static/bootstrap-dark'
luci.themes.BootstrapLight='/luci-static/bootstrap-light'
luci.themes.Material='/luci-static/material'
luci.themes.OpenWrt2020='/luci-static/openwrt2020'
luci.themes.OpenWrt='/luci-static/openwrt.org'
luci.themes.Argon='/luci-static/argon'
luci.themes.ATMaterial='/luci-static/atmaterial'
luci.themes.Opentopd='/luci-static/opentopd'
luci.themes.Neobird='/luci-static/neobird'
luci.themes.infinityfreedom='/luci-static/infinityfreedom'