فهرست منبع

HUE-6167 [frontend] Add svg icons for dashboard and editor

Johan Ahlen 8 سال پیش
والد
کامیت
56b164f14a
1فایلهای تغییر یافته به همراه16 افزوده شده و 2 حذف شده
  1. 16 2
      desktop/core/src/desktop/templates/hue_icons.mako

+ 16 - 2
desktop/core/src/desktop/templates/hue_icons.mako

@@ -23,6 +23,20 @@
     <symbol id="hi-empty" viewBox="0 0 640 640">
     </symbol>
 
+    <symbol id="hi-dashboard" viewBox="0 0 640 640">
+      <path d="M404.71,252.92c56-63.64,111.37-126.54,170-193-25.83,0-47-.37-68.13.19-14.23.37-25.27-3.56-26.58-19.65-1.12-12.92,9.36-20.4,27.52-20.4,35.19,0,70.38-.19,105.57,0,20.59.19,26.77,6,26.77,26.58.19,36.31-.19,72.81.19,109.13.19,14-5.43,24.33-19.84,24.33s-20.4-9.92-20.22-24.15c.19-19.47,0-38.93,0-63.27-8.61,9.36-14.6,15.54-20.22,22.09-50.54,57.28-100.89,114.74-151.43,171.83-15.91,18-22.84,18.53-41.93,3.37-50.91-40.43-101.64-81-153.49-122.6-4.87,4.31-9.73,8.24-14.41,12.73Q131.14,262.37,43.82,344.45c-4.31,4.12-8.42,8.42-13.29,12-9.55,6.93-21,7.11-26.58-2.81C.21,347.07,2.08,336.4,3.76,328c.94-4.31,7.11-7.67,11-11.42q97.71-92.09,195.42-184c17.41-16.28,22.65-16.47,41.18-1.68l137,109.5C393.66,244.49,398.9,248.42,404.71,252.92Z"></path>
+      <rect y="440.45" width="119.71" height="179.57"></rect>
+      <rect x="172.66" y="323.04" width="119.71" height="296.98"></rect>
+      <rect x="345.32" y="382.9" width="119.71" height="237.12"></rect>
+      <rect x="517.99" y="258.58" width="119.71" height="361.44"></rect>
+    </symbol>
+
+    <symbol id="hi-editor" viewBox="0 0 640 640">
+      <path d="M187.83,477.92,0,361.92V283.3L187.83,166.73v86.39L75.91,322.6l111.92,69.49Z"></path>
+      <path d="M452.17,166.73,640,282.72v78.62L452.17,477.92V391.53L564.09,322,452.17,252.55Z"></path>
+      <path d="M289.12,568H215.41L350.8,72H425Z"></path>
+    </symbol>
+
     <symbol id="hi-file" viewBox="0 0 640 640">
       <path d="M574.3,143.67L445.74,12.32A41.24,41.24,0,0,0,416.44,0H95A41,41,0,0,0,54,41V599a41,41,0,0,0,41,41H545a41,41,0,0,0,41-41V172.35A40.78,40.78,0,0,0,574.3,143.67ZM422.87,34.7L551.43,166a9,9,0,0,1,2.57,6.3V181H413.51a8.19,8.19,0,0,1-8.51-8.51V32h11.44A9.05,9.05,0,0,1,422.87,34.7ZM545,608H95a9,9,0,0,1-9-9V41a9,9,0,0,1,9-9H373V172.49A40.21,40.21,0,0,0,413.51,213H554V599A9,9,0,0,1,545,608Z"></path>
     </symbol>
@@ -233,9 +247,9 @@
 
   <script type="text/html" id="app-icon-template">
     <!-- ko switch: icon -->
-    <!-- ko case: 'dashboard' --><i class="fa fa-fw fa-area-chart"></i><!-- /ko -->
+    <!-- ko case: 'dashboard' --><svg class="hi"><use xlink:href="#hi-dashboard"></use></svg><!-- /ko -->
     <!-- ko case: 'dist-cp' --><i class="fa fa-fw fa-files-o"></i><!-- /ko -->
-    <!-- ko case: 'editor' --><i class="fa fa-fw fa-edit inline-block"></i><!-- /ko -->
+    <!-- ko case: 'editor' --><svg class="hi"><use xlink:href="#hi-editor"></use></svg><!-- /ko -->
     <!-- ko case: 'hive' --><svg class="hi"><use xlink:href="#hi-hive"></use></svg><!-- /ko -->
     <!-- ko case: 'impala' --><svg class="hi"><use xlink:href="#hi-impala"></use></svg><!-- /ko -->
     <!-- ko case: 'jar' --><svg class="hi"><use xlink:href="#hi-spark"></use></svg><!-- /ko -->