Skip to content

Commit 425da20

Browse files
authored
Merge pull request chavyleung#175 from chouchoui/master
更新[BoxJs]: 主题优化
2 parents 2002a69 + 894e021 commit 425da20

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

‎box/release/box.release.json‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.6.2",
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+
"name": "注意",
16+
"descs": ["需要重新添加到桌面才能生效"]
17+
},
18+
{
19+
"name": "感谢",
20+
"descs": ["感谢 @chouchoui 的 PR"]
21+
}
22+
]
23+
},
324
{
425
"version": "0.6.0",
526
"tags": ["beta"],

‎chavy.box.js‎

Lines changed: 15 additions & 2 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.1'
4+
$.version = '0.6.2'
55
$.versionType = 'beta'
66
$.KEY_sessions = 'chavy_boxjs_sessions'
77
$.KEY_versions = 'chavy_boxjs_versions'
@@ -708,6 +708,7 @@ function printHtml(data, curapp = null, curview = 'app') {
708708
<title>BoxJs</title>
709709
<meta charset="utf-8" />
710710
<meta name="apple-mobile-web-app-capable" content="yes">
711+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
711712
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
712713
<link rel="Bookmark" href="https://raw.githubusercontent.com/chavyleung/scripts/master/BOXJS.png" />
713714
<link rel="shortcut icon" href="https://raw.githubusercontent.com/chavyleung/scripts/master/BOXJS.png" />
@@ -719,6 +720,18 @@ function printHtml(data, curapp = null, curview = 'app') {
719720
[v-cloak]{
720721
display: none
721722
}
723+
body{
724+
padding-top: constant(safe-area-inset-top) !important;
725+
padding-top: env(safe-area-inset-top);
726+
}
727+
.v-app-bar, .v-navigation-drawer__content{
728+
box-sizing: content-box;
729+
padding-top: constant(safe-area-inset-top);
730+
padding-top: env(safe-area-inset-top);
731+
}
732+
.v-app-bar .v-autocomplete{
733+
box-sizing: border-box;
734+
}
722735
.v-bottom-navigation,
723736
.v-bottom-sheet {
724737
padding-bottom: constant(safe-area-inset-bottom);
@@ -756,7 +769,7 @@ function printHtml(data, curapp = null, curview = 'app') {
756769
<body>
757770
<div id="app">
758771
<v-app v-scroll="onScroll" v-cloak>
759-
<v-app-bar app dense>
772+
<v-app-bar app dense :color="darkMode ? undefined : '#F7BB0E'">
760773
<v-menu bottom left v-if="['app', 'home', 'log', 'sub'].includes(ui.curview) && box.syscfgs.env !== ''">
761774
<template v-slot:activator="{ on }">
762775
<v-btn icon v-on="on">

0 commit comments

Comments
 (0)