Add icon to PC viewer

This commit is contained in:
XorTroll 2019-11-10 17:50:43 +01:00
parent 70b2f5e0bc
commit 9abb0b5fba
3 changed files with 1108 additions and 0 deletions

View file

@ -36,6 +36,9 @@
<PropertyGroup> <PropertyGroup>
<StartupObject>QForegroundViewer.Program</StartupObject> <StartupObject>QForegroundViewer.Program</StartupObject>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
@ -103,5 +106,8 @@
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View file

@ -28,6 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ViewerMainForm));
this.CaptureBox = new System.Windows.Forms.PictureBox(); this.CaptureBox = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.CaptureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.CaptureBox)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@ -50,6 +51,7 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1280, 720); this.ClientSize = new System.Drawing.Size(1280, 720);
this.Controls.Add(this.CaptureBox); this.Controls.Add(this.CaptureBox);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "ViewerMainForm"; this.Name = "ViewerMainForm";
this.Text = "uLaunch - Foreground display viewer"; this.Text = "uLaunch - Foreground display viewer";
((System.ComponentModel.ISupportInitialize)(this.CaptureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.CaptureBox)).EndInit();

File diff suppressed because it is too large Load diff