Application icon as embedded resource

This commit is contained in:
2020-02-29 23:49:27 +01:00
parent eb75e583f1
commit 1f4ac35278
3 changed files with 9 additions and 5 deletions

View File

@@ -10,9 +10,10 @@
<EmbeddedResource Include="**\*.glade">
<LogicalName>%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
<None Update="Icons\icon.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Remove="Icons\icon.png" />
<EmbeddedResource Include="Icons\icon.png">
<LogicalName>%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>

View File

@@ -1,8 +1,10 @@
using EstusShots.Client;
using EstusShots.Gtk.Controls;
using EstusShots.Shared.Dto;
using Gdk;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
using Window = Gtk.Window;
namespace EstusShots.Gtk
{
@@ -30,7 +32,9 @@ namespace EstusShots.Gtk
Client = new EstusShotsClient(ApiUrl);
DeleteEvent += Window_DeleteEvent;
Icon = Pixbuf.LoadFromResource("icon.png");
// Call initialization code of each page
InitSeasonsPage();
InitEpisodesPage();

View File

@@ -41,7 +41,6 @@
<property name="title" translatable="yes">Estus Shots</property>
<property name="default_width">800</property>
<property name="default_height">600</property>
<property name="icon">Icons/icon.png</property>
<child>
<placeholder/>
</child>