diff --git a/src/DynamoCore/Graph/Annotations/AnnotationModel.cs b/src/DynamoCore/Graph/Annotations/AnnotationModel.cs index 51980cf95c8..1dc80cce685 100644 --- a/src/DynamoCore/Graph/Annotations/AnnotationModel.cs +++ b/src/DynamoCore/Graph/Annotations/AnnotationModel.cs @@ -395,6 +395,26 @@ internal set /// public bool HasNestedGroups => nodes.OfType().Any(); + private bool isVisible = true; + /// + /// Preview visibility of the nodes in a group + /// + [JsonIgnore] + public bool IsVisible + { + get + { + return isVisible; + } + internal set + { + if (value != isVisible) + { + isVisible = value; + RaisePropertyChanged(nameof(IsVisible)); + } + } + } #endregion /// diff --git a/src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs b/src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs index c70697eb893..0e2e7b2180b 100644 --- a/src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs +++ b/src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs @@ -52,9 +52,13 @@ public ShortcutToolbar(DynamoViewModel dynamoViewModel) var shortcutToolbar = new ShortcutToolbarViewModel(dynamoViewModel); DataContext = shortcutToolbar; authManager = dynamoViewModel.Model.AuthenticationManager; - if (authManager.IsLoggedIn()) { + if (authManager.IsLoggedIn()) + { authManager.LoginStateChanged += SignOutHandler; } + else { + logoutOption.Visibility = Visibility.Collapsed; + } } private void SignOutHandler(LoginState status) diff --git a/src/DynamoCoreWpf/Controls/StartPage.xaml b/src/DynamoCoreWpf/Controls/StartPage.xaml index 5a10dd3e392..474a1e1ccfe 100644 --- a/src/DynamoCoreWpf/Controls/StartPage.xaml +++ b/src/DynamoCoreWpf/Controls/StartPage.xaml @@ -31,7 +31,7 @@ - + + @@ -70,6 +71,8 @@ + + @@ -824,6 +827,7 @@ + diff --git a/src/DynamoCoreWpf/Properties/Resources.Designer.cs b/src/DynamoCoreWpf/Properties/Resources.Designer.cs index c79dd578ebb..bf5cdfb20d9 100644 --- a/src/DynamoCoreWpf/Properties/Resources.Designer.cs +++ b/src/DynamoCoreWpf/Properties/Resources.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 @@ -3299,6 +3299,15 @@ public static string GroupContextMenuGraphLayout { } } + /// + /// Looks up a localized string similar to Preview Geometry. + /// + public static string GroupContextMenuPreview { + get { + return ResourceManager.GetString("GroupContextMenuPreview", resourceCulture); + } + } + /// /// Looks up a localized string similar to Ungr_oup. /// @@ -4604,7 +4613,7 @@ public static string NodeContextMenuIsOutput { } /// - /// Looks up a localized string similar to Preview. + /// Looks up a localized string similar to Preview Geometry. /// public static string NodeContextMenuPreview { get { diff --git a/src/DynamoCoreWpf/Properties/Resources.en-US.resx b/src/DynamoCoreWpf/Properties/Resources.en-US.resx index ba83aca0a83..b69eafd7328 100644 --- a/src/DynamoCoreWpf/Properties/Resources.en-US.resx +++ b/src/DynamoCoreWpf/Properties/Resources.en-US.resx @@ -1419,7 +1419,7 @@ To avoid unintended behavior, uninstall the conflicting loaded package(s), resta Is Output - Preview + Preview Geometry Context menu item - preview geometry @@ -3482,4 +3482,7 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in Signing In + + Preview Geometry + \ No newline at end of file diff --git a/src/DynamoCoreWpf/Properties/Resources.resx b/src/DynamoCoreWpf/Properties/Resources.resx index f52c828e169..8e335b3c7fe 100644 --- a/src/DynamoCoreWpf/Properties/Resources.resx +++ b/src/DynamoCoreWpf/Properties/Resources.resx @@ -745,7 +745,7 @@ Lacing strategy: use the shortest list - Preview + Preview Geometry Context menu item - preview geometry @@ -3469,4 +3469,7 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in Signing In + + Preview Geometry + \ No newline at end of file diff --git a/src/DynamoCoreWpf/UI/Images/question-hover-blue-16px.png b/src/DynamoCoreWpf/UI/Images/question-hover-blue-16px.png new file mode 100644 index 00000000000..37467b48893 Binary files /dev/null and b/src/DynamoCoreWpf/UI/Images/question-hover-blue-16px.png differ diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml index f0a2c7f8b4b..b5508a4677e 100644 --- a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml +++ b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml @@ -5460,6 +5460,18 @@ + + +