diff options
author | Dominique Louis <savagesoftware@gmail.com> | 2019-05-01 17:18:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 17:18:55 +0300 |
commit | f74e027bd387a82be39e9458ddea1d9edfefaa0a (patch) | |
tree | 106aff18d3abd48bec9026a16e0ed819e28b2551 /Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs | |
parent | 40c2ea08e7c2796b73e464bda91353551a477e27 (diff) | |
parent | 0cd63e77cd637189dd901bc29cca8286ab9fdf7e (diff) |
Merge pull request #590 from xamarin/dominique-Fix587
[Mac] Move appearance setting calls outside ViewDidChangeEffectiveApp…
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs index d5e038c..005ef89 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs @@ -114,17 +114,7 @@ namespace Xamarin.PropertyEditing.Mac NSLayoutConstraint.Create (HeightLabel, NSLayoutAttribute.CenterX, NSLayoutRelation.Equal, HeightEditor.Subviews[0], NSLayoutAttribute.CenterX, 1f, 0), }); - ViewDidChangeEffectiveAppearance (); - } - - public override void ViewDidChangeEffectiveAppearance () - { - XLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); - YLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); - WidthLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); - HeightLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); - - base.ViewDidChangeEffectiveAppearance (); + AppearanceChanged (); } protected virtual void OnInputUpdated (object sender, EventArgs e) @@ -154,5 +144,15 @@ namespace Xamarin.PropertyEditing.Mac HeightEditor.AccessibilityEnabled = HeightEditor.Enabled; HeightEditor.AccessibilityTitle = string.Format (Properties.Resources.AccessibilityHeightEditor, ViewModel.Property.Name); } + + protected override void AppearanceChanged () + { + base.AppearanceChanged (); + + XLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); + YLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); + WidthLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); + HeightLabel.TextColor = HostResources.GetNamedColor (NamedResources.DescriptionLabelColor); + } } } |