|
229 | 229 | </MultiTrigger.Conditions>
|
230 | 230 | <Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
231 | 231 | <Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
| 232 | + <Setter TargetName="Bd" Property="Margin" Value="0 10 0 10" /> |
232 | 233 |
|
233 | 234 |
|
234 | 235 | </MultiTrigger>
|
|
240 | 241 | <Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
241 | 242 | <Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
242 | 243 | <Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
| 244 | + <Setter TargetName="Bd" Property="Margin" Value="0 10 0 10" /> |
243 | 245 |
|
244 | 246 |
|
245 | 247 | </MultiTrigger>
|
|
253 | 255 | </Setter>
|
254 | 256 | <!--#endregion-->
|
255 | 257 | <Setter Property="Height" Value="Auto" />
|
| 258 | + </Style> |
256 | 259 |
|
| 260 | + <Style x:Key="PriorityButton" TargetType="Button"> |
| 261 | + <Style.Triggers> |
| 262 | + <DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Text}" Value="1"> |
| 263 | + <Setter Property="Foreground" Value="Red" /> |
| 264 | + </DataTrigger> |
| 265 | + </Style.Triggers> |
257 | 266 | </Style>
|
258 | 267 |
|
259 | 268 | </Window.Resources>
|
|
566 | 575 | </TextBlock>
|
567 | 576 | </StackPanel>
|
568 | 577 | <StackPanel Grid.Column="3" Orientation="Horizontal">
|
569 |
| - <TextBlock Text="{DynamicResource priority}" Margin="15,0,0,0" |
570 |
| - MaxWidth="100" VerticalAlignment="Center" /> |
571 |
| - <TextBlock Text="{Binding Priority}" VerticalAlignment="Center" |
| 578 | + <TextBlock Text="{DynamicResource priority}" Margin="0,0,8,0" |
| 579 | + MaxWidth="100" VerticalAlignment="Center" FontSize="12"/> |
| 580 | + <Border CornerRadius="5"> |
| 581 | + <Button x:Name="PriorityButton" Content="{Binding Priority, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" |
572 | 582 | ToolTip="Change Plugin Results Priority"
|
573 |
| - Margin="5 0 0 0" Cursor="Hand" Foreground="Blue" |
574 |
| - MouseUp="OnPluginPriorityClick" /> |
| 583 | + Margin="5 0 0 0" Cursor="Hand" |
| 584 | + Click="OnPluginPriorityClick"> |
| 585 | + <!--#region Priority Button Style--> |
| 586 | + <Button.Resources> |
| 587 | + <Style TargetType="Border"> |
| 588 | + <Setter Property="CornerRadius" Value="2"/> |
| 589 | + </Style> |
| 590 | + </Button.Resources> |
| 591 | + <Button.Style> |
| 592 | + <Style TargetType="Button"> |
| 593 | + <Setter Property="Padding" Value="12 8 12 8" /> |
| 594 | + <Setter Property="BorderThickness" Value="0" /> |
| 595 | + <Setter Property="FontWeight" Value="DemiBold" /> |
| 596 | + <Setter Property="Foreground" Value="Black" /> |
| 597 | + <Style.Triggers> |
| 598 | + <DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Content}" Value="0"> |
| 599 | + <Setter Property="Foreground" Value="#878787" /> |
| 600 | + <Setter Property="FontWeight" Value="Normal" /> |
| 601 | + </DataTrigger> |
| 602 | + </Style.Triggers> |
| 603 | + </Style> |
| 604 | + </Button.Style> |
| 605 | + <!--#endregion--> |
| 606 | + </Button> |
| 607 | + </Border> |
575 | 608 | </StackPanel>
|
576 | 609 | <ui:ToggleSwitch Grid.Column="4" OffContent="{DynamicResource disable}"
|
577 | 610 | OnContent="{DynamicResource enable}"
|
|
0 commit comments