Skip to content

Commit

Permalink
fix(LB_Samples): add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Nov 1, 2024
1 parent 436c937 commit 0e4d7a6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ladybug.Grasshopper/Component/Ladybug_Samples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Ladybug_Samples()
{
}
public override Guid ComponentGuid => new Guid("BF8CF596-EAAF-460A-8B51-97E53B0197FD");
protected override System.Drawing.Bitmap Icon => null;
protected override System.Drawing.Bitmap Icon => Resources.samples;

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
Expand Down
10 changes: 10 additions & 0 deletions src/Ladybug.Grasshopper/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Ladybug.Grasshopper/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
<data name="Ladybug_Viewer_370" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\Ladybug_Viewer_370.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="samples" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\samples.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SortByLayers" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\SortByLayers.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file added src/Ladybug.Grasshopper/Resources/samples.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e4d7a6

Please sign in to comment.