mirror of
https://github.com/wmhilton/lock-screen.git
synced 2024-05-12 00:03:02 +12:00
Add icon
This commit is contained in:
parent
f8d7aa67e6
commit
3f5628a2c0
|
@ -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
BIN
Properties/blank_screen.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
|
@ -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
BIN
blank_screen.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
Loading…
Reference in a new issue