diff --git a/src/pages/index/components/module/AttachListComponent/styles/index.scss b/src/pages/index/components/module/AttachListComponent/styles/index.scss index 80727d6..fbbfba7 100644 --- a/src/pages/index/components/module/AttachListComponent/styles/index.scss +++ b/src/pages/index/components/module/AttachListComponent/styles/index.scss @@ -16,6 +16,6 @@ } .tag-text { - color: #00a6ff; /* 蓝色文字,可根据设计调整 */ + color: #2d91ff; /* 蓝色文字,可根据设计调整 */ font-size: $uni-font-size-base; } diff --git a/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue b/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue index c1c9256..61ee1d1 100644 --- a/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue +++ b/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue @@ -35,7 +35,7 @@ export default { }, themeColor: { type: String, - default: "#00A6FF", + default: "#2D91FF", }, codeBgColor: { type: String, @@ -45,6 +45,14 @@ export default { type: String, default: "PingFang SC, PingFang SC", }, + fontColor: { + type: String, + default: "#171717", + }, + fontSubColor: { + type: String, + default: "#4D4D4D", + }, aiMode: { type: Boolean, default: false, @@ -97,12 +105,15 @@ export default { const themeColor = this.themeColor; const codeBgColor = this.codeBgColor; const fontFamily = this.fontFamily; + const fontColor = this.fontColor; + const fontSubColor = this.fontSubColor; let zeroStyle = { p: ` margin:4px 0; font-size: 15px; - line-height:1.65; + line-height:1.55; font-family: ${fontFamily}; + color: ${fontColor}; `, // 一级标题 h1: ` @@ -149,12 +160,14 @@ export default { `, // 列表 ul: ` + font-size: 14px; margin: 4px 0; - color: #555; + color: ${fontSubColor}; `, li: ` + font-size: 14px; margin: 4px 0; - color: #555; + color: ${fontSubColor}; `, // 链接 a: ` @@ -168,6 +181,7 @@ export default { `, // 斜体 em: ` + font-size: 14px; color: ${themeColor}; font-family: ${fontFamily}; letter-spacing:0.3em; @@ -191,11 +205,11 @@ export default { `, th: ` border: 1px solid #202121; - color: #555; + color: ${fontSubColor}; `, td: ` - color:#555; - border: 1px solid #555555; + color: ${fontSubColor}; + border: 1px solid ${fontSubColor}; `, pre: ` border-radius: 5px; @@ -211,12 +225,15 @@ export default { const themeColor = this.themeColor; const codeBgColor = this.codeBgColor; const fontFamily = this.fontFamily; + const fontColor = this.fontColor; + const fontSubColor = this.fontSubColor; let zeroStyle = { p: ` margin:4px 0; font-size: 15px; line-height:1.55; font-family: ${fontFamily}; + color: ${fontColor}; `, // 一级标题 h1: ` @@ -272,11 +289,13 @@ export default { // 列表 ul: ` margin: 4px 0; - color: #555; + font-size: 14px; + color: ${fontSubColor}; `, li: ` margin: 4px 0; - color: #555; + font-size: 14px; + color: ${fontSubColor}; `, // 链接 a: ` @@ -311,12 +330,12 @@ export default { border-collapse: collapse; `, th: ` - border: 1px solid #202121; - color: #555; + border: 1px solid ${fontSubColor}; + color: ${fontSubColor}; `, td: ` - color:#555; - border: 1px solid #555555; + color: ${fontSubColor}; + border: 1px solid ${fontSubColor}; `, pre: ` border-radius: 5px;