add unknown file icon
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
role="img"
|
||||
aria-label="folder icon"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
sodipodi:docname="UnknownFile.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" /><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
inkscape:zoom="22.627418"
|
||||
inkscape:cx="14.4073"
|
||||
inkscape:cy="10.584504"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1369"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1" /><!-- background (transparent) --><!-- folder body (filled) --><path
|
||||
d="m 11.397101,3.5546602 h 5.654692 c 0.662742,0 1.2,0.5372583 1.2,1.1999999 V 19.24534 c 0,0.662742 -0.537258,1.2 -1.2,1.2 H 6.948207 c -0.662742,0 -1.2,-0.537258 -1.2,-1.2 V 8.3649754 Z"
|
||||
fill="#4b4d50"
|
||||
stroke="#dfe5e9"
|
||||
stroke-width="0.8"
|
||||
stroke-linejoin="round"
|
||||
filter="url(#glow)"
|
||||
id="path1"
|
||||
sodipodi:nodetypes="csssssscc"
|
||||
style="display:none;stroke-width:1;stroke-dasharray:none" /><path
|
||||
style="display:none;fill:none;fill-opacity:1;stroke:#dfe5e9;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 5.748207,8.3649754 5.648118,0.010562 7.76e-4,-4.8208776"
|
||||
id="path2"
|
||||
sodipodi:nodetypes="ccc" /><text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13.3333px;font-family:sans-serif;-inkscape-font-specification:sans-serif;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#acb7bd;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
x="10.167419"
|
||||
y="19.232578"
|
||||
id="text1"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1"
|
||||
x="10.167419"
|
||||
y="19.232578"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13.3333px;font-family:Arial;-inkscape-font-specification:Arial;fill:#acb7bd;fill-opacity:1;stroke:none;stroke-opacity:1">?</tspan></text><path
|
||||
style="font-size:13.3333px;font-family:Arial;-inkscape-font-specification:Arial;letter-spacing:0px;word-spacing:0px;fill:#acb7bd;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round"
|
||||
d="m 13.240328,16.882324 q -0.0065,-0.234375 -0.0065,-0.351562 0,-0.690102 0.195312,-1.191403 0.143229,-0.377603 0.462238,-0.761717 0.234375,-0.279947 0.839842,-0.8138 0.611978,-0.540363 0.794269,-0.859373 0.182291,-0.319009 0.182291,-0.696613 0,-0.683592 -0.533853,-1.197913 -0.533853,-0.520832 -1.30859,-0.520832 -0.748696,0 -1.249997,0.468749 -0.501301,0.468748 -0.657551,1.46484 l -1.204424,-0.143229 q 0.16276,-1.334632 0.96354,-2.044266 0.807289,-0.7096334 2.128901,-0.7096334 1.399736,0 2.233067,0.7617164 0.833331,0.761717 0.833331,1.842444 0,0.624998 -0.292968,1.15234 -0.292968,0.527343 -1.14583,1.282549 -0.572916,0.507812 -0.748696,0.748696 -0.175781,0.240885 -0.260416,0.553384 -0.08464,0.3125 -0.09766,1.015623 z m -0.07161,2.350254 v -1.334632 h 1.334632 v 1.334632 z"
|
||||
id="text1-7"
|
||||
aria-label="?" /></svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,18 @@
|
||||
[remap]
|
||||
|
||||
importer="svg"
|
||||
type="DPITexture"
|
||||
uid="uid://7rqmyeiy4y82"
|
||||
path="res://.godot/imported/UnknownFile.svg-88018a88651add8ddd34b24aa2a93a30.dpitex"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/GenericFileDecorations/UnknownFile.svg"
|
||||
dest_files=["res://.godot/imported/UnknownFile.svg-88018a88651add8ddd34b24aa2a93a30.dpitex"]
|
||||
|
||||
[params]
|
||||
|
||||
base_scale=1.0
|
||||
saturation=1.0
|
||||
color_map={}
|
||||
compress=true
|
||||
@@ -22,6 +22,7 @@ public partial class SolutionExplorerPanel
|
||||
private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://fa7tdmldi206");
|
||||
private readonly Texture2D _configFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://brsdisqgeah5n");
|
||||
private readonly Texture2D _targetsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://xy5ad1lc24lv");
|
||||
private readonly Texture2D _unknownFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://7rqmyeiy4y82");
|
||||
|
||||
private (Texture2D Icon, Texture2D? OverlayIcon) GetIconForFileExtension(string fileExtension)
|
||||
{
|
||||
@@ -41,7 +42,7 @@ public partial class SolutionExplorerPanel
|
||||
".png" or ".jpg" or ".jpeg" or ".gif" or ".bmp" or ".svg" or ".ico" or ".avif" or ".webp" => _imageFileIcon,
|
||||
".fs" => _fSharpIcon,
|
||||
".xml" or ".nuspec" => _xmlIcon,
|
||||
_ => _csIcon
|
||||
_ => _genericFileIcon
|
||||
};
|
||||
var overlayTexture = fileExtension switch
|
||||
{
|
||||
@@ -50,6 +51,10 @@ public partial class SolutionExplorerPanel
|
||||
".targets" => _targetsFileOverlayIcon,
|
||||
_ => null
|
||||
};
|
||||
if (overlayTexture is null && texture == _genericFileIcon)
|
||||
{
|
||||
overlayTexture = _unknownFileOverlayIcon;
|
||||
}
|
||||
|
||||
return (texture, overlayTexture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user