.targets icon

This commit is contained in:
Matt Parker
2025-11-29 12:03:28 +10:00
parent 2ce588d60a
commit 5608c8b21d
3 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
<?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="TargetsFile.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="11.313709"
inkscape:cx="-23.069359"
inkscape:cy="13.744388"
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" /><path
id="path4-34-1-6"
style="fill:#2b3f64;fill-opacity:1;stroke:#03112d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="m 14.530018,17.178203 h -3.600019 m 10.921814,0 h -3.60002 m -1.860887,1.860887 v 3.60002 m 0,-10.921814 v 3.600019 m 3.660897,1.860888 a 3.6608972,3.6608972 0 0 1 -3.660897,3.660897 3.6608972,3.6608972 0 0 1 -3.660898,-3.660897 3.6608972,3.6608972 0 0 1 3.660898,-3.660898 3.6608972,3.6608972 0 0 1 3.660897,3.660898 z"
inkscape:label="target-outline" /><path
id="path4-34-1-6-8"
style="fill:#2b3f64;fill-opacity:1;stroke:#5287f1;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="m 14.530018,17.178203 h -3.600019 m 10.921814,0 h -3.60002 m -1.860887,1.860887 v 3.60002 m 0,-10.921814 v 3.600019 m 3.660897,1.860888 a 3.6608972,3.6608972 0 0 1 -3.660897,3.660897 3.6608972,3.6608972 0 0 1 -3.660898,-3.660897 3.6608972,3.6608972 0 0 1 3.660898,-3.660898 3.6608972,3.6608972 0 0 1 3.660897,3.660898 z"
inkscape:label="target" /></svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,18 @@
[remap]
importer="svg"
type="DPITexture"
uid="uid://xy5ad1lc24lv"
path="res://.godot/imported/TargetsFile.svg-9969f5c52a9bad9863747e9b60a81a3f.dpitex"
[deps]
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/GenericFileDecorations/TargetsFile.svg"
dest_files=["res://.godot/imported/TargetsFile.svg-9969f5c52a9bad9863747e9b60a81a3f.dpitex"]
[params]
base_scale=1.0
saturation=1.0
color_map={}
compress=true

View File

@@ -18,6 +18,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 (Texture2D Icon, Texture2D? OverlayIcon) GetIconForFileExtension(string fileExtension)
{
@@ -30,7 +31,7 @@ public partial class SolutionExplorerPanel
".html" or ".htm" => _htmlIcon,
".css" => _cssIcon,
".txt" => _txtIcon,
".props" or ".config" => _genericFileIcon,
".props" or ".config" or ".targets" => _genericFileIcon,
".md" => _mdFileIcon,
".editorconfig" => _editorConfigFileIcon,
".gitignore" => _gitignoreFileIcon,
@@ -40,6 +41,7 @@ public partial class SolutionExplorerPanel
{
".props" => _propsFileOverlayIcon,
".config" => _configFileOverlayIcon,
".targets" => _targetsFileOverlayIcon,
_ => null
};