diff --git a/feature/src/App.vue b/feature/src/App.vue
index 5f92dd5..5a0a199 100644
--- a/feature/src/App.vue
+++ b/feature/src/App.vue
@@ -68,7 +68,7 @@ const store = useStore();
const init = () => store.dispatch("init");
init();
-
diff --git a/feature/src/assets/ant-reset.less b/feature/src/assets/ant-reset.less
index 99c8c39..fe5d98e 100644
--- a/feature/src/assets/ant-reset.less
+++ b/feature/src/assets/ant-reset.less
@@ -1,5 +1,31 @@
-@import '~ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件
+@import "~ant-design-vue/dist/antd.less"; // 引入官方提供的 less 样式入口文件
@primary-color: #ff4ea4; // 全局主色
@link-color: #ff4ea4; // 链接色
@error-color: #ff4ea4; // 错误色
+
+:root {
+ --color-text-primary: rgba(0, 0, 0, 0.85);
+ --color-text-content: #141414;
+ --color-text-desc: rgba(0, 0, 0, 0.45);
+ // 背景色
+ --color-body-bg: #fff;
+ --color-menu-bg: #f3efef;
+ --color-list-hover: #e2e2e2;
+ --color-input-hover: #fff;
+ // 边框
+ --color-border-light: #f0f0f0;
+}
+
+.dark {
+ --color-text-primary: #e8e8f0;
+ --color-text-content: #ccccd8;
+ --color-text-desc: #8f8fa6;
+ // 背景色
+ --color-body-bg: #1c1c28;
+ --color-menu-bg: #1c1c28;
+ --color-list-hover: #33333d;
+ --color-input-hover: #33333d;
+ // 边框
+ --color-border-light: #33333d;
+}
diff --git a/feature/src/assets/common.less b/feature/src/assets/common.less
index 7e9ce10..c870765 100644
--- a/feature/src/assets/common.less
+++ b/feature/src/assets/common.less
@@ -1,20 +1,37 @@
.left-menu {
width: 200px;
height: 100vh;
+ border-right: 1px solid var(--color-border-light);
.search-container {
padding: 10px;
}
.ant-input-affix-wrapper {
border: none;
+ background: var(--color-input-hover);
+ :deep(input) {
+ background: none;
+ color: var(--color-text-desc);
+ }
+ :deep(.anticon) {
+ color: var(--color-text-desc);
+ }
}
:deep(.ant-menu) {
- background: #F3EFEF;
+ background: var(--color-menu-bg);
+ height: 100%;
+ border-right: none;
+ .ant-menu-item {
+ color: var(--color-text-content);
+ &:active {
+ background: none;
+ }
+ }
.ant-menu-item-selected {
- background-color: #E2E2E2;
- color: #141414;
+ background-color: var(--color-list-hover);
+ color: var(--color-text-primary);
&:after {
display: none;
}
}
}
-}
\ No newline at end of file
+}
diff --git a/feature/src/views/account/index.vue b/feature/src/views/account/index.vue
index b89eaa0..03f76a6 100644
--- a/feature/src/views/account/index.vue
+++ b/feature/src/views/account/index.vue
@@ -10,12 +10,18 @@ export default {
};
-
diff --git a/feature/src/views/dev/index.vue b/feature/src/views/dev/index.vue
index a045b6b..c45ffd1 100644
--- a/feature/src/views/dev/index.vue
+++ b/feature/src/views/dev/index.vue
@@ -64,13 +64,20 @@ const labelCol = { span: 4 };
const wrapperCol = { span: 14 };
-
diff --git a/feature/src/views/installed/index.vue b/feature/src/views/installed/index.vue
index f5184a4..fd82099 100644
--- a/feature/src/views/installed/index.vue
+++ b/feature/src/views/installed/index.vue
@@ -15,7 +15,7 @@
@click="currentSelect = [index]"
v-for="(plugin, index) in localPlugins"
>
-
+