Skip to content

Commit

Permalink
Visual Identifier on Optional Inputs (#10361)
Browse files Browse the repository at this point in the history
* change port text to italic if using default input

* Update Ports.xaml
  • Loading branch information
SHKnudsen authored Feb 20, 2020
1 parent 9ed021d commit 02103a1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/DynamoCoreWpf/UI/Themes/Modern/Ports.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
</Rectangle>

<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
<TextBlock Name="portNameTb"
<TextBlock Name="portNameTb"
Width="Auto"
HorizontalAlignment="Stretch"
Style="{StaticResource SZoomFadeText}"
Expand All @@ -148,6 +148,20 @@
IsHitTestVisible="False"
Background="{x:Null}"
Foreground="#555555">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="{Binding UsingDefaultValue}" Value="True">
<Setter Property="FontStyle"
Value="Italic" />
</DataTrigger>
<DataTrigger Binding="{Binding UsingDefaultValue}" Value="False">
<Setter Property="FontStyle"
Value="Normal" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<!-- We wrap the text block in a grid so that it wont be displayed on output port-->
<Grid Visibility="{Binding Path=UseLevelVisibility}" HorizontalAlignment="Right">
Expand Down

0 comments on commit 02103a1

Please sign in to comment.