|
79 | 79 | <RowDefinition Height="Auto" /> |
80 | 80 | </Grid.RowDefinitions> |
81 | 81 | <Grid Grid.Row="0"> |
| 82 | + <Grid.Style> |
| 83 | + <Style TargetType="{x:Type Grid}"> |
| 84 | + <Setter Property="Visibility" Value="Visible" /> |
| 85 | + <Style.Triggers> |
| 86 | + <DataTrigger Binding="{Binding ElementName=contentControlSettings, Path=HasContent}" Value="True"> |
| 87 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 88 | + </DataTrigger> |
| 89 | + </Style.Triggers> |
| 90 | + </Style> |
| 91 | + </Grid.Style> |
82 | 92 | <!-- 1 = Search & ApplicationList, 2 = ApplicationView--> |
83 | 93 | <Grid.ColumnDefinitions> |
84 | 94 | <ColumnDefinition Width="Auto" /> |
|
295 | 305 | </ToggleButton> |
296 | 306 | </Grid> |
297 | 307 | </Border> |
298 | | - <ScrollViewer Grid.Row="1" ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback" Style="{StaticResource ApplicationViewScrollViewer}"> |
| 308 | + <ScrollViewer Grid.Row="1" ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback" Style="{StaticResource FadeOutScrollViewer}"> |
299 | 309 | <ListView ItemsSource="{Binding ApplicationViewCollection}" SelectedItem="{Binding SelectedApplicationViewInfo, Mode=TwoWay}" SelectionMode="Single" BorderThickness="0"> |
300 | 310 | <ListView.ItemTemplate> |
301 | 311 | <DataTemplate> |
|
318 | 328 | <DataTrigger Binding="{Binding Path=IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" > |
319 | 329 | <Setter Property="Fill" Value="{DynamicResource AccentColorBrush}" /> |
320 | 330 | </DataTrigger> |
321 | | - <MultiDataTrigger> |
322 | | - <MultiDataTrigger.Conditions> |
323 | | - <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=DataContext.OpenApplicationList}" Value="False" /> |
324 | | - <Condition Binding="{Binding Path=IsMouseOver,RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True" /> |
325 | | - </MultiDataTrigger.Conditions> |
326 | | - <MultiDataTrigger.Setters> |
327 | | - <Setter Property="ToolTip" Value="{Binding TranslatedName}" /> |
328 | | - </MultiDataTrigger.Setters> |
329 | | - </MultiDataTrigger> |
330 | 331 | </Style.Triggers> |
331 | 332 | </Style> |
332 | 333 | </Rectangle.Style> |
|
423 | 424 | <TextBlock Grid.Row="1" Style="{StaticResource HeaderTextBlock}" FontSize="18" Foreground="{DynamicResource GrayBrush3}" Text="{DynamicResource String_SearchedApplicationNotFound}" Margin="10,0" TextWrapping="Wrap" TextAlignment="Center" /> |
424 | 425 | </Grid> |
425 | 426 | <Border Grid.Row="2" BorderBrush="{DynamicResource GrayBrush8}" BorderThickness="0,1,0,0" Background="Transparent"> |
426 | | - <Button Height="48" HorizontalContentAlignment="Stretch" Command="{Binding OpenSettingsCommand}" Focusable="False" Style="{StaticResource SettingsButton}"> |
| 427 | + <Button Height="48" HorizontalContentAlignment="Stretch" Command="{Binding OpenSettingsCommand}" Style="{StaticResource SettingsButton}" Focusable="False"> |
427 | 428 | <Grid HorizontalAlignment="Left"> |
428 | 429 | <Grid.ColumnDefinitions> |
429 | 430 | <ColumnDefinition Width="48" /> |
430 | 431 | <ColumnDefinition Width="*" /> |
431 | 432 | </Grid.ColumnDefinitions> |
432 | 433 | <Rectangle Grid.Column="0" Width="24" Height="24"> |
433 | 434 | <Rectangle.OpacityMask> |
434 | | - <VisualBrush Stretch="Uniform" Visual="{IconPacks:PackIconOcticons Kind=Settings}" /> |
| 435 | + <VisualBrush Stretch="Uniform" Visual="{IconPacks:PackIconModern Kind=Settings}" /> |
435 | 436 | </Rectangle.OpacityMask> |
436 | 437 | <Rectangle.Style> |
437 | 438 | <Style TargetType="{x:Type Rectangle}"> |
|
503 | 504 | <ContentControl x:Name="contentControlApplication" Grid.Row="1" Focusable="False" /> |
504 | 505 | </Grid> |
505 | 506 | </Grid> |
| 507 | + <Grid Grid.Row="0"> |
| 508 | + <Grid.Style> |
| 509 | + <Style TargetType="{x:Type Grid}"> |
| 510 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 511 | + <Style.Triggers> |
| 512 | + <DataTrigger Binding="{Binding ElementName=contentControlSettings, Path=HasContent}" Value="True"> |
| 513 | + <Setter Property="Visibility" Value="Visible" /> |
| 514 | + </DataTrigger> |
| 515 | + </Style.Triggers> |
| 516 | + </Style> |
| 517 | + </Grid.Style> |
| 518 | + <Grid> |
| 519 | + <Grid.RowDefinitions> |
| 520 | + <RowDefinition Height="Auto" /> |
| 521 | + <RowDefinition Height="*" /> |
| 522 | + </Grid.RowDefinitions> |
| 523 | + <Border Grid.Row="0" BorderBrush="{DynamicResource GrayBrush8}" BorderThickness="0,0,0,1" > |
| 524 | + <Grid> |
| 525 | + <Grid.ColumnDefinitions> |
| 526 | + <ColumnDefinition Width="Auto" /> |
| 527 | + <ColumnDefinition Width="*" /> |
| 528 | + </Grid.ColumnDefinitions> |
| 529 | + <Button Grid.Column="0" HorizontalAlignment="Right" Command="{Binding CloseSettingsCommand}" Style="{StaticResource CleanButton}" Margin="10"> |
| 530 | + <Grid> |
| 531 | + <Grid.ColumnDefinitions> |
| 532 | + <ColumnDefinition Width="Auto" /> |
| 533 | + <ColumnDefinition Width="*" /> |
| 534 | + </Grid.ColumnDefinitions> |
| 535 | + <Rectangle Grid.Column="0" Width="24" Height="24"> |
| 536 | + <Rectangle.OpacityMask> |
| 537 | + <VisualBrush Stretch="Uniform" Visual="{IconPacks:PackIconMaterialLight Kind=ArrowLeftCircle}" /> |
| 538 | + </Rectangle.OpacityMask> |
| 539 | + <Rectangle.Style> |
| 540 | + <Style TargetType="{x:Type Rectangle}"> |
| 541 | + <Setter Property="Fill" Value="{DynamicResource GrayBrush3}" /> |
| 542 | + <Style.Triggers> |
| 543 | + <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True"> |
| 544 | + <Setter Property="Fill" Value="{DynamicResource GrayBrush5}" /> |
| 545 | + </DataTrigger> |
| 546 | + </Style.Triggers> |
| 547 | + </Style> |
| 548 | + </Rectangle.Style> |
| 549 | + </Rectangle> |
| 550 | + <TextBlock Grid.Column="1" Text="{DynamicResource String_Back}" VerticalAlignment="Center" Margin="10,0,0,0"> |
| 551 | + <TextBlock.Style> |
| 552 | + <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> |
| 553 | + <Setter Property="Foreground" Value="{DynamicResource GrayBrush3}" /> |
| 554 | + <Style.Triggers> |
| 555 | + <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True"> |
| 556 | + <Setter Property="Foreground" Value="{DynamicResource GrayBrush5}" /> |
| 557 | + </DataTrigger> |
| 558 | + </Style.Triggers> |
| 559 | + </Style> |
| 560 | + </TextBlock.Style> |
| 561 | + </TextBlock> |
| 562 | + </Grid> |
| 563 | + </Button> |
| 564 | + <TextBlock Grid.Column="1" VerticalAlignment="Center" Height="48" TextAlignment="Center" Style="{StaticResource HeaderTextBlock}" Text="{DynamicResource String_Header_Settings}" Foreground="{DynamicResource GrayBrush3}" Margin="10,0" /> |
| 565 | + </Grid> |
| 566 | + </Border> |
| 567 | + <ContentControl Grid.Row="1" x:Name="contentControlSettings" /> |
| 568 | + </Grid> |
| 569 | + </Grid> |
506 | 570 | <Border Grid.Row="1" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource GrayBrush8}"> |
507 | 571 | <StatusBar Foreground="{DynamicResource GrayBrush3}"> |
508 | 572 | <StatusBarItem> |
509 | | - <StackPanel Orientation="Horizontal"> |
510 | | - <TextBlock Text="{Binding Version}" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource GrayBrush3}" FontWeight="Bold" /> |
511 | | - <TextBlock Text="BETA" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource AccentColorBrush}" Margin="10,0,0,0" /> |
512 | | - </StackPanel> |
| 573 | + <StackPanel Orientation="Horizontal"> |
| 574 | + <TextBlock Text="{Binding Version}" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource GrayBrush3}" FontWeight="Bold" /> |
| 575 | + <TextBlock Text="BETA" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource AccentColorBrush}" Margin="10,0,0,0" /> |
| 576 | + </StackPanel> |
513 | 577 | </StatusBarItem> |
514 | 578 | </StatusBar> |
515 | 579 | </Border> |
|
0 commit comments