Linux: Switch textbox background color to white

This commit is contained in:
Sour 2018-07-10 00:05:18 -04:00
parent c85a09038d
commit bac9d3d49a

View file

@ -143,6 +143,10 @@ namespace Mesen.GUI.Forms
if(Program.IsMono) {
if(container is TextBox) {
((TextBox)container).BorderStyle = BorderStyle.FixedSingle;
((TextBox)container).BackColor = ((TextBox)container).ReadOnly ? Color.FromArgb(240, 240, 240) : Color.FromArgb(255, 255, 255);
((TextBox)container).ReadOnlyChanged += (object sender, EventArgs e) => {
((TextBox)sender).BackColor = ((TextBox)sender).ReadOnly ? Color.FromArgb(240, 240, 240) : Color.FromArgb(255, 255, 255);
};
} else if(container is CheckBox) {
((CheckBox)container).FlatStyle = FlatStyle.Flat;
} else if(container is Button) {