This commit is contained in:
Will Hilton 2016-10-07 18:50:42 -04:00
parent f8d7aa67e6
commit 3f5628a2c0
4 changed files with 14 additions and 1 deletions

View file

@ -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" />
@ -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.

BIN
Properties/blank_screen.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View file

@ -520,6 +520,7 @@ namespace Screensavers
#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)
{
@ -537,8 +538,9 @@ namespace Screensavers
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));

BIN
blank_screen.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB