Skip to content

Commit

Permalink
file-icon: add support for root and hdf file
Browse files Browse the repository at this point in the history
  • Loading branch information
Olufemi Adeyemi committed Nov 15, 2018
1 parent acfd0e4 commit f2f5baa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions file-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@
this.style.fill = "#1e90ff";
this._iconName = "text";
break;
case "x-root":
this._iconName = "root";
this.style.fill = "#1fd2e3";
break;
case "x-hdf":
case "x-hdf5":
this._iconName = "hdf";
this.style.fill = "#f77070";
break;
case "vnd.dcache.folder":
this._iconName = "folder";
this.style.fill = "#4FC3F7";
Expand Down
21 changes: 21 additions & 0 deletions file-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8
13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
</g>
<g id="root">
<path d="m 12.208675,0.67964507 c -0.06346,5.652e-5 -0.09799,8.5298e-4 -0.09937,0.002429 -0.0078,0.008914
-0.542769,3.56694743 -1.188844,7.90679833 -0.646075,4.3398526 -1.1859079,7.8903196 -1.1996476,7.8898106
-0.013739,-5.05e-4 -0.545035,-1.264965 -1.1806461,-2.80993 -0.6356101,-1.544964 -1.1698397,-2.82779
-1.1872036,-2.850641 -0.025602,-0.03369 -6.2313594,4.012322 -6.96269755,4.533821 a 12.366864,14.141119
0 0 0 0.21696976,0.55433 C 0.98315684,15.703699 2.2324396,15.012908 3.6249313,14.284419 5.2795498,13.418797
6.6481467,12.726197 6.6661664,12.74531 c 0.018021,0.01912 0.8398794,1.949984 1.8263446,4.290796 1.550887,3.680147
1.798214,4.234216 1.827787,4.094878 0.01881,-0.08863 0.649865,-4.520097 1.402438,-9.847675 0.752575,-5.3275764
1.371281,-9.690176 1.374847,-9.6946662 0.0087,-0.01097 7.818886,-0.1912021 8.246087,-0.1902927 L 21.6,1.3988019
A 12.366864,14.141119 0 0 0 21.214685,0.8883762 C 21.157524,0.8813112 21.092658,0.8757184 21.013826,0.8689608
20.641743,0.83706326 13.16055,0.67856618 12.208675,0.67965745 Z"/>
</g>
<g id="hdf">
<path d="M 8.8016363,2.0150606 A 0.9988284,1.7760312 0 0 0 7.8179423,3.8160602 V 10.126642 H 4.0927867 V
3.8409177 A 0.9988284,1.7760312 0 0 0 3.0790221,2.0399182 0.9988284,1.7760312 0 0 0 2.0953297,3.8409177 V
20.071306 a 0.9988284,1.7760312 0 1 0 1.997457,0 V 13.67835 H 9.8153998 V 5.6728446 c 3.0339002,0.5097062
4.2131992,3.6030332 4.1992422,6.4152134 -0.01539,3.101543 -1.470907,6.486973 -5.2550267,6.270843 a 0.9988284,1.7760312 0
1 0 -0.064128,3.549828 c 2.7784997,0.158695 4.8847567,-1.589218 6.1081067,-4.162158 v 2.470703 a 0.9988284,1.7760312 0
1 0 1.997457,0 v -6.449903 h 3.327227 a 0.9988284,1.7760312 0 1 0 0,-3.551705 H 16.801051 V 5.5919137 h 4.672601 a
0.9988284,1.7760312 0 1 0 0,-3.551707 H 8.9799554 A 0.9988284,1.7760312 0 0 0 8.8016363,2.0150606 Z"/>
</g>
</defs>
</svg>
</iron-iconset-svg>

0 comments on commit f2f5baa

Please sign in to comment.