Linux: Fixed trackbar background color in Mono

This commit is contained in:
Souryo 2016-12-17 15:46:13 -05:00
parent 35979c6291
commit 4a5e3e0478
6 changed files with 14 additions and 5 deletions

View File

@ -55,7 +55,6 @@
//
// trackBar
//
this.trackBar.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.trackBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.trackBar.Location = new System.Drawing.Point(0, 20);
this.trackBar.Margin = new System.Windows.Forms.Padding(0);

View File

@ -21,6 +21,10 @@ namespace Mesen.GUI.Controls
public ctrlHorizontalTrackbar()
{
InitializeComponent();
if(!Program.IsMono) {
this.trackBar.BackColor = System.Drawing.SystemColors.ControlLightLight;
}
}
public int Maximum

View File

@ -67,7 +67,6 @@
//
this.trackBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackBar.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.trackBar.Location = new System.Drawing.Point(17, 0);
this.trackBar.Margin = new System.Windows.Forms.Padding(0);
this.trackBar.Maximum = 100;

View File

@ -21,6 +21,10 @@ namespace Mesen.GUI.Controls
public ctrlTrackbar()
{
InitializeComponent();
if(!Program.IsMono) {
this.trackBar.BackColor = System.Drawing.SystemColors.ControlLightLight;
}
}
public int Maximum

View File

@ -1002,7 +1002,6 @@
//
// trkReverbDelay
//
this.trkReverbDelay.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.trkReverbDelay.Location = new System.Drawing.Point(59, 58);
this.trkReverbDelay.Maximum = 30;
this.trkReverbDelay.Minimum = 1;
@ -1013,8 +1012,7 @@
this.trkReverbDelay.Value = 1;
//
// trkReverbStrength
//
this.trkReverbStrength.BackColor = System.Drawing.SystemColors.ControlLightLight;
//
this.trkReverbStrength.Location = new System.Drawing.Point(59, 26);
this.trkReverbStrength.Minimum = 1;
this.trkReverbStrength.Name = "trkReverbStrength";

View File

@ -17,6 +17,11 @@ namespace Mesen.GUI.Forms.Config
{
InitializeComponent();
if(!Program.IsMono) {
this.trkReverbDelay.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.trkReverbStrength.BackColor = System.Drawing.SystemColors.ControlLightLight;
}
Icon = Properties.Resources.Audio;
Entity = ConfigManager.Config.AudioInfo;