2016-12-11 14:25:29 -05:00
|
|
|
using System.Windows.Forms;
|
|
|
|
using System.Drawing;
|
|
|
|
using Mesen.GUI;
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Controls
|
|
|
|
{
|
|
|
|
public class BaseControl : UserControl
|
|
|
|
{
|
2016-12-18 12:43:20 -05:00
|
|
|
public static float DefaultFontSize = Program.IsMono ? 10 : 12;
|
|
|
|
|
2016-12-11 14:25:29 -05:00
|
|
|
public static string MonospaceFontFamily
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
if(Program.IsMono) {
|
2016-12-18 12:43:20 -05:00
|
|
|
return "DroidSansMono";
|
2016-12-11 14:25:29 -05:00
|
|
|
} else {
|
|
|
|
return "Consolas";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public new SizeF AutoScaleDimensions
|
|
|
|
{
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public new AutoScaleMode AutoScaleMode
|
|
|
|
{
|
|
|
|
set {
|
|
|
|
if(Program.IsMono) {
|
|
|
|
base.AutoScaleMode = AutoScaleMode.None;
|
|
|
|
} else {
|
|
|
|
base.AutoScaleMode = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|