默认主题色修改

This commit is contained in:
陈红丽 2024-08-16 11:08:44 +08:00
parent 180448496e
commit 7f2bdf6279
7 changed files with 13 additions and 10 deletions

View File

@ -309,7 +309,7 @@
const settingStore = useProjectSettingStore();
const designStore = useDesignSettingStore();
const themeColor = ref('#409eff');
const themeColor = ref('#165DFF');
const isDrawer = ref(false);
const alertText = ref(
'该功能主要实时预览各种布局效果,更多完整配置在 /src/settings 中设置,自由搭配,随心所欲,极大程度满足您的个性化需求。',
@ -369,6 +369,7 @@
}
defineExpose({
themeColorChange,
openDrawer,
closeDrawer,
});

View File

@ -224,6 +224,8 @@
};
onMounted(() => {
const { themeColorChange } = drawerSetting.value;
themeColorChange('#165DFF');
window.addEventListener('resize', watchWidth);
});
</script>
@ -419,7 +421,7 @@
.el-menu {
--el-menu-bg-color: #fff;
--el-menu-text-color: rgb(51, 54, 57);
--el-menu-hover-bg-color: #2d8cf0;
--el-menu-hover-bg-color: #165DFF;
--el-menu-hover-text-color: #fff;
}
}

View File

@ -1,6 +1,6 @@
// app theme preset color
export const appThemeList: string[] = [
'#2d8cf0',
'#165DFF',
'#0960bd',
'#0084f4',
'#009688',
@ -26,7 +26,7 @@ const setting = {
//深色主题
darkTheme: false,
//系统主题色
appTheme: '#2d8cf0',
appTheme: '#165DFF',
//系统内置主题色列表
appThemeList,
};

View File

@ -22,7 +22,7 @@ body {
}
}
a {
color: #2d8cf0;
color: #165DFF;
background: transparent;
text-decoration: none;
outline: none;

View File

@ -1,4 +1,4 @@
$primaryColor: #2d8cf0;
$primaryColor: #165DFF;
$primaryColorHover: #57a3f3;
$header-height: 64px;
$footer-height: 70px;

View File

@ -76,10 +76,10 @@
.thing-cell-on {
background: #f0faff;
color: #2d8cf0;
color: #165DFF;
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
color: #2d8cf0;
color: #165DFF;
}
&:hover {

View File

@ -30,10 +30,10 @@
.thing-cell-on {
background: #f0faff;
color: #2d8cf0;
color: #165DFF;
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
color: #2d8cf0;
color: #165DFF;
}
&:hover {