mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Show ShareX logo in about window
This commit is contained in:
parent
4d8f40c36b
commit
64ff083c98
4 changed files with 73 additions and 24 deletions
|
@ -47,6 +47,8 @@ public Canvas()
|
|||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
if (timer == null || !timer.Enabled)
|
||||
{
|
||||
Stop();
|
||||
|
||||
|
@ -55,6 +57,7 @@ public void Start()
|
|||
timer.Tick += timer_Tick;
|
||||
timer.Start();
|
||||
}
|
||||
}
|
||||
|
||||
public void Start(int interval)
|
||||
{
|
||||
|
|
20
ShareX/Forms/AboutForm.Designer.cs
generated
20
ShareX/Forms/AboutForm.Designer.cs
generated
|
@ -46,11 +46,13 @@ private void InitializeComponent()
|
|||
this.lblTeam = new System.Windows.Forms.Label();
|
||||
this.lblSteamBuild = new System.Windows.Forms.Label();
|
||||
this.pbSteam = new System.Windows.Forms.PictureBox();
|
||||
this.pbLogo = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbMikeURL)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbAU)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbBerkURL)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbTR)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbSteam)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLogo)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblProductName
|
||||
|
@ -76,7 +78,7 @@ private void InitializeComponent()
|
|||
// rtbCredits
|
||||
//
|
||||
resources.ApplyResources(this.rtbCredits, "rtbCredits");
|
||||
this.rtbCredits.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.rtbCredits.BackColor = System.Drawing.Color.White;
|
||||
this.rtbCredits.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.rtbCredits.Name = "rtbCredits";
|
||||
this.rtbCredits.ReadOnly = true;
|
||||
|
@ -84,7 +86,7 @@ private void InitializeComponent()
|
|||
//
|
||||
// rtbShareXInfo
|
||||
//
|
||||
this.rtbShareXInfo.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.rtbShareXInfo.BackColor = System.Drawing.Color.White;
|
||||
this.rtbShareXInfo.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
resources.ApplyResources(this.rtbShareXInfo, "rtbShareXInfo");
|
||||
this.rtbShareXInfo.Name = "rtbShareXInfo";
|
||||
|
@ -148,6 +150,7 @@ private void InitializeComponent()
|
|||
// lblSteamBuild
|
||||
//
|
||||
resources.ApplyResources(this.lblSteamBuild, "lblSteamBuild");
|
||||
this.lblSteamBuild.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSteamBuild.Name = "lblSteamBuild";
|
||||
//
|
||||
// pbSteam
|
||||
|
@ -160,11 +163,20 @@ private void InitializeComponent()
|
|||
this.pbSteam.TabStop = false;
|
||||
this.pbSteam.Click += new System.EventHandler(this.pbSteam_Click);
|
||||
//
|
||||
// pbLogo
|
||||
//
|
||||
resources.ApplyResources(this.pbLogo, "pbLogo");
|
||||
this.pbLogo.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pbLogo.Name = "pbLogo";
|
||||
this.pbLogo.TabStop = false;
|
||||
this.pbLogo.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbLogo_MouseDown);
|
||||
//
|
||||
// AboutForm
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Controls.Add(this.pbLogo);
|
||||
this.Controls.Add(this.pbSteam);
|
||||
this.Controls.Add(this.lblSteamBuild);
|
||||
this.Controls.Add(this.lblTeam);
|
||||
|
@ -188,6 +200,7 @@ private void InitializeComponent()
|
|||
((System.ComponentModel.ISupportInitialize)(this.pbBerkURL)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbTR)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbSteam)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLogo)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -209,5 +222,6 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.Label lblTeam;
|
||||
private System.Windows.Forms.Label lblSteamBuild;
|
||||
private System.Windows.Forms.PictureBox pbSteam;
|
||||
private System.Windows.Forms.PictureBox pbLogo;
|
||||
}
|
||||
}
|
|
@ -38,6 +38,7 @@ public AboutForm()
|
|||
{
|
||||
InitializeComponent();
|
||||
lblProductName.Text = Program.Title;
|
||||
pbLogo.Image = ShareXResources.Logo;
|
||||
|
||||
rtbShareXInfo.AddContextMenu();
|
||||
rtbCredits.AddContextMenu();
|
||||
|
@ -121,7 +122,12 @@ public AboutForm()
|
|||
private void AboutForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowActivate();
|
||||
}
|
||||
|
||||
private void pbLogo_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
cLogo.Start(50);
|
||||
pbLogo.Visible = false;
|
||||
}
|
||||
|
||||
private void pbSteam_Click(object sender, EventArgs e)
|
||||
|
@ -254,7 +260,6 @@ private void cLogo_MouseDown(object sender, MouseEventArgs e)
|
|||
if (clickCount >= 10)
|
||||
{
|
||||
isEasterEggStarted = true;
|
||||
cLogo.Stop();
|
||||
RunEasterEgg();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,13 +123,13 @@
|
|||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="lblProductName.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Microsoft Sans Serif, 14.25pt</value>
|
||||
<value>Verdana, 14.25pt</value>
|
||||
</data>
|
||||
<data name="lblProductName.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>12, 8</value>
|
||||
</data>
|
||||
<data name="lblProductName.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>0, 24</value>
|
||||
<value>0, 23</value>
|
||||
</data>
|
||||
<data name="lblProductName.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
|
@ -147,7 +147,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>lblProductName.ZOrder" xml:space="preserve">
|
||||
<value>12</value>
|
||||
<value>13</value>
|
||||
</data>
|
||||
<data name="lblBerk.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -171,7 +171,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>lblBerk.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="lblMike.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -195,7 +195,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>lblMike.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="rtbCredits.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
|
@ -226,7 +226,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>rtbCredits.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="rtbShareXInfo.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>16, 66</value>
|
||||
|
@ -250,7 +250,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>rtbShareXInfo.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="cLogo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
|
@ -274,7 +274,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>cLogo.ZOrder" xml:space="preserve">
|
||||
<value>13</value>
|
||||
<value>14</value>
|
||||
</data>
|
||||
<data name="uclUpdate.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>14, 35</value>
|
||||
|
@ -295,7 +295,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>uclUpdate.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="pbMikeURL.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>41, 185</value>
|
||||
|
@ -319,7 +319,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbMikeURL.ZOrder" xml:space="preserve">
|
||||
<value>8</value>
|
||||
<value>9</value>
|
||||
</data>
|
||||
<data name="pbAU.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>17, 185</value>
|
||||
|
@ -343,7 +343,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbAU.ZOrder" xml:space="preserve">
|
||||
<value>9</value>
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name="pbBerkURL.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>41, 161</value>
|
||||
|
@ -367,7 +367,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbBerkURL.ZOrder" xml:space="preserve">
|
||||
<value>10</value>
|
||||
<value>11</value>
|
||||
</data>
|
||||
<data name="pbTR.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>17, 161</value>
|
||||
|
@ -391,7 +391,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbTR.ZOrder" xml:space="preserve">
|
||||
<value>11</value>
|
||||
<value>12</value>
|
||||
</data>
|
||||
<data name="lblTeam.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -415,7 +415,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>lblTeam.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="lblSteamBuild.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -445,7 +445,7 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>lblSteamBuild.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="pbSteam.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
|
@ -472,6 +472,33 @@
|
|||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbSteam.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="pbLogo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="pbLogo.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>376, 8</value>
|
||||
</data>
|
||||
<data name="pbLogo.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>200, 200</value>
|
||||
</data>
|
||||
<data name="pbLogo.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
|
||||
<value>Zoom</value>
|
||||
</data>
|
||||
<data name="pbLogo.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>18</value>
|
||||
</data>
|
||||
<data name=">>pbLogo.Name" xml:space="preserve">
|
||||
<value>pbLogo</value>
|
||||
</data>
|
||||
<data name=">>pbLogo.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbLogo.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pbLogo.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
|
Loading…
Reference in a new issue