Skip to content

Commit 6e0c735

Browse files
committed
feat(theme): 新增暗色模式主题支持并优化视觉效果。
- 新增暗色模式样式,提升视觉体验。 - 移除旧的样式代码,优化性能。 chore: 移除 AI 相关功能代码。 - 注释或移除 GPT 配置及 AI 回复相关逻辑。
1 parent 026ee34 commit 6e0c735

6 files changed

Lines changed: 41 additions & 217 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
- style(App): 添加 showAuthorName 配置项并更新样式代码
1+
- delete: 取消 AI 相关功能
2+
- style: 优化黑夜模式视觉效果

entrypoints/DialogComponents/components/BookmarksByCategory.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export default {
8787
justify-content: space-between;
8888
font-weight: 600;
8989
margin-bottom: 6px;
90-
background: #F2F3F5;
90+
background: var(--color-border-2);
9191
padding: 5px 10px;
9292
border-radius: 5px;
9393
font-size: 14px;
94-
color: #333;
94+
color: var(--color-fill-0);
9595
cursor: pointer;
9696
9797
}

entrypoints/DialogComponents/style.less

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
}
55

66
::-webkit-scrollbar-track {
7-
background: #FFFFFF;
87
border-radius: 0px
98
}
109

1110
::-webkit-scrollbar-thumb {
12-
background: #CCCCCC;
11+
background: var(--color-neutral-4);
1312
border-radius: 2px;
1413
transition: all .1s linear
1514
}
@@ -25,7 +24,7 @@ body {
2524
overflow-y: scroll;
2625
line-height: 1.6;
2726
color: var(--color-neutral-9);
28-
background-color: var(--color-bg-1);
27+
background-color: var(--color-neutral-1);
2928
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", SegoeUI, "Noto Sans", NotoSans, Helvetica, Arial, sans-serif;
3029
padding-top: 55px;
3130
}
@@ -65,7 +64,6 @@ a {
6564
display: flex;
6665
align-items: center;
6766
user-select: none;
68-
overflow-x: scroll;
6967
padding-right: 50px;
7068

7169
li {
@@ -104,7 +102,7 @@ a {
104102
.list {
105103
li {
106104
padding: 2px 0;
107-
border-bottom: 1px solid #eee;
105+
border-bottom: 1px solid var(--color-primary-light-2);
108106
display: flex;
109107
align-items: flex-start;
110108
position: relative;
@@ -142,7 +140,6 @@ a {
142140
right: 5px;
143141
top: 6px;
144142
z-index: 999999;
145-
background: #F2F3F5;
146143
width: 40px;
147144
height: 40px;
148145
display: flex;

entrypoints/SettingComponents/AIConfig/GPTconfig.vue

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
<div class="tit">3. 是否显示手动总结按钮</div>
1818
<input type="checkbox" v-model="localChecked.btn" @change="handleChange" />
1919
</div>
20-
<div class="item">
20+
<!-- <div class="item">
2121
<div class="tit">4. 是否开启 AI 生成回复推荐</div>
2222
<input type="checkbox" v-model="localChecked.value2" @change="handleChange" />
23-
</div>
23+
</div> -->
2424
<div class="item">
25-
<div class="tit">5. 新建话题使用 AI 生成标题</div>
25+
<div class="tit">4. 新建话题使用 AI 生成标题</div>
2626
<input type="checkbox" v-model="localChecked.title" @change="handleChange" />
2727
</div>
2828

@@ -166,7 +166,7 @@ export default {
166166
type: Object,
167167
default: {
168168
value1: false,
169-
value2: false,
169+
// value2: false,
170170
title: false,
171171
summaryAll: false,
172172
btn: true,
@@ -324,7 +324,7 @@ export default {
324324
this.localChecked &&
325325
(this.localChecked.apikey ||
326326
this.localChecked.value1 !== false ||
327-
this.localChecked.value2 !== false ||
327+
// this.localChecked.value2 !== false ||
328328
this.localChecked.summaryAll !== false)
329329
) {
330330
return true;
@@ -475,29 +475,29 @@ export default {
475475
476476
// 初始化按钮插入逻辑
477477
initializeButtonLogic() {
478-
// AI 回复按钮
479-
if (this.localChecked.value2) {
480-
$('body').append(`
481-
<div class="aireply-popup">
482-
<textarea class="aireply-popup-text"></textarea>
483-
<button class="aireply-popup-close">关闭</button>
484-
</div>
485-
`);
486-
487-
this.checkIntervalId = setInterval(() => {
488-
if ($('.aireplay-btn').length < 1) {
489-
const buttonHtml = `<button class="aireplay-btn" type="button" style="display:inline-flex!important;">AI 回复</button>`;
490-
this.tryInsertButton(buttonHtml, 'aireplay-btn');
491-
$('.aireplay-btn').click(() => {
492-
this.setAIRelpy();
493-
});
494-
$('.aireply-popup-close').click(() => {
495-
$('.aireply-popup').hide();
496-
$('.aireply-popup-text').html('AI 推荐回复正在生成中,请稍后。。。');
497-
});
498-
}
499-
}, 1000);
500-
}
478+
// // AI 回复按钮
479+
// if (this.localChecked.value2) {
480+
// $('body').append(`
481+
// <div class="aireply-popup">
482+
// <textarea class="aireply-popup-text"></textarea>
483+
// <button class="aireply-popup-close">关闭</button>
484+
// </div>
485+
// `);
486+
487+
// this.checkIntervalId = setInterval(() => {
488+
// if ($('.aireplay-btn').length < 1) {
489+
// const buttonHtml = `<button class="aireplay-btn" type="button" style="display:inline-flex!important;">AI 回复</button>`;
490+
// this.tryInsertButton(buttonHtml, 'aireplay-btn');
491+
// $('.aireplay-btn').click(() => {
492+
// this.setAIRelpy();
493+
// });
494+
// $('.aireply-popup-close').click(() => {
495+
// $('.aireply-popup').hide();
496+
// $('.aireply-popup-text').html('AI 推荐回复正在生成中,请稍后。。。');
497+
// });
498+
// }
499+
// }, 1000);
500+
// }
501501
502502
// 主贴总结功能
503503
if (this.localChecked.value1) {

entrypoints/bookmark/style.less

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
cursor: pointer;
33
}
44

5+
body {
6+
background: var(--color-bg-3) !important;
7+
}
8+
59
::-webkit-scrollbar {
610
width: 5px;
711
height: 4px
@@ -51,7 +55,6 @@ body {
5155
overflow-y: scroll;
5256
font-size: 16px;
5357
padding: 10px;
54-
background-color: var(--color-bg-1);
5558
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", SegoeUI, "Noto Sans", NotoSans, Helvetica, Arial, sans-serif;
5659
}
5760

@@ -60,7 +63,7 @@ body {
6063
left: 0;
6164
top: 0;
6265
width: 50px;
63-
background-color: #272E3B;
66+
background-color: var(--color-menu-dark-bg);
6467
height: 100vh;
6568
color: #fff;
6669
display: flex;
@@ -104,7 +107,7 @@ body {
104107

105108
.aside {
106109
width: 300px;
107-
background: var(--color-neutral-1);
110+
background: var(--color-neutral-2);
108111
height: 100vh;
109112
padding-bottom: 66px;
110113
overflow-y: auto;

entrypoints/popup/style.less

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)