Skip to content

Commit 85d678a

Browse files
committed
更新[BoxJs]: 底栏颜色会跟随主题色调
1 parent afe13a8 commit 85d678a

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

‎box/release/box.release.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.6.11",
5+
"tags": ["beta"],
6+
"author": "@chavyleung",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"notes": [
10+
{
11+
"name": "优化",
12+
"descs": ["底栏颜色会跟随主题色调"]
13+
}
14+
]
15+
},
316
{
417
"version": "0.6.10",
518
"tags": ["beta"],

‎chavy.box.js‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const $ = new Env('BoxJs')
22
$.domain = '8.8.8.8'
33

4-
$.version = '0.6.10'
4+
$.version = '0.6.11'
55
$.versionType = 'beta'
66
$.KEY_sessions = 'chavy_boxjs_sessions'
77
$.KEY_versions = 'chavy_boxjs_versions'
@@ -1226,7 +1226,7 @@ function printHtml(data, curapp = null, curview = 'app') {
12261226
<v-list-item-content>
12271227
<v-list-item-title>
12281228
{{ sub.name ? sub.name : '匿名订阅' }} ({{ sub.apps.length }})
1229-
<v-chip v-if="sub.isErr === true" color="pink" x-small class="ml-4">格式错误</v-chip>
1229+
<v-chip v-if="sub.isErr === true" color="pink" dark x-small class="ml-4">格式错误</v-chip>
12301230
</v-list-item-title>
12311231
<v-list-item-subtitle>{{ sub.repo ? sub.repo : sub._raw.url }}</v-list-item-subtitle>
12321232
<v-list-item-subtitle color="blue">{{ sub.author ? sub.author : '@anonymous' }}</v-list-item-subtitle>
@@ -1397,7 +1397,7 @@ function printHtml(data, curapp = null, curview = 'app') {
13971397
</v-dialog>
13981398
</v-main>
13991399
<v-expand-transition>
1400-
<v-bottom-navigation v-model="ui.curview" app v-show="ui.navi.show && !box.usercfgs.isHideNavi">
1400+
<v-bottom-navigation app v-model="ui.curview" v-show="ui.navi.show && !box.usercfgs.isHideNavi" :color="color">
14011401
<v-btn value="home">
14021402
<span>首页</span>
14031403
<v-icon>mdi-home</v-icon>
@@ -1577,6 +1577,9 @@ function printHtml(data, curapp = null, curview = 'app') {
15771577
fullscreen: function() {
15781578
return window.navigator.standalone
15791579
},
1580+
color: function() {
1581+
return this.$vuetify.theme.themes[this.darkMode ? 'dark' : 'light'].primary
1582+
},
15801583
darkMode: function() {
15811584
const isSysDark = window.matchMedia('(prefers-color-scheme: dark)').matches
15821585
let isDark = !this.box.usercfgs.isLight

0 commit comments

Comments
 (0)