浏览代码

Merge pull request #1887 from AbdealiJK/ajk/closeicon

default-theme: Show close icon even if dirty
Steven Silvester 8 年之前
父节点
当前提交
1c56edc9f3
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 4 0
      src/application/tabs.css
  2. 6 0
      src/default-theme/icons/md/close-black.svg

+ 4 - 0
src/application/tabs.css

@@ -168,6 +168,10 @@
   background-image: url(../default-theme/icons/md/circle.svg);
 }
 
+.p-DockPanel-tabBar .p-TabBar-tab.p-mod-closable > .p-TabBar-tabCloseIcon:hover {
+  background-size: 16px;
+  background-image: url(../default-theme/icons/md/close-black.svg);
+}
 
 .p-TabBar-tab.p-mod-drag-image {
   background: var(--jp-layout-color1);

+ 6 - 0
src/default-theme/icons/md/close-black.svg

@@ -0,0 +1,6 @@
+<svg fill="#ffffff" height="16" width="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
+    <!-- The black circle background -->
+    <circle cx="12" cy="12" r="11" fill="#000000"/>
+    <!-- The cross (close icon) -->
+    <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff"/>
+</svg>