Skip to content

Commit d1c5b7c

Browse files
committed
added new app icon!
1 parent 0dc816a commit d1c5b7c

File tree

10 files changed

+189
-10
lines changed

10 files changed

+189
-10
lines changed

Assets/StackSolver.ico

401 KB
Binary file not shown.

Assets/stacksolver-icon-1024.png

148 KB
Loading

Assets/stacksolver-icon-256.png

19.1 KB
Loading

Assets/stacksolver-icon-512.png

53.2 KB
Loading

Assets/wpfui-icon-1024.png

-10.5 KB
Binary file not shown.

Assets/wpfui-icon-256.png

-4.29 KB
Binary file not shown.

Properties/Resources.Designer.cs

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Properties/Resources.resx

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 1.3
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">1.3</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1">this is my long string</data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
[base64 mime encoded serialized .NET Framework object]
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
[base64 mime encoded string representing a byte array form of the .NET Framework object]
27+
</data>
28+
29+
There are any number of "resheader" rows that contain simple
30+
name/value pairs.
31+
32+
Each data row contains a name, and value. The row also contains a
33+
type or mimetype. Type corresponds to a .NET class that support
34+
text/value conversion through the TypeConverter architecture.
35+
Classes that don't support this are serialized and stored with the
36+
mimetype set.
37+
38+
The mimetype is used for serialized objects, and tells the
39+
ResXResourceReader how to depersist the object. This is currently not
40+
extensible. For a given mimetype the value must be set accordingly:
41+
42+
Note - application/x-microsoft.net.object.binary.base64 is the format
43+
that the ResXResourceWriter will generate, however the reader can
44+
read any of the formats listed below.
45+
46+
mimetype: application/x-microsoft.net.object.binary.base64
47+
value : The object must be serialized with
48+
: System.Serialization.Formatters.Binary.BinaryFormatter
49+
: and then encoded with base64 encoding.
50+
51+
mimetype: application/x-microsoft.net.object.soap.base64
52+
value : The object must be serialized with
53+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54+
: and then encoded with base64 encoding.
55+
56+
mimetype: application/x-microsoft.net.object.bytearray.base64
57+
value : The object must be serialized into a byte array
58+
: using a System.ComponentModel.TypeConverter
59+
: and then encoded with base64 encoding.
60+
-->
61+
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:element name="root" msdata:IsDataSet="true">
64+
<xsd:complexType>
65+
<xsd:choice maxOccurs="unbounded">
66+
<xsd:element name="data">
67+
<xsd:complexType>
68+
<xsd:sequence>
69+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
70+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
73+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
74+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
75+
</xsd:complexType>
76+
</xsd:element>
77+
<xsd:element name="resheader">
78+
<xsd:complexType>
79+
<xsd:sequence>
80+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
81+
</xsd:sequence>
82+
<xsd:attribute name="name" type="xsd:string" use="required" />
83+
</xsd:complexType>
84+
</xsd:element>
85+
</xsd:choice>
86+
</xsd:complexType>
87+
</xsd:element>
88+
</xsd:schema>
89+
<resheader name="resmimetype">
90+
<value>text/microsoft-resx</value>
91+
</resheader>
92+
<resheader name="version">
93+
<value>1.3</value>
94+
</resheader>
95+
<resheader name="reader">
96+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97+
</resheader>
98+
<resheader name="writer">
99+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100+
</resheader>
101+
</root>

Stack-Solver.csproj

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>WinExe</OutputType>
55
<TargetFramework>net10.0-windows</TargetFramework>
66
<ApplicationManifest>app.manifest</ApplicationManifest>
7-
<ApplicationIcon>Box.ico</ApplicationIcon>
7+
<ApplicationIcon>Assets\StackSolver.ico</ApplicationIcon>
88
<UseWPF>true</UseWPF>
99
<Nullable>enable</Nullable>
1010
<ImplicitUsings>enable</ImplicitUsings>
@@ -23,10 +23,6 @@
2323
<Page Remove="Tests\**" />
2424
</ItemGroup>
2525

26-
<ItemGroup>
27-
<Content Include="Box.ico" />
28-
</ItemGroup>
29-
3026
<ItemGroup>
3127
<PackageReference Include="Google.OrTools" Version="9.14.6206" />
3228
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.0" />
@@ -43,13 +39,17 @@
4339
</ItemGroup>
4440

4541
<ItemGroup>
46-
<None Remove="Assets\wpfui-icon-256.png" />
47-
<None Remove="Assets\wpfui-icon-1024.png" />
42+
<None Remove="Assets\stacksolver-icon-1024.png" />
43+
<None Remove="Assets\stacksolver-icon-256.png" />
44+
<None Remove="Assets\stacksolver-icon-512.png" />
45+
<None Remove="Assets\StackSolver.ico" />
4846
</ItemGroup>
4947

5048
<ItemGroup>
51-
<Resource Include="Assets\wpfui-icon-256.png" />
52-
<Resource Include="Assets\wpfui-icon-1024.png" />
49+
<Resource Include="Assets\stacksolver-icon-1024.png" />
50+
<Resource Include="Assets\stacksolver-icon-256.png" />
51+
<Resource Include="Assets\stacksolver-icon-512.png" />
52+
<Resource Include="Assets\StackSolver.ico" />
5353
</ItemGroup>
5454

5555
<ItemGroup>
@@ -65,4 +65,19 @@
6565
<None Include=".github\workflows\vulnerability-audit.yml" />
6666
</ItemGroup>
6767

68+
<ItemGroup>
69+
<Compile Update="Properties\Resources.Designer.cs">
70+
<DesignTime>True</DesignTime>
71+
<AutoGen>True</AutoGen>
72+
<DependentUpon>Resources.resx</DependentUpon>
73+
</Compile>
74+
</ItemGroup>
75+
76+
<ItemGroup>
77+
<EmbeddedResource Update="Properties\Resources.resx">
78+
<Generator>ResXFileCodeGenerator</Generator>
79+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
80+
</EmbeddedResource>
81+
</ItemGroup>
82+
6883
</Project>

Views/Windows/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
Grid.Row="0"
3636
CloseWindowByDoubleClickOnIcon="True">
3737
<ui:TitleBar.Icon>
38-
<ui:ImageIcon Source="pack://application:,,,/Assets/wpfui-icon-256.png" />
38+
<ui:ImageIcon Source="/Assets/stacksolver-icon-256.png" />
3939
</ui:TitleBar.Icon>
4040
</ui:TitleBar>
4141

0 commit comments

Comments
 (0)