Linux: Switch textbox background color to white
This commit is contained in:
parent
c85a09038d
commit
bac9d3d49a
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue