Skip to content

Commit

Permalink
added icon :3
Browse files Browse the repository at this point in the history
  • Loading branch information
sum-catnip committed Nov 20, 2018
1 parent 0ae5c74 commit d5b4a24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Borderlesser/Borderlesser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>frame.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
Expand Down Expand Up @@ -94,5 +97,8 @@
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Resource Include="frame.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
2 changes: 1 addition & 1 deletion Borderlesser/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public MainWindow() {

m_icon = new System.Windows.Forms.NotifyIcon {
Visible = true,
Icon = new System.Drawing.Icon(System.Drawing.SystemIcons.Exclamation, 40, 40),
Icon = new System.Drawing.Icon(Application.GetResourceStream(new Uri("/frame.ico", UriKind.Relative)).Stream),
ContextMenu = new System.Windows.Forms.ContextMenu(
new System.Windows.Forms.MenuItem[] {
new System.Windows.Forms.MenuItem("Open", (sender, e) => { NotifyShow(); }),
Expand Down
Binary file added Borderlesser/frame.ico
Binary file not shown.

0 comments on commit d5b4a24

Please sign in to comment.