Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykuku committed Sep 13, 2020
1 parent 76ab6f2 commit 9207c78
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 6 additions & 6 deletions luasrc/model/cbi/argon-config/configuration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions po/zh-cn/argon-config.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "主题模式"
Expand Down
11 changes: 11 additions & 0 deletions root/usr/share/rpcd/acl.d/luci-app-argon-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"luci-argon-config": {
"description": "Luci Argon theme config ",
"read": {
"uci": [ "argon" ]
},
"write": {
"uci": [ "argon" ]
}
}
}

0 comments on commit 9207c78

Please sign in to comment.