mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
💄 调整背景颜色,更加自然
This commit is contained in:
@@ -2,19 +2,19 @@
|
|||||||
* @file assets themes default.css
|
* @file assets themes default.css
|
||||||
* @description 主题样式文件-默认(浅色)主题
|
* @description 主题样式文件-默认(浅色)主题
|
||||||
* @author BTMuli <bt-muli@outlook.com>
|
* @author BTMuli <bt-muli@outlook.com>
|
||||||
* @since Beta v0.3.0
|
* @since Beta v0.3.2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* default(light) theme */
|
/* default(light) theme */
|
||||||
html.default {
|
html.default {
|
||||||
/* app container */
|
/* app container */
|
||||||
--app-page-bg: #ffffff;
|
--app-page-bg: #f9f6f2;
|
||||||
--app-page-content: #2f2f2f;
|
--app-page-content: #2f2f2f;
|
||||||
--app-side-bg: #f2f2f2;
|
--app-side-bg: #f2f2f2;
|
||||||
--app-side-content: #222222;
|
--app-side-content: #222222;
|
||||||
|
|
||||||
/* box container */
|
/* box container */
|
||||||
--box-bg-1: #efefef;
|
--box-bg-1: #f2f9f6;
|
||||||
--box-bg-2: #f6f8fa;
|
--box-bg-2: #f6f8fa;
|
||||||
--box-bg-3: #dee4e9;
|
--box-bg-3: #dee4e9;
|
||||||
--box-bg-4: #f5f5f5;
|
--box-bg-4: #f5f5f5;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export async function saveImgLocal(url: string): Promise<string> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 获取分享截图背景色
|
* @description 获取分享截图背景色
|
||||||
* @since Beta v0.3.0
|
* @since Beta v0.3.2
|
||||||
* @returns {string} 背景色
|
* @returns {string} 背景色
|
||||||
*/
|
*/
|
||||||
function getShareImgBgColor(): string {
|
function getShareImgBgColor(): string {
|
||||||
@@ -68,9 +68,9 @@ function getShareImgBgColor(): string {
|
|||||||
theme = JSON.parse(theme).theme;
|
theme = JSON.parse(theme).theme;
|
||||||
}
|
}
|
||||||
if (theme === "dark") {
|
if (theme === "dark") {
|
||||||
return "#000000";
|
return "#1e1e1e";
|
||||||
} else {
|
} else {
|
||||||
return "#ffffff";
|
return "#f9f6f2";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user