add js icon
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
class="mud-icon-root mud-svg-icon mud-error-text mud-icon-size-medium"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
aria-hidden="true"
|
||||
role="img"
|
||||
style="fill: rgb(40, 167, 69);"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
sodipodi:docname="JsFile.svg"
|
||||
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs1" />
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
inkscape:zoom="24.3125"
|
||||
inkscape:cx="0.98714654"
|
||||
inkscape:cy="19.640103"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1369"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:16px;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#f2c55c;fill-opacity:1;stroke:#f2c55c;stroke-width:0.3;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
x="2.8320312"
|
||||
y="17.546875"
|
||||
id="text1"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1"
|
||||
x="2.8320312"
|
||||
y="17.546875"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Cascadia Mono';-inkscape-font-specification:'Cascadia Mono'">JS</tspan></text>
|
||||
<path
|
||||
style="font-size:16px;font-family:'Cascadia Mono';-inkscape-font-specification:'Cascadia Mono';fill:#f2c55c;stroke:#f2c55c;stroke-width:0.3;stroke-linecap:round;stroke-linejoin:round"
|
||||
d="m 7.3164062,17.703125 q -1.828125,0 -2.8203125,-1.015625 -0.9921874,-1.023437 -0.9921874,-2.859375 h 1.5624999 q 0,1.171875 0.59375,1.820313 0.6015625,0.648437 1.6953125,0.648437 1.0625001,0 1.6328126,-0.640625 0.578125,-0.648437 0.578125,-1.828125 v -7.375 h 1.5624997 v 7.375 q 0,1.84375 -1.007812,2.859375 -1.0078127,1.015625 -2.8046878,1.015625 z M 6.6601562,7.9375 V 6.453125 H 10.300781 V 7.9375 Z m 9.8515628,9.765625 q -0.945313,0 -1.773438,-0.15625 -0.820312,-0.148438 -1.523437,-0.453125 l 0.203125,-1.578125 q 0.859375,0.367188 1.65625,0.5625 0.804687,0.1875 1.5625,0.1875 1.09375,0 1.625,-0.382812 0.53125,-0.382813 0.53125,-1.164063 0,-0.992187 -1.015625,-1.453125 l -1.921875,-0.875 Q 14.722656,11.875 14.113281,11.148438 13.511719,10.421875 13.511719,9.34375 q 0,-1.453125 0.875,-2.25 0.875,-0.796875 2.476562,-0.796875 1.117188,0 1.976563,0.328125 0.859375,0.328125 1.65625,1.0703125 l -1.09375,1.109375 q -0.6875,-0.5625 -1.289063,-0.8125 -0.59375,-0.2578125 -1.242187,-0.2578125 -0.804688,0 -1.25,0.390625 -0.4375,0.3828125 -0.4375,1.140625 0,0.5390625 0.289062,0.882813 0.289063,0.335937 0.851563,0.601562 l 1.625,0.765625 q 1.234375,0.578125 1.875,1.304688 0.640625,0.726562 0.640625,1.867187 0,1.507812 -0.984375,2.265625 -0.976563,0.75 -2.96875,0.75 z"
|
||||
id="text1-2"
|
||||
aria-label="JS" />
|
||||
<path
|
||||
d="M 9.8125,6.015625 H 8.15625 V 4.4921875 H 9.8125 Z M 9.71875,16.414062 q 0,1.53125 -0.78125,2.3125 -0.78125,0.78125 -2.09375,0.78125 -0.3125,0 -0.828125,-0.0625 -0.5078125,-0.0625 -0.8515625,-0.15625 v -1.398437 h 0.078125 q 0.21875,0.08594 0.5859375,0.195312 0.375,0.109375 0.7265625,0.109375 0.5625,0 0.90625,-0.15625 0.34375,-0.15625 0.515625,-0.46875 0.171875,-0.3125 0.21875,-0.757812 Q 8.25,16.375 8.25,15.742188 V 8.7109375 H 6.4296875 V 7.4765625 H 9.71875 Z M 18.835937,13.6875 q 0,1.195313 -0.992187,1.960938 -0.984375,0.765624 -2.695312,0.765624 -0.96875,0 -1.78125,-0.226562 Q 12.5625,15.953125 12.015625,15.679688 V 14.03125 h 0.07813 q 0.695313,0.523438 1.546875,0.835938 0.851563,0.304687 1.632813,0.304687 0.968749,0 1.515624,-0.3125 0.546875,-0.3125 0.546875,-0.984375 0,-0.515625 -0.296875,-0.78125 -0.296875,-0.265625 -1.140624,-0.453125 -0.3125,-0.07031 -0.820313,-0.164062 -0.5,-0.09375 -0.914062,-0.203125 -1.148438,-0.304688 -1.632813,-0.890625 -0.476562,-0.59375 -0.476562,-1.4531255 0,-0.5390625 0.21875,-1.015625 Q 12.5,8.4375 12.953125,8.0625 q 0.4375,-0.3671875 1.109375,-0.578125 0.679688,-0.21875 1.515625,-0.21875 0.78125,0 1.578125,0.1953125 0.804687,0.1875 1.335937,0.4609375 v 1.5703125 h -0.07813 Q 17.851562,9.078125 17.046875,8.796875 16.242187,8.5078125 15.46875,8.5078125 q -0.804687,0 -1.359375,0.3125 Q 13.554688,9.125 13.554688,9.734375 q 0,0.539063 0.335937,0.8125 0.328125,0.273438 1.0625,0.445313 0.40625,0.09375 0.90625,0.1875 0.507812,0.09375 0.84375,0.171875 1.023437,0.234375 1.578125,0.804687 0.554687,0.578125 0.554687,1.53125 z"
|
||||
id="text1-7"
|
||||
style="font-size:16px;display:none;fill:#f2c55c;stroke:#f2c55c;stroke-width:0.3;stroke-linecap:round;stroke-linejoin:round"
|
||||
aria-label="js" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,18 @@
|
||||
[remap]
|
||||
|
||||
importer="svg"
|
||||
type="DPITexture"
|
||||
uid="uid://cpdobpjrm2suc"
|
||||
path="res://.godot/imported/JsFile.svg-56b1c3fd3795d645798d2d99a8d4f50d.dpitex"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/JsFile.svg"
|
||||
dest_files=["res://.godot/imported/JsFile.svg-56b1c3fd3795d645798d2d99a8d4f50d.dpitex"]
|
||||
|
||||
[params]
|
||||
|
||||
base_scale=1.0
|
||||
saturation=1.0
|
||||
color_map={}
|
||||
compress=true
|
||||
@@ -8,6 +8,7 @@ public partial class SolutionExplorerPanel
|
||||
private readonly Texture2D _csIcon = ResourceLoader.Load<Texture2D>("uid://do0edciarrnp0");
|
||||
private readonly Texture2D _razorIcon = ResourceLoader.Load<Texture2D>("uid://cff7jlvj2tlg2");
|
||||
private readonly Texture2D _jsonIcon = ResourceLoader.Load<Texture2D>("uid://csrwpjk77r731");
|
||||
private readonly Texture2D _jsIcon = ResourceLoader.Load<Texture2D>("uid://cpdobpjrm2suc");
|
||||
|
||||
private Texture2D GetIconForFileExtension(string fileExtension)
|
||||
{
|
||||
@@ -16,6 +17,7 @@ public partial class SolutionExplorerPanel
|
||||
".cs" => _csIcon,
|
||||
".razor" or ".cshtml" => _razorIcon,
|
||||
".json" => _jsonIcon,
|
||||
".js" => _jsIcon,
|
||||
_ => _csIcon
|
||||
};
|
||||
return texture;
|
||||
|
||||
Reference in New Issue
Block a user