Skip to content

Commit 5b7680d

Browse files
committed
优化黑夜模式样式
1 parent 9995931 commit 5b7680d

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default defineComponent({
5858
.dark {
5959
background-color: rgba(30, 31, 34);
6060
color: rgba(188, 190, 196);
61+
scrollbar-color: rgba(188, 190, 196, 0.5) rgba(30, 31, 34, 0.5);
6162
}
6263
6364
.dark .el-select-dropdown {
@@ -109,5 +110,4 @@ input[type="checkbox"]:checked::after,
109110
background-color: #ccc;
110111
border-color: #ccc;
111112
}
112-
113113
</style>

src/home.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,27 @@ button:hover {
404404
right: 7px;
405405
font-size: 24px;
406406
cursor: pointer;
407+
}
408+
409+
.close-btn.light {
407410
color: #333;
408411
}
409412
410-
.close-btn:hover {
413+
.close-btn.dark {
414+
position: absolute;
415+
top: 0px;
416+
right: 7px;
417+
font-size: 24px;
418+
cursor: pointer;
419+
color: #a3a1a1;
420+
}
421+
422+
.close-btn.light:hover {
411423
color: #000;
412424
}
425+
426+
.close-btn.light:hover {
427+
color: #f5ebeb;
428+
}
429+
413430
</style>

src/settings.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="settings-container">
2+
<div :class="['settings-container', theme]">
33
<h2 class="setting-title">设置</h2>
44

55
<div class="m-4" style="display: flex;justify-content: space-between; align-items: center;">
@@ -11,7 +11,7 @@
1111
<div style="display: flex;align-items: center;">
1212
<p style="margin-right: 10px;">启动编组后退出</p>
1313
<el-tooltip content="在启动某个编组后退出应用程序" placement="top">
14-
<Help theme="outline" size="15" fill="#333" />
14+
<Help :class="['help', theme]" theme="outline" size="15" />
1515
</el-tooltip>
1616
</div>
1717
<input type="checkbox" v-model="launchThenExit" @change="toggleLaunchThenExit" />
@@ -21,7 +21,7 @@
2121
<div style="display: flex;align-items: center;">
2222
<p style="margin-right: 10px;">自动启动编组</p>
2323
<el-tooltip content="当应用程序被设置为开机启动时, 所选择的编组将在开机启动后自动启动" placement="top">
24-
<Help theme="outline" size="15" fill="#333" />
24+
<Help :class="['help', theme]" theme="outline" size="15" />
2525
</el-tooltip>
2626
</div>
2727
<el-select append-to=".home" v-model="autoStartLauncherIds" @change="saveAutoStartLauncher"
@@ -243,4 +243,12 @@ input[type="checkbox"] {
243243
/* 放大复选框大小 */
244244
cursor: pointer;
245245
}
246+
247+
.help.light {
248+
color: #333;
249+
}
250+
251+
.help.dark {
252+
color: #a3a1a1;
253+
}
246254
</style>

0 commit comments

Comments
 (0)