Browse Source

Set secondary color

CPKreuz 4 years ago
parent
commit
792f0ffc6a

+ 1 - 0
PixiEditor/Models/Tools/ToolSettings/Settings/ColorSetting.cs

@@ -28,6 +28,7 @@ namespace PixiEditor.Models.Tools.ToolSettings.Settings
             {
             {
                 Style = (Style)resourceDictionary["DefaultColorPickerStyle"]
                 Style = (Style)resourceDictionary["DefaultColorPickerStyle"]
             };
             };
+
             Binding binding = new Binding("Value")
             Binding binding = new Binding("Value")
             {
             {
                 Mode = BindingMode.TwoWay
                 Mode = BindingMode.TwoWay

+ 2 - 1
PixiEditor/Views/UserControls/ToolSettingColorPicker.xaml.cs

@@ -13,7 +13,7 @@ namespace PixiEditor.Views
     /// </summary>
     /// </summary>
     public partial class ToolSettingColorPicker : UserControl
     public partial class ToolSettingColorPicker : UserControl
     {
     {
-        public static DependencyProperty SelectedColorProperty =
+        public static readonly DependencyProperty SelectedColorProperty =
             DependencyProperty.Register(nameof(SelectedColor), typeof(Color), typeof(ToolSettingColorPicker));
             DependencyProperty.Register(nameof(SelectedColor), typeof(Color), typeof(ToolSettingColorPicker));
 
 
         public Color SelectedColor
         public Color SelectedColor
@@ -37,6 +37,7 @@ namespace PixiEditor.Views
         public ToolSettingColorPicker()
         public ToolSettingColorPicker()
         {
         {
             InitializeComponent();
             InitializeComponent();
+            ColorPicker.SecondaryColor = Colors.Black;
 
 
             CopyMainColorCommand = new RelayCommand(CopyMainColor);
             CopyMainColorCommand = new RelayCommand(CopyMainColor);
         }
         }