add css icon
This commit is contained in:
@@ -0,0 +1,54 @@
|
|||||||
|
<?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="CssFile.svg"
|
||||||
|
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
|
||||||
|
xml:space="preserve"
|
||||||
|
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"><filter
|
||||||
|
id="mask-powermask-path-effect3_inverse"
|
||||||
|
inkscape:label="filtermask-powermask-path-effect3"
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
height="100"
|
||||||
|
width="100"
|
||||||
|
x="-50"
|
||||||
|
y="-50"><feColorMatrix
|
||||||
|
id="mask-powermask-path-effect3_primitive1"
|
||||||
|
values="1"
|
||||||
|
type="saturate"
|
||||||
|
result="fbSourceGraphic" /><feColorMatrix
|
||||||
|
id="mask-powermask-path-effect3_primitive2"
|
||||||
|
values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0 "
|
||||||
|
in="fbSourceGraphic" /></filter></defs><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="9.59375"
|
||||||
|
inkscape:cy="13.078125"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1369"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g2" /><g
|
||||||
|
id="g2"
|
||||||
|
transform="matrix(0.9,0,0,0.9,-2.4,-2.4)"><path
|
||||||
|
id="path1"
|
||||||
|
style="display:inline;fill:#7e57c2;fill-opacity:1;stroke-width:1.09549"
|
||||||
|
d="m 19.286458,13.809028 h -2.190972 v -2.190972 h -2.190972 v 2.190972 c 0,0.211429 0,0.770127 1.373739,1.131637 a 3.664401,3.664401 0 0 1 3.008205,3.250308 h 2.190973 v 2.190972 h 2.190972 v -2.190972 c 0,-0.425049 -0.615663,-0.932259 -1.37374,-1.132733 -2.618212,-0.685774 -3.008205,-2.329004 -3.008205,-3.249212 M 15.721747,17.05824 C 13.103535,16.372466 12.713542,14.729236 12.713542,13.809028 H 10.522569 V 11.618056 H 8.3315972 v 8.763889 h 2.1909718 v -2.190972 h 4.381945 v 2.190972 h 2.190972 v -2.190972 c 0,-0.425049 -0.615663,-0.932259 -1.373739,-1.132733 m 10.137628,-3.249212 h -2.190972 v -2.190972 h -2.190972 v 2.190972 c 0,0.211429 0,0.770127 1.373739,1.131637 a 3.664401,3.664401 0 0 1 3.008205,3.250308 v 2.190972 a 2.1909722,2.1909722 0 0 1 -2.190972,2.190972 h -2.190972 a 2.1909722,2.1909722 0 0 1 -2.190973,-2.190972 2.1909722,2.1909722 0 0 1 -2.190972,2.190972 h -2.190972 a 2.1909722,2.1909722 0 0 1 -2.190972,-2.190972 2.1909722,2.1909722 0 0 1 -2.190973,2.190972 H 8.3315972 A 2.1909722,2.1909722 0 0 1 6.140625,20.381945 V 11.618056 A 2.1909722,2.1909722 0 0 1 8.3315972,9.4270834 h 2.1909718 a 2.1909722,2.1909722 0 0 1 2.190973,2.1909726 2.1909722,2.1909722 0 0 1 2.190972,-2.1909726 h 2.190972 a 2.1909722,2.1909722 0 0 1 2.190972,2.1909726 2.1909722,2.1909722 0 0 1 2.190973,-2.1909726 h 2.190972 a 2.1909722,2.1909722 0 0 1 2.190972,2.1909726 z" /></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="svg"
|
||||||
|
type="DPITexture"
|
||||||
|
uid="uid://b6m4rm5u8hd1c"
|
||||||
|
path="res://.godot/imported/CssFile.svg-a222c5217f82da5291b9dcfcf8afd77c.dpitex"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/CssFile.svg"
|
||||||
|
dest_files=["res://.godot/imported/CssFile.svg-a222c5217f82da5291b9dcfcf8afd77c.dpitex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
base_scale=1.0
|
||||||
|
saturation=1.0
|
||||||
|
color_map={}
|
||||||
|
compress=true
|
||||||
@@ -10,6 +10,7 @@ public partial class SolutionExplorerPanel
|
|||||||
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 _htmlIcon = ResourceLoader.Load<Texture2D>("uid://q0cktiwdkt1e");
|
||||||
|
private readonly Texture2D _cssIcon = ResourceLoader.Load<Texture2D>("uid://b6m4rm5u8hd1c");
|
||||||
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)
|
||||||
@@ -21,6 +22,7 @@ public partial class SolutionExplorerPanel
|
|||||||
".json" => _jsonIcon,
|
".json" => _jsonIcon,
|
||||||
".js" => _jsIcon,
|
".js" => _jsIcon,
|
||||||
".html" or ".htm" => _htmlIcon,
|
".html" or ".htm" => _htmlIcon,
|
||||||
|
".css" => _cssIcon,
|
||||||
".txt" => _txtIcon,
|
".txt" => _txtIcon,
|
||||||
_ => _csIcon
|
_ => _csIcon
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user