Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs
index cdae3b1..19b4750 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs
@@ -69,15 +69,7 @@ namespace Xamarin.PropertyEditing.Mac
NSLayoutConstraint.Create (this.popUpButton, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, this, NSLayoutAttribute.CenterY, 1f, 0),
});
- ViewDidChangeEffectiveAppearance ();
- }
-
- public override void ViewDidChangeEffectiveAppearance ()
- {
- base.ViewDidChangeEffectiveAppearance ();
-
- this.popover.SetAppearance (HostResources.GetVibrantAppearance (EffectiveAppearance));
- this.popover.ContentViewController.View.Appearance = EffectiveAppearance;
+ AppearanceChanged ();
}
readonly ColorPopUpButton popUpButton;
@@ -132,5 +124,13 @@ namespace Xamarin.PropertyEditing.Mac
}
}
}
+
+ protected override void AppearanceChanged ()
+ {
+ base.AppearanceChanged ();
+
+ this.popover.SetAppearance (HostResources.GetVibrantAppearance (EffectiveAppearance));
+ this.popover.ContentViewController.View.Appearance = EffectiveAppearance;
+ }
}
}