Skip to content

Fix buttons in NodeAutocomplete UI in localized setting #14094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 34 additions & 31 deletions src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,54 +64,57 @@
</Grid.ColumnDefinitions>
<Border Background="{StaticResource DarkMidGreyBrush}"
CornerRadius="8,8,0,0">
<Grid>
<StackPanel Name="AutoCompletionHeader"
Width="Auto"
HorizontalAlignment="Left"
Orientation="Horizontal">
<TextBlock Text="{x:Static resx:Resources.Autocomplete}"
<Grid Name="HeaderContent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<TextBlock Text="{x:Static resx:Resources.Autocomplete}"
TextWrapping="Wrap"
Padding="4"
Margin="80,5,0,5"
Margin="0,5,0,5"
Foreground="{StaticResource AutocompletionWindowFontColor}"
Background="Transparent"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="14">
</TextBlock>
<Image Name="NodeAutoCompleteInfoIcon"
FontSize="14"
Grid.Column="1">
</TextBlock>
<Image Name="NodeAutoCompleteInfoIcon"
Width="14"
Height="14"
MouseDown="OnMoreInfoClicked"
Margin="50,5,0,5"
Margin="0,5,35,5"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Style="{StaticResource ToggleInfoStyle}">

</Image>
<Image Width="14"
Style="{StaticResource ToggleInfoStyle}"
Grid.Column="2" />
<Image Width="14"
Height="14"
Margin="10,5,10,5"
Margin="0,5,10,5"
MouseDown="CloseAutocompletionWindow"
HorizontalAlignment="Right"
VerticalAlignment="Center">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<Trigger Property="IsMouseOver"
VerticalAlignment="Center"
Grid.Column="2">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<Trigger Property="IsMouseOver"
Value="False">
<Setter Property="Source"
<Setter Property="Source"
Value="/DynamoCoreWpf;component/UI/Images/TitleBarButtons/close-darktheme-default-16px.png" />
</Trigger>
<Trigger Property="IsMouseOver"
</Trigger>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Source"
<Setter Property="Source"
Value="/DynamoCoreWpf;component/UI/Images/TitleBarButtons/close-darktheme-hover-16px.png" />
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</StackPanel>
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Grid>
</Border>
</Grid>
Expand Down