Use blank image in the pause icon of the statusbar so that the icon size doesn't change

This commit is contained in:
andres.delikat 2011-07-09 18:39:48 +00:00
parent 8b94d5f6f2
commit b25193ef84
6 changed files with 18 additions and 7 deletions

View File

@ -595,6 +595,7 @@
<None Include="images\Fullscreen.png" />
<None Include="images\camera.png" />
<None Include="images\Recent.png" />
<None Include="images\Blank.png" />
<Content Include="output\gamedb.txt" />
<Content Include="output\gamedb_neshomebrew.txt" />
<None Include="images\Refresh.bmp" />

View File

@ -1643,12 +1643,12 @@
// PauseStrip
//
this.PauseStrip.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.PauseStrip.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.None;
this.PauseStrip.Image = global::BizHawk.MultiClient.Properties.Resources.Pause;
this.PauseStrip.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.PauseStrip.Image = global::BizHawk.MultiClient.Properties.Resources.Blank;
this.PauseStrip.ImageTransparentColor = System.Drawing.Color.Magenta;
this.PauseStrip.Name = "PauseStrip";
this.PauseStrip.ShowDropDownArrow = false;
this.PauseStrip.Size = new System.Drawing.Size(4, 20);
this.PauseStrip.Size = new System.Drawing.Size(20, 20);
this.PauseStrip.Text = "toolStripDropDownButton1";
this.PauseStrip.ToolTipText = "Emulator is paused";
//

View File

@ -334,22 +334,22 @@ namespace BizHawk.MultiClient
private void PauseEmulator()
{
EmulatorPaused = true;
PauseStrip.DisplayStyle = ToolStripItemDisplayStyle.Image;
PauseStrip.Image = BizHawk.MultiClient.Properties.Resources.Pause;
}
private void UnpauseEmulator()
{
EmulatorPaused = false;
PauseStrip.DisplayStyle = ToolStripItemDisplayStyle.None;
PauseStrip.Image = BizHawk.MultiClient.Properties.Resources.Blank;
}
public void TogglePause()
{
EmulatorPaused ^= true;
if (EmulatorPaused)
PauseStrip.DisplayStyle = ToolStripItemDisplayStyle.Image;
PauseStrip.Image = BizHawk.MultiClient.Properties.Resources.Pause;
else
PauseStrip.DisplayStyle = ToolStripItemDisplayStyle.None;
PauseStrip.Image = BizHawk.MultiClient.Properties.Resources.Blank;
}

View File

@ -81,6 +81,13 @@ namespace BizHawk.MultiClient.Properties {
}
}
internal static System.Drawing.Bitmap Blank {
get {
object obj = ResourceManager.GetObject("Blank", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap BlueDown {
get {
object obj = ResourceManager.GetObject("BlueDown", resourceCulture);

View File

@ -741,4 +741,7 @@
<data name="Recent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\Recent.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Blank" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\Blank.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB