调整颜色变量和动画效果

This commit is contained in:
fofolee 2025-02-10 09:49:54 +08:00
parent ad06d35051
commit d2a93e9add
4 changed files with 19 additions and 16 deletions

View File

@ -119,6 +119,6 @@ export default {
} }
.card-wrapper-hover { .card-wrapper-hover {
transform: scale(1.02); transform: translateY(-1px);
} }
</style> </style>

View File

@ -370,10 +370,10 @@ export default {
<style> <style>
.quickcommand-ui.q-card { .quickcommand-ui.q-card {
background-color: #f4f4f4; background-color: var(--utools-bright-bg);
} }
.body--dark .quickcommand-ui.q-card { .body--dark .quickcommand-ui.q-card {
background-color: var(--q-dark-page); background-color: var(--utools-dark-bg);
} }
</style> </style>

View File

@ -1,16 +1,20 @@
/* app global css */ /* app global css */
:root { :root {
--utools-bright-bg: #f4f4f4;
--utools-bright-font-color: #333;
--utools-dark-bg: #303133;
--utools-dark-font-color: #fff;
--q-dark: #464646; --q-dark: #464646;
--q-dark-page: #303133; --q-dark-page: var(--utools-dark-bg);
} }
.q-card--dark { .q-card--dark {
background: var(--q-dark-page); background: var(--utools-dark-bg);
} }
body { body {
background: #f4f4f4; background: var(--utools-bright-bg);
color: #333; color: var(--utools-bright-font-color);
} }
/* Monaco Editor 调整行号栏样式 */ /* Monaco Editor 调整行号栏样式 */

View File

@ -39,7 +39,7 @@
<transition name="slide"> <transition name="slide">
<div v-if="isEditorShow" class="editor-container"> <div v-if="isEditorShow" class="editor-container">
<component <component
:is="commandEditorAction.data.component" :is="commandEditorAction.component"
:action="commandEditorAction" :action="commandEditorAction"
@editorEvent="editorEvent" @editorEvent="editorEvent"
:allQuickCommandTags="allQuickCommandTags" :allQuickCommandTags="allQuickCommandTags"
@ -284,6 +284,7 @@ export default {
this.commandEditorAction = { this.commandEditorAction = {
type: "edit", type: "edit",
data: window.lodashM.cloneDeep(command), data: window.lodashM.cloneDeep(command),
component: "CommandEditor",
}; };
this.isEditorShow = true; this.isEditorShow = true;
}, },
@ -421,9 +422,8 @@ export default {
addNewCommand(component = "CommandEditor") { addNewCommand(component = "CommandEditor") {
this.commandEditorAction = { this.commandEditorAction = {
type: "new", type: "new",
data: { data: {},
component, component,
},
}; };
this.isEditorShow = true; this.isEditorShow = true;
}, },
@ -518,8 +518,7 @@ export default {
} }
.editor-container { .editor-container {
color: black; color: var(--utools-bright-font-color);
background: white;
overflow: hidden; overflow: hidden;
position: fixed; position: fixed;
top: 0; top: 0;
@ -527,12 +526,12 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 5000; z-index: 5000;
background: var(--q-page-background); background: var(--utools-bright-bg);
} }
.body--dark .editor-container { .body--dark .editor-container {
color: white; color: var(--utools-dark-font-color);
background: var(--q-dark-page); background: var(--utools-dark-bg);
} }
/* 编辑器容器动画 */ /* 编辑器容器动画 */