Skip to content

Commit fc8a85c

Browse files
author
Wang(HOME)
committed
add icon
1 parent 8d2e040 commit fc8a85c

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

SoftwareCopyrightTool/Res/soft.ico

49.9 KB
Binary file not shown.

SoftwareCopyrightTool/SoftwareCopyrightTool.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
<ErrorReport>prompt</ErrorReport>
3838
<WarningLevel>4</WarningLevel>
3939
</PropertyGroup>
40+
<PropertyGroup>
41+
<ApplicationIcon>Res\soft.ico</ApplicationIcon>
42+
</PropertyGroup>
4043
<ItemGroup>
4144
<Reference Include="CommonServiceLocator, Version=2.0.2.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
4245
<HintPath>..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll</HintPath>
@@ -123,6 +126,9 @@
123126
<None Include="App.config" />
124127
</ItemGroup>
125128
<ItemGroup />
129+
<ItemGroup>
130+
<Resource Include="Res\soft.ico" />
131+
</ItemGroup>
126132
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127133
<Import Project="..\packages\Fody.6.1.1\build\Fody.targets" Condition="Exists('..\packages\Fody.6.1.1\build\Fody.targets')" />
128134
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

SoftwareCopyrightTool/View/MainWindow.xaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
8-
Title="软件著作权代码生成器"
98
Width="800"
109
Height="450"
1110
AllowDrop="True"
1211
mc:Ignorable="d">
1312
<pu:WindowX.DataContext>
1413
<Binding Path="Main" Source="{StaticResource Locator}" />
1514
</pu:WindowX.DataContext>
15+
<pu:WindowXCaption.Header>
16+
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
17+
<Label Width="5" />
18+
<Image Width="24" Height="24" RenderOptions.BitmapScalingMode="HighQuality" Source="../Res/soft.ico" />
19+
<Label Width="5" />
20+
<Label Content="软件著作权代码生成器" />
21+
</StackPanel>
22+
</pu:WindowXCaption.Header>
1623
<DockPanel Margin="5">
1724
<DockPanel Margin="5" DockPanel.Dock="Top">
1825
<Label Margin="3">扫描文件夹</Label>

0 commit comments

Comments
 (0)