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 | |
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')
-rw-r--r-- | Xamarin.PropertyEditing/Themes/BaseThemeManager.cs | 38 | ||||
-rw-r--r-- | Xamarin.PropertyEditing/Themes/PropertyEditorTheme.cs | 9 | ||||
-rw-r--r-- | Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj | 4 |
3 files changed, 0 insertions, 51 deletions
diff --git a/Xamarin.PropertyEditing/Themes/BaseThemeManager.cs b/Xamarin.PropertyEditing/Themes/BaseThemeManager.cs deleted file mode 100644 index 1431591..0000000 --- a/Xamarin.PropertyEditing/Themes/BaseThemeManager.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; - -namespace Xamarin.PropertyEditing.Themes -{ - public abstract class BaseThemeManager - { - PropertyEditorTheme theme; - - public BaseThemeManager () - { - NotifyThemeChanged (); - } - - protected abstract void SetTheme (); - - public PropertyEditorTheme Theme - { - get { - return theme; - } - - set { - if (theme != value) { - theme = value; - NotifyThemeChanged (); - } - } - } - - void NotifyThemeChanged () - { - SetTheme (); - ThemeChanged?.Invoke (null, EventArgs.Empty); - } - - public event EventHandler ThemeChanged; - } -} diff --git a/Xamarin.PropertyEditing/Themes/PropertyEditorTheme.cs b/Xamarin.PropertyEditing/Themes/PropertyEditorTheme.cs deleted file mode 100644 index efe9ac5..0000000 --- a/Xamarin.PropertyEditing/Themes/PropertyEditorTheme.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Xamarin.PropertyEditing.Themes -{ - public enum PropertyEditorTheme - { - Dark, - Light, - None, - } -} diff --git a/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj b/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj index 39ba238..35df7c9 100644 --- a/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj +++ b/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj @@ -173,10 +173,6 @@ <Compile Include="ViewModels\IPropertyValue.cs" /> </ItemGroup> <ItemGroup> - <Compile Include="Themes\BaseThemeManager.cs" /> - <Compile Include="Themes\PropertyEditorTheme.cs" /> - </ItemGroup> - <ItemGroup> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>PublicResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> |