Conversation
| xmlns:dynui="clr-namespace:Dynamo.UI.Controls" | ||
| xmlns:p="clr-namespace:Dynamo.Wpf.Properties" | ||
| xmlns:configuration="clr-namespace:Dynamo.Configuration;assembly=DynamoCore" | ||
| xmlns:fa="http://schemas.fontawesome.io/icons/" |
There was a problem hiding this comment.
might this negatively effect nodeViews which reference font awesome?
There was a problem hiding this comment.
Shouldn't be the case, at least this name space is not referenced at all.. I can also remove if there are known issues but I can't think of any side effect
| Icon="Refresh" | ||
| Foreground="{DynamicResource MemberButtonText}" | ||
| ToolTip="{x:Static w:Resources.RefreshButtonTooltipText}" | ||
| MouseLeftButtonDown="Refresh_MouseLeftButtonDown"/> |
There was a problem hiding this comment.
I know we said we would not go too far UI wise - but at a minimum - I think this button should have a tooltip and hover interaction to make clear it is clickable and not just an icon.
There was a problem hiding this comment.
@mjkkirschner Yes, please review the tooltip text, it is included in this PR
There was a problem hiding this comment.
thanks, any thoughts on the hover interaction? like a highlight?
| <!-- Package Version --> | ||
| <DataGridTextColumn | ||
| Header="Version" | ||
| Header="{x:Static w:Resources.VersionHeaderText}" |
There was a problem hiding this comment.
Thanks, this should fix the localization bug
|
|
||
| private void Refresh_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) | ||
| { | ||
| DependencyRegen(currentWorkspace); |
There was a problem hiding this comment.
does this function have testing?
There was a problem hiding this comment.
Needs UI automation test for this one.
There was a problem hiding this comment.
I actually meant for the DependencyRegen function - I think if that is covered this is likely good enough without a new test.
There was a problem hiding this comment.
@mjkkirschner Yes, we had a few unit tests covering that from the past
| <ItemGroup> | ||
| <Reference Include="FontAwesome.WPF, Version=4.3.0.35981, Culture=neutral, processorArchitecture=MSIL"> | ||
| <SpecificVersion>False</SpecificVersion> | ||
| <HintPath>..\..\extern\FontAwesome\FontAwesome.WPF.dll</HintPath> |
There was a problem hiding this comment.
we dont use nuget for this?
There was a problem hiding this comment.
@mjkkirschner We don't. we are referencing an old version of FA (4.3.0) and keeping a hard copy of it in our repo. Although the latest WPF version on nuget is 4.7.0, not so different. We should update when FA 5.0 for WPF available and switch to use nuget referece because it will provide much more.
|
looks good - a few requests. |
|
I tried a bunch of ways to add hover over state, this way seems more consistent with what we have with the buttons for download. However I did notice that the buttons in dep viewer are not really consistent with what we have defined in Dynamo. Bummer. And refactoring isn't as easy as I imagined.. So I stopped here |
|
@QilongTang LGTM |
Please Note:
DynamoRevitrepo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTMlabel is added to the PR.Purpose
Adding a button for user to refresh dep viewer manually.
Tooltip:

HoverOverState:

Declarations
Check these if you believe they are true
*.resxfilesReviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of