add html icon
This commit is contained in:
@@ -0,0 +1,53 @@
|
|||||||
|
<?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="HtmlFile.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="32"
|
||||||
|
inkscape:cx="-0.25"
|
||||||
|
inkscape:cy="12.734375"
|
||||||
|
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-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:21.3333px;font-family:Arial;-inkscape-font-specification:'Arial Condensed';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#47934d;fill-opacity:1;stroke:#47934d;stroke-width:0.1;stroke-linecap:square;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
x="1.8072915"
|
||||||
|
y="19.52603"
|
||||||
|
id="text1"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan1"
|
||||||
|
x="1.8072915"
|
||||||
|
y="19.52603"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:21.3333px;font-family:Arial;-inkscape-font-specification:'Arial Condensed';fill:#47934d;fill-opacity:1;stroke:#47934d;stroke-width:0.1;stroke-dasharray:none;stroke-opacity:1"><></tspan></text>
|
||||||
|
<path
|
||||||
|
d="M 2.74479,12.848957 V 11.09896 l 8.291654,-4.270827 v 1.8645804 l -6.5729067,3.2916616 6.5729067,3.322911 v 1.864581 z m 18.510387,0 -8.291653,4.32291 V 15.307286 L 19.53643,11.984375 12.963524,8.6927134 V 6.828133 l 8.291653,4.270827 z"
|
||||||
|
id="text1-3"
|
||||||
|
style="font-stretch:condensed;font-size:21.3333px;font-family:Arial;-inkscape-font-specification:'Arial Condensed';fill:#47934d;stroke:#47934d;stroke-width:0.1;stroke-linecap:square;stroke-linejoin:round"
|
||||||
|
aria-label="<>" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="svg"
|
||||||
|
type="DPITexture"
|
||||||
|
uid="uid://q0cktiwdkt1e"
|
||||||
|
path="res://.godot/imported/HtmlFile.svg-63b9fb0bf708d802f7c728303e516b0d.dpitex"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/HtmlFile.svg"
|
||||||
|
dest_files=["res://.godot/imported/HtmlFile.svg-63b9fb0bf708d802f7c728303e516b0d.dpitex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
base_scale=1.0
|
||||||
|
saturation=1.0
|
||||||
|
color_map={}
|
||||||
|
compress=true
|
||||||
@@ -9,6 +9,7 @@ public partial class SolutionExplorerPanel
|
|||||||
private readonly Texture2D _razorIcon = ResourceLoader.Load<Texture2D>("uid://cff7jlvj2tlg2");
|
private readonly Texture2D _razorIcon = ResourceLoader.Load<Texture2D>("uid://cff7jlvj2tlg2");
|
||||||
private readonly Texture2D _jsonIcon = ResourceLoader.Load<Texture2D>("uid://csrwpjk77r731");
|
private readonly Texture2D _jsonIcon = ResourceLoader.Load<Texture2D>("uid://csrwpjk77r731");
|
||||||
private readonly Texture2D _jsIcon = ResourceLoader.Load<Texture2D>("uid://cpdobpjrm2suc");
|
private readonly Texture2D _jsIcon = ResourceLoader.Load<Texture2D>("uid://cpdobpjrm2suc");
|
||||||
|
private readonly Texture2D _htmlIcon = ResourceLoader.Load<Texture2D>("uid://q0cktiwdkt1e");
|
||||||
private readonly Texture2D _txtIcon = ResourceLoader.Load<Texture2D>("uid://b6bpjhs2o1j2l");
|
private readonly Texture2D _txtIcon = ResourceLoader.Load<Texture2D>("uid://b6bpjhs2o1j2l");
|
||||||
|
|
||||||
private Texture2D GetIconForFileExtension(string fileExtension)
|
private Texture2D GetIconForFileExtension(string fileExtension)
|
||||||
@@ -19,6 +20,7 @@ public partial class SolutionExplorerPanel
|
|||||||
".razor" or ".cshtml" => _razorIcon,
|
".razor" or ".cshtml" => _razorIcon,
|
||||||
".json" => _jsonIcon,
|
".json" => _jsonIcon,
|
||||||
".js" => _jsIcon,
|
".js" => _jsIcon,
|
||||||
|
".html" or ".htm" => _htmlIcon,
|
||||||
".txt" => _txtIcon,
|
".txt" => _txtIcon,
|
||||||
_ => _csIcon
|
_ => _csIcon
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user