默认主题色修改
This commit is contained in:
parent
180448496e
commit
7f2bdf6279
@ -309,7 +309,7 @@
|
|||||||
const settingStore = useProjectSettingStore();
|
const settingStore = useProjectSettingStore();
|
||||||
const designStore = useDesignSettingStore();
|
const designStore = useDesignSettingStore();
|
||||||
|
|
||||||
const themeColor = ref('#409eff');
|
const themeColor = ref('#165DFF');
|
||||||
const isDrawer = ref(false);
|
const isDrawer = ref(false);
|
||||||
const alertText = ref(
|
const alertText = ref(
|
||||||
'该功能主要实时预览各种布局效果,更多完整配置在 /src/settings 中设置,自由搭配,随心所欲,极大程度满足您的个性化需求。',
|
'该功能主要实时预览各种布局效果,更多完整配置在 /src/settings 中设置,自由搭配,随心所欲,极大程度满足您的个性化需求。',
|
||||||
@ -369,6 +369,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
themeColorChange,
|
||||||
openDrawer,
|
openDrawer,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
});
|
});
|
||||||
|
@ -224,6 +224,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
const { themeColorChange } = drawerSetting.value;
|
||||||
|
themeColorChange('#165DFF');
|
||||||
window.addEventListener('resize', watchWidth);
|
window.addEventListener('resize', watchWidth);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -419,7 +421,7 @@
|
|||||||
.el-menu {
|
.el-menu {
|
||||||
--el-menu-bg-color: #fff;
|
--el-menu-bg-color: #fff;
|
||||||
--el-menu-text-color: rgb(51, 54, 57);
|
--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;
|
--el-menu-hover-text-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// app theme preset color
|
// app theme preset color
|
||||||
export const appThemeList: string[] = [
|
export const appThemeList: string[] = [
|
||||||
'#2d8cf0',
|
'#165DFF',
|
||||||
'#0960bd',
|
'#0960bd',
|
||||||
'#0084f4',
|
'#0084f4',
|
||||||
'#009688',
|
'#009688',
|
||||||
@ -26,7 +26,7 @@ const setting = {
|
|||||||
//深色主题
|
//深色主题
|
||||||
darkTheme: false,
|
darkTheme: false,
|
||||||
//系统主题色
|
//系统主题色
|
||||||
appTheme: '#2d8cf0',
|
appTheme: '#165DFF',
|
||||||
//系统内置主题色列表
|
//系统内置主题色列表
|
||||||
appThemeList,
|
appThemeList,
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: #2d8cf0;
|
color: #165DFF;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$primaryColor: #2d8cf0;
|
$primaryColor: #165DFF;
|
||||||
$primaryColorHover: #57a3f3;
|
$primaryColorHover: #57a3f3;
|
||||||
$header-height: 64px;
|
$header-height: 64px;
|
||||||
$footer-height: 70px;
|
$footer-height: 70px;
|
||||||
|
@ -76,10 +76,10 @@
|
|||||||
|
|
||||||
.thing-cell-on {
|
.thing-cell-on {
|
||||||
background: #f0faff;
|
background: #f0faff;
|
||||||
color: #2d8cf0;
|
color: #165DFF;
|
||||||
|
|
||||||
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
|
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
|
||||||
color: #2d8cf0;
|
color: #165DFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -30,10 +30,10 @@
|
|||||||
|
|
||||||
.thing-cell-on {
|
.thing-cell-on {
|
||||||
background: #f0faff;
|
background: #f0faff;
|
||||||
color: #2d8cf0;
|
color: #165DFF;
|
||||||
|
|
||||||
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
|
:deep(.n-thing-main .n-thing-header .n-thing-header__title) {
|
||||||
color: #2d8cf0;
|
color: #165DFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
Loading…
Reference in New Issue
Block a user