瀏覽代碼

Fix the problem of cursor color in dark mode. #565

oldj 4 年之前
父節點
當前提交
f23815e31f
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1 1
      package.json
  2. 10 0
      src/renderer/components/Editor/HostsEditor.less

+ 1 - 1
package.json

@@ -27,7 +27,7 @@
     "mkdirp": "^1.0.4",
     "potdb": "^2.0.1",
     "uuid": "^8.3.2"
-  },
+  }, 
   "devDependencies": {
     "@babel/plugin-proposal-class-properties": "^7.13.0",
     "@babel/plugin-proposal-decorators": "^7.13.5",

+ 10 - 0
src/renderer/components/Editor/HostsEditor.less

@@ -69,6 +69,16 @@
   }
 }
 
+:global(.theme-dark) {
+  .editor {
+    :global {
+      .CodeMirror-cursor {
+        border-color: #39c;
+      }
+    }
+  }
+}
+
 .status_bar {
   height: var(--swh-status-bar-height);
   line-height: var(--swh-status-bar-height);