style(*): show window title in Windows Taskbar; add icon for about dialog

This commit is contained in:
leo 2020-07-31 14:43:24 +08:00
parent daaa88a720
commit 3c80f2700c
4 changed files with 14 additions and 6 deletions

View file

@ -6,6 +6,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" mc:Ignorable="d"
Height="280" Width="400" Height="280" Width="400"
Title="About"
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"> WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
<!-- Enable WindowChrome Feature --> <!-- Enable WindowChrome Feature -->
@ -24,16 +25,20 @@
<!-- Titlebar --> <!-- Titlebar -->
<Grid Grid.Row="0" Background="{StaticResource Brush.BG4}"> <Grid Grid.Row="0" Background="{StaticResource Brush.BG4}">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<!-- LOGO -->
<Path Width="20" Height="20" Margin="6,-1,2,0" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Info}"/>
<!-- Title --> <!-- Title -->
<Label Content="ABOUT" FontWeight="Light"/> <Label Grid.Column="1" Content="ABOUT" FontWeight="Light"/>
<!-- Close Button --> <!-- Close Button -->
<Button Click="Quit" Width="32" Grid.Column="2" WindowChrome.IsHitTestVisibleInChrome="True"> <Button Click="Quit" Width="32" Grid.Column="3" WindowChrome.IsHitTestVisibleInChrome="True">
<Button.Style> <Button.Style>
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource Style.Button.HighlightHover}"> <Style TargetType="{x:Type Button}" BasedOn="{StaticResource Style.Button.HighlightHover}">
<Style.Triggers> <Style.Triggers>

View file

@ -4,7 +4,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" mc:Ignorable="d"
Title="Blame"
Height="600" Width="800"> Height="600" Width="800">
<!-- Enable WindowChrome --> <!-- Enable WindowChrome -->

View file

@ -6,8 +6,9 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SourceGit.UI" xmlns:local="clr-namespace:SourceGit.UI"
xmlns:git="clr-namespace:SourceGit.Git" xmlns:git="clr-namespace:SourceGit.Git"
mc:Ignorable="d" mc:Ignorable="d"
Height="600" Width="800"> Title="File Histories"
Height="600" Width="800">
<!-- Enable WindowChrome --> <!-- Enable WindowChrome -->
<WindowChrome.WindowChrome> <WindowChrome.WindowChrome>

View file

@ -6,7 +6,8 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SourceGit.UI" xmlns:local="clr-namespace:SourceGit.UI"
xmlns:helpers="clr-namespace:SourceGit.Helpers" xmlns:helpers="clr-namespace:SourceGit.Helpers"
mc:Ignorable="d" mc:Ignorable="d"
Title="Interactive Rebase"
Height="600" Width="800"> Height="600" Width="800">
<!-- Enable WindowChrome --> <!-- Enable WindowChrome -->