Skip to content

Commit d5b4a24

Browse files
committed
added icon :3
1 parent 0ae5c74 commit d5b4a24

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Borderlesser/Borderlesser.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>
3535
</PropertyGroup>
36+
<PropertyGroup>
37+
<ApplicationIcon>frame.ico</ApplicationIcon>
38+
</PropertyGroup>
3639
<ItemGroup>
3740
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
3841
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
@@ -94,5 +97,8 @@
9497
</None>
9598
<None Include="packages.config" />
9699
</ItemGroup>
100+
<ItemGroup>
101+
<Resource Include="frame.ico" />
102+
</ItemGroup>
97103
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
98104
</Project>

Borderlesser/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public MainWindow() {
8585

8686
m_icon = new System.Windows.Forms.NotifyIcon {
8787
Visible = true,
88-
Icon = new System.Drawing.Icon(System.Drawing.SystemIcons.Exclamation, 40, 40),
88+
Icon = new System.Drawing.Icon(Application.GetResourceStream(new Uri("/frame.ico", UriKind.Relative)).Stream),
8989
ContextMenu = new System.Windows.Forms.ContextMenu(
9090
new System.Windows.Forms.MenuItem[] {
9191
new System.Windows.Forms.MenuItem("Open", (sender, e) => { NotifyShow(); }),

Borderlesser/frame.ico

3.19 KB
Binary file not shown.

0 commit comments

Comments
 (0)