This commit is contained in:
Frank Skare
2019-04-09 04:57:29 +02:00
parent fec33056cb
commit 2e435dcdc0
24 changed files with 174 additions and 60 deletions

View File

@@ -8,7 +8,6 @@ using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using DynamicGUI;
namespace mpvConfEdit
@@ -45,10 +44,14 @@ namespace mpvConfEdit
switch (setting)
{
case StringSetting s:
MainStackPanel.Children.Add(new StringSettingControl(s));
var sc = new StringSettingControl(s);
sc.TitleTextBox.Foreground = Controls.Controls.ThemeBrush;
MainStackPanel.Children.Add(sc);
break;
case OptionSetting s:
MainStackPanel.Children.Add(new OptionSettingControl(s));
var oc = new OptionSettingControl(s);
oc.TitleTextBox.Foreground = Controls.Controls.ThemeBrush;
MainStackPanel.Children.Add(oc);
break;
}
}