more icons

This commit is contained in:
Matt Parker
2025-09-12 20:53:00 +10:00
parent f0f9bd3b93
commit 2c0cf677ae
6 changed files with 119 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="folder icon">
<!-- background (transparent) -->
<rect width="24" height="24" fill="none"/>
<!-- folder body (filled) -->
<path
d="
M3.5 7.0
H8.7
L10.0 8.2
H20.5
A1.2 1.2 0 0 1 21.7 9.4
V17.8
A1.2 1.2 0 0 1 20.5 19.0
H3.5
A1.2 1.2 0 0 1 2.3 17.8
V8.2
A1.2 1.2 0 0 1 3.5 7.0
Z
"
fill="#4b4d50"
stroke="#dfe5e9"
stroke-width="0.9"
stroke-linejoin="round"
filter="url(#glow)"
/>
</svg>

After

Width:  |  Height:  |  Size: 661 B

View File

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://xc8srvqwlwng"
path="res://.godot/imported/FolderIcon.svg-05f9ba2264f41d857e2b60f63780a9b4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Features/SolutionExplorer/Resources/FolderIcon.svg"
dest_files=["res://.godot/imported/FolderIcon.svg-05f9ba2264f41d857e2b60f63780a9b4.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

@@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24">
<image href="CsharpFile.svg" x="0" y="0" width="10" height="10" />
<!-- Outer equilateral triangle -->
<polygon points="12,4 22,20 2,20"
fill="#9333ea"/>
<!-- Smaller inner equilateral triangle -->
<polygon points="12,7 19,18.5 5,18.5"
fill="#c084fc"/>
</svg>

After

Width:  |  Height:  |  Size: 372 B

View File

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dqdimcvjjyyrv"
path="res://.godot/imported/SlnBaseIcon.svg-a052ed45073f34c5707a25f4480eeb96.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Features/SolutionExplorer/Resources/SlnBaseIcon.svg"
dest_files=["res://.godot/imported/SlnBaseIcon.svg-a052ed45073f34c5707a25f4480eeb96.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

@@ -12,6 +12,8 @@ public partial class SolutionExplorerPanel : Panel
[Export]
public Texture2D CsharpFileIcon { get; set; } = null!;
[Export]
public Texture2D FolderIcon { get; set; } = null!;
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
private Tree _tree = null!;
@@ -93,6 +95,7 @@ public partial class SolutionExplorerPanel : Panel
{
var folderItem = _tree.CreateItem(projectItem);
folderItem.SetText(0, sharpIdeFolder.Name);
folderItem.SetIcon(0, FolderIcon);
foreach (var subFolder in sharpIdeFolder.Folders)
{

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=3 uid="uid://b2oniigcp5ew5"]
[gd_scene load_steps=16 format=3 uid="uid://b2oniigcp5ew5"]
[ext_resource type="Script" uid="uid://bavypuy7b375x" path="res://IdeRoot.cs" id="1_whawi"]
[ext_resource type="Texture2D" uid="uid://bkty6563cthj8" path="res://Features/Run/Resources/Run.svg" id="2_8x8ub"]
@@ -10,6 +10,7 @@
[ext_resource type="PackedScene" uid="uid://bcoytt3bw0gpe" path="res://Features/Run/RunPanel.tscn" id="5_y3aoi"]
[ext_resource type="Texture2D" uid="uid://do0edciarrnp0" path="res://Features/SolutionExplorer/Resources/CsharpFile.svg" id="6_7ptyn"]
[ext_resource type="Script" uid="uid://cvvgp42r3nml8" path="res://Features/BottomPanel/BottomPanelManager.cs" id="7_i62lx"]
[ext_resource type="Texture2D" uid="uid://xc8srvqwlwng" path="res://Features/SolutionExplorer/Resources/FolderIcon.svg" id="7_woo5i"]
[ext_resource type="PackedScene" uid="uid://co6dkhdolriej" path="res://Features/Build/BuildPanel.tscn" id="9_rllbf"]
[ext_resource type="PackedScene" uid="uid://tqpmww430cor" path="res://Features/Problems/ProblemsPanel.tscn" id="11_b7c1a"]
[ext_resource type="PackedScene" uid="uid://dkjips8oudqou" path="res://Features/Debug_/DebugPanel.tscn" id="11_s2dv6"]
@@ -121,6 +122,7 @@ unique_name_in_owner = true
layout_mode = 2
script = ExtResource("2_tcy02")
CsharpFileIcon = ExtResource("6_7ptyn")
FolderIcon = ExtResource("7_woo5i")
[node name="Tree" type="Tree" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer/HSplitContainer/SolutionExplorerPanel"]
layout_mode = 1