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/Custom/BasePopOverControl.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/BasePopOverControl.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/BasePopOverControl.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/BasePopOverControl.cs
index d705b9e..e4bea5e 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/Custom/BasePopOverControl.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/BasePopOverControl.cs
@@ -51,9 +51,7 @@ namespace Xamarin.PropertyEditing.Mac
NSLayoutConstraint.Create (this.viewTitle, NSLayoutAttribute.Height, NSLayoutRelation.Equal, 1f, PropertyEditorControl.DefaultControlHeight),
});
- this.SetAppearance (hostResources.GetVibrantAppearance (EffectiveAppearance));
-
- ViewDidChangeEffectiveAppearance ();
+ AppearanceChanged ();
}
protected IHostResourceProvider HostResources
@@ -64,6 +62,13 @@ namespace Xamarin.PropertyEditing.Mac
public override void ViewDidChangeEffectiveAppearance ()
{
+ base.ViewDidChangeEffectiveAppearance ();
+ AppearanceChanged ();
+ }
+
+ protected void AppearanceChanged()
+ {
+ this.SetAppearance (HostResources.GetVibrantAppearance (EffectiveAppearance));
this.viewTitle.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor);
}
}