Fixed contextual tabs

This commit is contained in:
Ben
2015-07-06 12:01:48 +01:00
parent bfa2341ab8
commit d6bd1678b4
12 changed files with 207 additions and 115 deletions

View File

@@ -1,7 +1,6 @@
using System;
using System.Globalization;
using System.Windows.Data;
using Filtration.ObjectModel.BlockItemTypes;
using Filtration.ObjectModel.Enums;
using Filtration.ObjectModel.Extensions;
@@ -18,6 +17,22 @@ namespace Filtration.ThemeEditor.Converters
}
var type = (ThemeComponentType) value;
switch (type.GetAttributeDescription())
{
case "TextColor":
{
return "Text";
}
case "BorderColor":
{
return "Border";
}
case "BackgroundColor":
{
return "Background";
}
}
return type.GetAttributeDescription();
}