diff --git a/src/DynamoCoreWpf/DynamoCoreWpf.csproj b/src/DynamoCoreWpf/DynamoCoreWpf.csproj index df6e7031054..9d21d3618af 100644 --- a/src/DynamoCoreWpf/DynamoCoreWpf.csproj +++ b/src/DynamoCoreWpf/DynamoCoreWpf.csproj @@ -304,6 +304,8 @@ + + @@ -486,6 +488,14 @@ MSBuild:Compile Designer + + Designer + Always + + + Designer + Always + MSBuild:Compile Designer diff --git a/src/DynamoCoreWpf/UI/SharedResourceDictionary.cs b/src/DynamoCoreWpf/UI/SharedResourceDictionary.cs index 35f577e671a..599e3353f90 100644 --- a/src/DynamoCoreWpf/UI/SharedResourceDictionary.cs +++ b/src/DynamoCoreWpf/UI/SharedResourceDictionary.cs @@ -64,6 +64,8 @@ public static class SharedDictionaryManager private static ResourceDictionary _connectorsDictionary; private static ResourceDictionary _portsDictionary; private static ResourceDictionary _sidebarGridDictionary; + private static ResourceDictionary outPortsDictionary; + private static ResourceDictionary inPortsDictionary; public static string ThemesDirectory { @@ -119,6 +121,16 @@ public static Uri PortsDictionaryUri get { return new Uri(Path.Combine(ThemesDirectory, "Ports.xaml")); } } + public static Uri OutPortsDictionaryUri + { + get { return new Uri(Path.Combine(ThemesDirectory, "OutPorts.xaml")); } + } + + public static Uri InPortsDictionaryUri + { + get { return new Uri(Path.Combine(ThemesDirectory, "InPorts.xaml")); } + } + public static Uri SidebarGridDictionaryUri { get { return new Uri(Path.Combine(ThemesDirectory, "SidebarGridStyleDictionary.xaml")); } @@ -188,6 +200,7 @@ public static ResourceDictionary ConnectorsDictionary } } + [Obsolete("This method will be removed in Dynamo 3.0 - please use the InPortsDictionary or OutPortsDictionary")] public static ResourceDictionary PortsDictionary { get { @@ -195,6 +208,22 @@ public static ResourceDictionary PortsDictionary } } + public static ResourceDictionary OutPortsDictionary + { + get + { + return outPortsDictionary ?? (outPortsDictionary = new ResourceDictionary() { Source = OutPortsDictionaryUri }); + } + } + + public static ResourceDictionary InPortsDictionary + { + get + { + return inPortsDictionary ?? (inPortsDictionary = new ResourceDictionary() { Source = InPortsDictionaryUri }); + } + } + public static ResourceDictionary SidebarGrid { get diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/InPorts.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/InPorts.xaml new file mode 100644 index 00000000000..af0b5099e08 --- /dev/null +++ b/src/DynamoCoreWpf/UI/Themes/Modern/InPorts.xaml @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/OutPorts.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/OutPorts.xaml new file mode 100644 index 00000000000..0f497f0a12e --- /dev/null +++ b/src/DynamoCoreWpf/UI/Themes/Modern/OutPorts.xaml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +