Skip to content

Commit

Permalink
アイコンの設定
Browse files Browse the repository at this point in the history
  • Loading branch information
kemo14331 committed Oct 10, 2020
1 parent 60e6ae0 commit faf38e0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions ParticleConverter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ParticleConverter", "Partic
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B18BF7CE-71EF-43FD-B0FD-C8453C3A9B26}"
ProjectSection(SolutionItems) = preProject
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Expand Down
12 changes: 12 additions & 0 deletions ParticleConverter/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,19 @@ private async void ExportButton_Click(object sender, RoutedEventArgs e)
{
Directory.CreateDirectory(System.IO.Path.GetDirectoryName(filePath));
}
var fullname = typeof(App).Assembly.Location;
var info = FileVersionInfo.GetVersionInfo(fullname);
var ver = info.FileVersion;
writer = new StreamWriter(filePath, false, enc);
writer.WriteLine($"### Particle Image Function");
writer.WriteLine($"### Version: {ver}");
writer.WriteLine($"### Width: {ImageConverter.ResizedWidth}");
writer.WriteLine($"### Height: {ImageConverter.ResizedHeight}");
writer.WriteLine($"### ParticleType: {ParticleTypeBox.SelectedValue}");
writer.WriteLine($"");
writer.WriteLine($"### This file was generated by Kemo431's Particle-Converter.");
writer.WriteLine($"### Download Link: https://github.com/kemo14331/Particle-Converter");
writer.WriteLine($"");
for (int i = 0; i < particles.Length; i++)
{
var p = particles[i];
Expand Down
12 changes: 12 additions & 0 deletions ParticleConverter/ParticleConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<Copyright>Kemo431</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Authors>Kemo431</Authors>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>https://github.com/kemo14331/Particle-Converter</RepositoryUrl>
<PackageIcon>icon.png</PackageIcon>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down Expand Up @@ -48,6 +52,14 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="icon.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
Binary file added ParticleConverter/icon.ico
Binary file not shown.
Binary file added ParticleConverter/icon.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 faf38e0

Please sign in to comment.