csproj icon

This commit is contained in:
Matt Parker
2025-09-12 21:26:56 +10:00
parent 42b8dcade9
commit 1ef12d4bf9
4 changed files with 132 additions and 1 deletions

View File

@@ -0,0 +1,89 @@
<?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="Csproj.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">
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect3"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,1.4784022,0,1 @ F,0,1,1,0,1.4784022,0,1 @ F,0,1,1,0,1.4784022,0,1 @ F,0,1,1,0,1.4784022,0,1"
radius="0"
unit="px"
method="auto"
mode="F"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
</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="34.383067"
inkscape:cx="3.7227627"
inkscape:cy="14.178491"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="M 0,0 H 24 V 24 H 0 Z"
fill="none"
id="path1"
style="display:inline" />
<path
id="rect1"
style="display:inline;fill:#253727;fill-opacity:1;stroke:rgb(40, 167, 69);stroke-width:0.924;stroke-opacity:1"
d="m 2.917991,4.1131101 h 18.225716 a 1.4784022,1.4784022 45 0 1 1.478402,1.4784022 V 18.758102 a 1.4784022,1.4784022 135 0 1 -1.478402,1.478402 H 2.917991 A 1.4784022,1.4784022 45 0 1 1.4395888,18.758102 V 5.5915123 A 1.4784022,1.4784022 135 0 1 2.917991,4.1131101 Z"
sodipodi:nodetypes="ccccc"
inkscape:path-effect="#path-effect3"
inkscape:original-d="M 1.4395888,4.1131101 H 22.622109 V 20.236504 H 1.4395888 Z" />
<text
x="11.912748"
y="13.454205"
text-anchor="middle"
dominant-baseline="middle"
font-family="'Segoe UI', Roboto, Helvetica, Arial, sans-serif"
font-size="16px"
font-weight="700"
id="text1"
style="display:none">C#</text>
<path
d="m 11.595432,16.199386 q -0.94945,0.459606 -2.4794549,0.459606 -1.9956588,0 -3.1386271,-1.173205 -1.1429683,-1.173206 -1.1429683,-3.126532 0,-2.080324 1.2820597,-3.3744783 1.2881071,-1.2941545 3.338193,-1.2941545 1.2699656,0 2.1407976,0.3205149 V 9.8918944 Q 10.7246,9.3718136 9.6118681,9.3718136 q -1.2215851,0 -1.971469,0.7680264 -0.749884,0.768027 -0.749884,2.080323 0,1.25787 0.7075518,2.007754 0.7075518,0.743837 1.9049471,0.743837 1.142968,0 2.092418,-0.556366 z m 7.631884,-6.156305 -0.235851,1.088541 h -1.118778 l -0.33261,1.499768 h 1.251822 l -0.272135,1.088541 h -1.203443 l -0.471701,2.092418 h -1.20949 l 0.441463,-2.092418 h -1.384866 l -0.447511,2.092418 h -1.20949 l 0.429368,-2.092418 h -1.124825 l 0.223756,-1.088541 h 1.13692 l 0.320515,-1.499768 h -1.221585 l 0.205613,-1.088541 h 1.239728 l 0.447511,-2.1528929 h 1.239728 l -0.447512,2.1528929 h 1.384867 l 0.459606,-2.1528929 h 1.227632 l -0.447511,2.1528929 z m -2.576214,1.088541 h -1.403009 l -0.33261,1.499768 h 1.396961 z"
id="text2"
style="font-weight:700;font-size:16px;font-family:'Segoe UI', Roboto, Helvetica, Arial, sans-serif;dominant-baseline:middle;text-anchor:middle;stroke-width:0.774074"
aria-label="C#" />
<rect
style="display:none;fill:#1a511c;fill-opacity:1;stroke:#28a745;stroke-width:0.924;stroke-dasharray:none;stroke-opacity:1"
id="rect2"
width="21.18252"
height="16.123394"
x="1.4395888"
y="4.1131101" />
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cqt30ma6xgder"
path="res://.godot/imported/Csproj.svg-b6fad87b913cc38bcb396763ad6786ac.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Features/SolutionExplorer/Resources/Csproj.svg"
dest_files=["res://.godot/imported/Csproj.svg-b6fad87b913cc38bcb396763ad6786ac.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

View File

@@ -16,6 +16,8 @@ public partial class SolutionExplorerPanel : Panel
public Texture2D FolderIcon { get; set; } = null!;
[Export]
public Texture2D SlnFolderIcon { get; set; } = null!;
[Export]
public Texture2D CsprojIcon { get; set; } = null!;
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
private Tree _tree = null!;
@@ -82,6 +84,7 @@ public partial class SolutionExplorerPanel : Panel
{
var projectItem = _tree.CreateItem(parent);
projectItem.SetText(0, project.Name);
projectItem.SetIcon(0, CsprojIcon);
foreach (var sharpIdeFolder in project.Folders)
{

View File

@@ -1,9 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://cy1bb32g7j7dr"]
[gd_scene load_steps=6 format=3 uid="uid://cy1bb32g7j7dr"]
[ext_resource type="Script" uid="uid://bai53k7ongbxw" path="res://Features/SolutionExplorer/SolutionExplorerPanel.cs" id="1_gjy0r"]
[ext_resource type="Texture2D" uid="uid://do0edciarrnp0" path="res://Features/SolutionExplorer/Resources/CsharpFile.svg" id="2_8ymw0"]
[ext_resource type="Texture2D" uid="uid://xc8srvqwlwng" path="res://Features/SolutionExplorer/Resources/FolderIcon.svg" id="3_r1qfc"]
[ext_resource type="Texture2D" uid="uid://bbfxltr1fcomt" path="res://Features/SolutionExplorer/Resources/SlnFolderIcon.svg" id="4_8ymw0"]
[ext_resource type="Texture2D" uid="uid://cqt30ma6xgder" path="res://Features/SolutionExplorer/Resources/Csproj.svg" id="5_r1qfc"]
[node name="SolutionExplorerPanel" type="Panel"]
anchors_preset = 15
@@ -15,6 +16,7 @@ script = ExtResource("1_gjy0r")
CsharpFileIcon = ExtResource("2_8ymw0")
FolderIcon = ExtResource("3_r1qfc")
SlnFolderIcon = ExtResource("4_8ymw0")
CsprojIcon = ExtResource("5_r1qfc")
[node name="Tree" type="Tree" parent="."]
layout_mode = 1