浏览代码

HUE-3452 [home] Some icons on selected rows have white background

Johan Ahlen 9 年之前
父节点
当前提交
520418d044

+ 4 - 1
desktop/core/src/desktop/templates/file_browser.mako

@@ -577,7 +577,10 @@ from desktop.views import _ko
                   <!-- ko if: ! isDirectory() && definition().type !== 'query-impala' && definition().type !== 'query-hive' -->
                   <use xlink:href="#hi-file"></use>
                   <!-- /ko -->
-                  <!-- ko if: isSharedWithMe -->
+                  <!-- ko if: isSharedWithMe() && selected() -->
+                  <use xlink:href="#hi-share-addon-selected"></use>
+                  <!-- /ko -->
+                  <!-- ko if: isSharedWithMe() && !selected() -->
                   <use xlink:href="#hi-share-addon"></use>
                   <!-- /ko -->
                 </svg>

+ 7 - 1
desktop/core/src/desktop/templates/hue_icons.mako

@@ -48,7 +48,13 @@
     </symbol>
 
     <symbol id="hi-share-addon" viewBox="0 0 640 640">
-      <path style="fill:#fff" d="M646.3,538.84c-9.43-30-29.24-48.82-55.26-53.44a83,83,0,1,0-147.45,0c-26,4.62-45.87,23.49-55.41,53.76-2.16,6.75-8.34,32-8.34,58.46,0,46.62,34.31,56.4,63.1,56.4H591.7c39.51,0,63.1-21.09,63.1-56.41C654.8,576.74,648.9,547,646.3,538.84Z"/>
+      <path style="fill:#FFF" d="M646.3,538.84c-9.43-30-29.24-48.82-55.26-53.44a83,83,0,1,0-147.45,0c-26,4.62-45.87,23.49-55.41,53.76-2.16,6.75-8.34,32-8.34,58.46,0,46.62,34.31,56.4,63.1,56.4H591.7c39.51,0,63.1-21.09,63.1-56.41C654.8,576.74,648.9,547,646.3,538.84Z"/>
+      <circle cx="517.32" cy="447.4" r="57.42"/>
+      <path d="M591.71,637H442.94c-43.88,0-45.44-25.47-45.44-39.08,0-23.9,5.68-47.56,7.49-53.24s12.5-42.75,51.4-42.75c1,0,3.58.94,7.15,3.64,24.32,18.36,46.19,20,53.79,20s26.36-.57,53.78-20c3.65-2.59,6.13-3.67,7.15-3.67,39.14,0,49.59,37.22,51.41,42.89s7.48,33.9,7.48,53.15C637.15,611.53,632.73,637,591.71,637Z"/>
+    </symbol>
+
+    <symbol id="hi-share-addon-selected" viewBox="0 0 640 640">
+      <path style="fill:#DBE8F1" d="M646.3,538.84c-9.43-30-29.24-48.82-55.26-53.44a83,83,0,1,0-147.45,0c-26,4.62-45.87,23.49-55.41,53.76-2.16,6.75-8.34,32-8.34,58.46,0,46.62,34.31,56.4,63.1,56.4H591.7c39.51,0,63.1-21.09,63.1-56.41C654.8,576.74,648.9,547,646.3,538.84Z"/>
       <circle cx="517.32" cy="447.4" r="57.42"/>
       <path d="M591.71,637H442.94c-43.88,0-45.44-25.47-45.44-39.08,0-23.9,5.68-47.56,7.49-53.24s12.5-42.75,51.4-42.75c1,0,3.58.94,7.15,3.64,24.32,18.36,46.19,20,53.79,20s26.36-.57,53.78-20c3.65-2.59,6.13-3.67,7.15-3.67,39.14,0,49.59,37.22,51.41,42.89s7.48,33.9,7.48,53.15C637.15,611.53,632.73,637,591.71,637Z"/>
     </symbol>