Skip to content

Commit 8a79c72

Browse files
committed
Add title and icon
1 parent 6867ac4 commit 8a79c72

5 files changed

Lines changed: 39 additions & 2 deletions

File tree

OpenVRStartup/OpenVRStartup.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@
5757
<PropertyGroup>
5858
<StartupObject />
5959
</PropertyGroup>
60+
<PropertyGroup>
61+
<ApplicationIcon>resources\logo.ico</ApplicationIcon>
62+
</PropertyGroup>
6063
<ItemGroup>
6164
<Reference Include="System" />
6265
<Reference Include="System.Core" />
66+
<Reference Include="System.Drawing" />
6367
<Reference Include="System.Xml.Linq" />
6468
<Reference Include="System.Data.DataSetExtensions" />
6569
<Reference Include="Microsoft.CSharp" />
@@ -105,5 +109,9 @@
105109
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
106110
</EmbeddedResource>
107111
</ItemGroup>
112+
<ItemGroup />
113+
<ItemGroup>
114+
<Content Include="resources\logo.ico" />
115+
</ItemGroup>
108116
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
109117
</Project>

OpenVRStartup/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class Program
2222

2323
static void Main(string[] _)
2424
{
25+
// Window setup
26+
Console.Title = Properties.Resources.AppName;
27+
2528
// Starting worker
2629
var t = new Thread(Worker);
2730
LogUtils.WriteLineToCache($"Application starting ({Properties.Resources.Version})");

OpenVRStartup/Properties/Resources.Designer.cs

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenVRStartup/Properties/Resources.resx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,14 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120+
<data name="AppName" xml:space="preserve">
121+
<value>OpenVRStartup</value>
122+
</data>
123+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
124+
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
125+
<value>..\resources\logo.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126+
</data>
120127
<data name="Version" xml:space="preserve">
121-
<value>v0.11</value>
128+
<value>v0.13</value>
122129
</data>
123130
</root>

OpenVRStartup/resources/logo.ico

97.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)