Skip to content

Commit

Permalink
clean up symbol glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimven-adsk committed Jan 9, 2025
1 parent 992958b commit d24ce54
Showing 1 changed file with 59 additions and 56 deletions.
115 changes: 59 additions & 56 deletions src/DynamoCoreWpf/Views/Core/NodeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -632,66 +632,69 @@
Converter={StaticResource ZoomToVisibilityCollapsedConverter}}" />

<!-- Grid containing the State overlay Glyphs in Zoomed Out state -->
<Grid Name="zoomGlyphsGrid"
Grid.Row="0"
Grid.RowSpan="4"
Grid.Column="0"
Grid.ColumnSpan="3"
Canvas.ZIndex="7"
IsHitTestVisible="False"
Margin="0 5 0 0"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Style="{Binding Path=DataContext.StopAnimations, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:WorkspaceView}}, Converter={StaticResource SZoomFadeInControl}}"
Visibility="{Binding Path=DataContext.Zoom,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type controls:WorkspaceView}},
Converter={StaticResource ZoomToVisibilityCollapsedConverter}}"
MinWidth="48">
<Grid
Name="zoomGlyphsGrid"
Grid.Row="0"
Grid.RowSpan="4"
Grid.Column="0"
Grid.ColumnSpan="3"
Canvas.ZIndex="7"
IsHitTestVisible="False"
Margin="0 5 0 0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Style="{Binding Path=DataContext.StopAnimations, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:WorkspaceView}}, Converter={StaticResource SZoomFadeInControl}}"
Visibility="{Binding Path=DataContext.Zoom,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type controls:WorkspaceView}},
Converter={StaticResource ZoomToVisibilityCollapsedConverter}}"
MinWidth="48">
<Grid.RowDefinitions>
<RowDefinition Height="{Binding ImgGlyphThreeSource, Mode=OneWay, Converter={StaticResource EmptyToZeroLengthConverter}, UpdateSourceTrigger=PropertyChanged}" />
<RowDefinition
Height="{Binding ImgGlyphThreeSource, Mode=OneWay, Converter={StaticResource EmptyToZeroLengthConverter}, UpdateSourceTrigger=PropertyChanged}" />
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<UniformGrid Grid.Row="0"
Margin="0 10 0 -10"
Columns="1" Rows="1" Name="ZoomGlyphRowZero"
HorizontalAlignment="Center" VerticalAlignment="Bottom"
Visibility="{Binding ImgGlyphThreeSource, Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}">
<Image Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Bottom"
RenderOptions.BitmapScalingMode="LowQuality"
x:Name="ZoomStateImgOne"
Width="64"
Source="{Binding ImgGlyphThreeSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphThreeSource,Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}"/>
</UniformGrid>
<Grid Grid.Row="1"
Margin="0 0 0 0"
Name="ZoomGlyphRowOne"
HorizontalAlignment="Center" VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ImgGlyphOneSource, Mode=OneWay, Converter={StaticResource EmptyToZeroLengthConverter}, UpdateSourceTrigger=PropertyChanged}" />
<ColumnDefinition Width="{Binding ImgGlyphTwoSource, Mode=OneWay, Converter={StaticResource EmptyToZeroLengthConverter}, UpdateSourceTrigger=PropertyChanged}" />
</Grid.ColumnDefinitions>
<Image Grid.Column="0"
x:Name="ZoomStateImgTwo"
Stretch="Uniform"
RenderOptions.BitmapScalingMode="LowQuality"
HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="5 0 "
Width="64"
Source="{Binding ImgGlyphOneSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphOneSource, Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}"/>
<Image Grid.Column="1"
x:Name="ZoomStateImgThree"
Stretch="Uniform"
RenderOptions.BitmapScalingMode="LowQuality"
HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="5 0"
Width="64"
Source="{Binding ImgGlyphTwoSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphTwoSource, Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}"/>
</Grid>
</Grid>

<Image
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Grid.Row="0"
Grid.ColumnSpan="2"
Margin="0 10 0 -10"
RenderOptions.BitmapScalingMode="LowQuality"
x:Name="ZoomStateImgOne"
Width="64"
Source="{Binding ImgGlyphThreeSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphThreeSource,Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}" />

<WrapPanel
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Image
x:Name="ZoomStateImgTwo"
Stretch="Uniform"
RenderOptions.BitmapScalingMode="LowQuality"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Margin="5 0 "
Width="64"
Source="{Binding ImgGlyphOneSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphOneSource, Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}" />

<Image
x:Name="ZoomStateImgThree"
Stretch="Uniform"
RenderOptions.BitmapScalingMode="LowQuality"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Margin="5 0"
Width="64"
Source="{Binding ImgGlyphTwoSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue={x:Null}}"
Visibility="{Binding ImgGlyphTwoSource, Converter={StaticResource EmptyToVisibilityCollapsedConverter}, UpdateSourceTrigger=PropertyChanged}" />
</WrapPanel>
</Grid>

<!-- Displays when the node is selected -->
<Border Name="selectionBorder"
Expand Down

0 comments on commit d24ce54

Please sign in to comment.