mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-22 02:47:46 +08:00
客户端:支持暗黑模式
This commit is contained in:
parent
14ac0412dc
commit
b609b226fa
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="toolbarContainer">
|
||||
<div class="toolbar" :style="{top: IS_ELECTRON ? '40px' : 0}" :class="{ isDark: isDark }">
|
||||
<div class="toolbarContainer" :class="{ isDark: isDark }">
|
||||
<div class="toolbar" :style="{top: IS_ELECTRON ? '40px' : 0}">
|
||||
<!-- 节点操作 -->
|
||||
<div class="toolbarBlock">
|
||||
<div
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="workbencheEditContainer">
|
||||
<div class="workbencheEditContainer" :class="{ isDark: isDark }">
|
||||
<div class="workbencheEditHeader">
|
||||
<MacControl></MacControl>
|
||||
<WinControl></WinControl>
|
||||
@ -38,7 +38,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['fileName', 'isUnSave'])
|
||||
...mapState(['fileName', 'isUnSave', 'isDark'])
|
||||
},
|
||||
watch: {
|
||||
fileName(val) {
|
||||
@ -97,6 +97,13 @@ export default {
|
||||
|
||||
<style lang="less" scoped>
|
||||
.workbencheEditContainer {
|
||||
|
||||
&.isDark {
|
||||
.workbencheEditHeader {
|
||||
background-color: #262a2e;
|
||||
}
|
||||
}
|
||||
|
||||
.workbencheEditHeader {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user