diff --git a/Makefile b/Makefile index 1333d89..e15613a 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-argon-config LUCI_PKGARCH:=all -PKG_VERSION:=0.7 +PKG_VERSION:=0.8 PKG_RELEASE:=beta include $(INCLUDE_DIR)/package.mk diff --git a/README.md b/README.md index 644aeb1..5921203 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # luci-app-argon-config Argon Theme Config Plugin + +You can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos. \ No newline at end of file diff --git a/luasrc/model/cbi/argon-config/configuration.lua b/luasrc/model/cbi/argon-config/configuration.lua index 5af5374..c85a46c 100644 --- a/luasrc/model/cbi/argon-config/configuration.lua +++ b/luasrc/model/cbi/argon-config/configuration.lua @@ -49,10 +49,10 @@ local transparency_sets = { } -- [[ 模糊设置 ]]-- -br = SimpleForm('config', translate('Argon Config'), translate('Here you can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos.')) +br = SimpleForm('config', translate('Argon Config'), translate('Here you can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos.[Chrome is recommended]')) br.reset = false br.submit = false -s = br:section(SimpleSection) +s = br:section(SimpleSection) o = s:option(ListValue, 'mode', translate('Theme mode')) o:value('normal', translate('Follow System')) @@ -63,7 +63,7 @@ o.rmempty = false o.description = translate('You can choose Theme color mode here') o = s:option(Value, 'primary', translate('[Light mode] Primary Color'), translate('A HEX Color ; ( Default: #5e72e4 )')) -o.value = primary +o.default = primary o.datatype = ufloat o.rmempty = false @@ -78,12 +78,12 @@ o.datatype = ufloat o.rmempty = false o = s:option(Value, 'blur', translate('[Light mode] Frosted Glass Radius'), translate('Larger value will more blurred ; ( Suggest: clear: 1 or blur preset: 10 )')) -o.value = blur_radius +o.default = blur_radius o.datatype = ufloat o.rmempty = false o = s:option(Value, 'dark_primary', translate('[Dark mode] Primary Color'), translate('A HEX Color ; ( Default: #483d8b )')) -o.value = dark_primary +o.default = dark_primary o.datatype = ufloat o.rmempty = false @@ -96,7 +96,7 @@ o.datatype = ufloat o.rmempty = false o = s:option(Value, 'blur_dark', translate('[Dark mode] Frosted Glass Radius'), translate('Larger value will more blurred ; ( Suggest: clear: 1 or blur preset: 10 )')) -o.value = blur_radius_dark +o.default = blur_radius_dark o.datatype = ufloat o.rmempty = false diff --git a/po/zh-cn/argon-config.po b/po/zh-cn/argon-config.po index 0976e94..6fa5e3b 100644 --- a/po/zh-cn/argon-config.po +++ b/po/zh-cn/argon-config.po @@ -14,8 +14,8 @@ msgstr "" msgid "Argon Config" msgstr "Argon 主题设置" -msgid "Here you can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos." -msgstr "在这里你可以设置argon 主题的登录页面的模糊和透明度,并管理背景图片与视频。" +msgid "Here you can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos.[Chrome is recommended]" +msgstr "在这里你可以设置argon 主题的登录页面的模糊和透明度,并管理背景图片与视频。[建议使用 Chrome]" msgid "Theme mode" msgstr "主题模式" diff --git a/root/usr/share/rpcd/acl.d/luci-app-argon-config.json b/root/usr/share/rpcd/acl.d/luci-app-argon-config.json new file mode 100644 index 0000000..b237aff --- /dev/null +++ b/root/usr/share/rpcd/acl.d/luci-app-argon-config.json @@ -0,0 +1,11 @@ +{ + "luci-argon-config": { + "description": "Luci Argon theme config ", + "read": { + "uci": [ "argon" ] + }, + "write": { + "uci": [ "argon" ] + } + } +} \ No newline at end of file