Skip to content

Commit

Permalink
Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
billiegoose committed Oct 7, 2016
1 parent f8d7aa6 commit 3f5628a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions InvisibleLockScreen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>blank_screen.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -90,6 +93,14 @@
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="blank_screen.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="Properties\blank_screen.ico" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file added Properties/blank_screen.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion Screensaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ private void RunNormalMultipleWindows()
#endif
primary.FormBorderStyle = FormBorderStyle.None;
primary.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
primary.Icon = new Icon("Resources/blank_screen.ico");

foreach (Screen screen in Screen.AllScreens)
{
Expand All @@ -537,8 +538,9 @@ private void RunNormalMultipleWindows()
form.Size = screen.Bounds.Size;
form.FormBorderStyle = FormBorderStyle.None;
form.Text = primary.Text;
form.Icon = new Icon("Resources/blank_screen.ico");

windows.Add(new Window(this, form));
windows.Add(new Window(this, form));
}

windows.Insert(0, new Window(this, primary));
Expand Down
Binary file added blank_screen.ico
Binary file not shown.

0 comments on commit 3f5628a

Please sign in to comment.