Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a76a99a

Browse files
committed
更新[BoxJs TF]: 跟随系统壁纸设置同时支持中英文
1 parent 8aad850 commit a76a99a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

box/chavy.boxjs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,8 +1830,8 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
18301830
setWallpaper() {
18311831
let bgimg = ''
18321832
if (this.box.usercfgs.bgimg === '跟随系统') {
1833-
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == 'dark')
1834-
const haslight = this.bgimgs.find((bgimg) => bgimg.name == 'light')
1833+
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == '暗黑' || bgimg.name == 'dark')
1834+
const haslight = this.bgimgs.find((bgimg) => bgimg.name == '明亮' || bgimg.name == 'light')
18351835
const darkbgimg = hasdark ? hasdark.url : ``
18361836
const lightbgimg = haslight ? haslight.url : ``
18371837
this.isDarkMode ? (bgimg = darkbgimg) : (bgimg = lightbgimg)

box/release/box.release.tf.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.7.53",
5+
"tags": ["beta"],
6+
"author": "@GideonSenku",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"msg": "更新[BoxJs TF]: 跟随系统壁纸设置同时支持中英文",
10+
"notes": [
11+
{
12+
"name": "新增",
13+
"descs": ["跟随系统壁纸设置支持中英文,且优先考虑中文关键字"]
14+
},
15+
{
16+
"name": "说明",
17+
"descs": ["中文关键字为`暗黑`和`明亮`,英文关键字不变"]
18+
}
19+
]
20+
},
321
{
422
"version": "0.7.52",
523
"tags": ["beta"],

0 commit comments

Comments
 (0)