public WindowTabletViewSettings(Configuration config)
        {
            InitializeComponent();
            this.config = config;

            presets = new List <Configuration.Preset>
            {
                new Configuration.Preset("Default", (c) =>
                {
                }),

                new Configuration.Preset("OBS Overlay", (c) =>
                {
                    Configuration.TabletViewSettings settings = c.TabletView;
                    settings.BackgroundColor = "#000000";
                    settings.InfoColor       = "#3333FF";
                    settings.InputColor      = "#33FF33";
                    settings.OutputColor     = "#FF3333";
                    settings.LatencyColor    = "#FFFF33";
                    settings.DrawColor       = "#FFFFFF";
                }),

                new Configuration.Preset("OBS Overlay 2", (c) =>
                {
                    Configuration.TabletViewSettings settings = c.TabletView;
                    settings.BackgroundColor   = "#000000";
                    settings.InfoColor         = Utils.RGBToHexColor(50, 100, 255);
                    settings.InputColor        = Utils.RGBToHexColor(190, 255, 0);
                    settings.OutputColor       = Utils.RGBToHexColor(255, 190, 0);
                    settings.LatencyColor      = Utils.RGBToHexColor(230, 200, 0);
                    settings.DrawColor         = "#6666AA";
                    settings.InputTrailLength  = 100;
                    settings.OutputTrailLength = 100;
                    settings.DrawLength        = 0;
                    settings.Font             = "Exo 2";
                    settings.FontSize         = 25;
                    settings.OffsetText.X     = 0;
                    settings.OffsetText.Y     = 10;
                    settings.OffsetPressure.X = -15;
                    settings.OffsetPressure.Y = 12;
                    settings.FadeInOut        = true;
                }),

                new Configuration.Preset("OBS Input Cursor Only", (c) =>
                {
                    Configuration.TabletViewSettings settings = c.TabletView;
                    settings.BackgroundColor   = "#000000";
                    settings.InputColor        = "#33FF33";
                    settings.OutputColor       = "transparent";
                    settings.InputTrailLength  = 100;
                    settings.OutputTrailLength = 0;
                    settings.OffsetText        = new Point(0, -200);
                    settings.OffsetPressure    = new Point(0, -200);
                    settings.FadeInOut         = true;
                }),

                new Configuration.Preset("OBS Output Cursor Only", (c) =>
                {
                    Configuration.TabletViewSettings settings = c.TabletView;
                    settings.BackgroundColor   = "#000000";
                    settings.InputColor        = "transparent";
                    settings.OutputColor       = "#FF3333";
                    settings.InputTrailLength  = 0;
                    settings.OutputTrailLength = 100;
                    settings.OffsetText        = new Point(0, -200);
                    settings.OffsetPressure    = new Point(0, -200);
                    settings.FadeInOut         = true;
                }),
            };

            // Fill combobox
            foreach (var preset in presets)
            {
                comboBoxPresets.Items.Add(preset);
            }
            comboBoxPresets.Focus();

            LoadValues(config);

            KeyDown += WindowTabletViewSettings_KeyDown;
        }