diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-01-03 22:44:37 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-01-11 23:19:25 +0300 |
commit | 71ad75860e1c5b6c33163d390988dbfbf409b4ac (patch) | |
tree | 80f6ed1ac0a1a0face888e3481f802f4d328a312 /Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs | |
parent | 104acbcc9c62e1a90e9e43cb7630583cb2b49ca4 (diff) |
[mac] Revamp theming
This commit:
- Drops outdated CG* editors
- Drops ThemeManager
- Introduces IHostResourceProvider
- Moves all images to new API
- Starts implementing colors
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs index 46bebb8..efa2171 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/PropertyEditorControl.cs @@ -10,6 +10,11 @@ namespace Xamarin.PropertyEditing.Mac internal abstract class PropertyEditorControl : BaseEditorControl, IEditorView { + protected PropertyEditorControl (IHostResourceProvider hostResources) + : base (hostResources) + { + } + public string Label { get; set; } public abstract NSView FirstKeyView { get; } @@ -126,9 +131,15 @@ namespace Xamarin.PropertyEditing.Mac protected abstract void UpdateAccessibilityValues (); } - internal abstract class PropertyEditorControl<TViewModel> : PropertyEditorControl + internal abstract class PropertyEditorControl<TViewModel> + : PropertyEditorControl where TViewModel : PropertyViewModel { + public PropertyEditorControl (IHostResourceProvider hostResources) + : base (hostResources) + { + } + internal new TViewModel ViewModel { get { return (TViewModel)base.ViewModel; } |