mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style<Dashboard>: auto hide layout orientation button when histories page is invisible
This commit is contained in:
parent
902e28c41c
commit
bb6c99056e
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<Grid.Resources>
|
<Grid.Resources>
|
||||||
<converters:InverseBool x:Key="InverseBool"/>
|
<converters:InverseBool x:Key="InverseBool"/>
|
||||||
|
<converters:BoolToCollapsed x:Key="BoolToCollapsed"/>
|
||||||
</Grid.Resources>
|
</Grid.Resources>
|
||||||
|
|
||||||
<!-- Toolbar -->
|
<!-- Toolbar -->
|
||||||
|
@ -102,6 +103,7 @@
|
||||||
Width="16" Height="16"
|
Width="16" Height="16"
|
||||||
Style="{StaticResource Style.ToggleButton.SplitDirection}"
|
Style="{StaticResource Style.ToggleButton.SplitDirection}"
|
||||||
ToolTip="{DynamicResource Text.Histories.DisplayMode}"
|
ToolTip="{DynamicResource Text.Histories.DisplayMode}"
|
||||||
|
Visibility="{Binding ElementName=pageHistories,Path=IsSelected,Converter={StaticResource BoolToCollapsed}}"
|
||||||
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=Window.MoveCommitInfoRight, Mode=TwoWay, Converter={StaticResource InverseBool}}"
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=Window.MoveCommitInfoRight, Mode=TwoWay, Converter={StaticResource InverseBool}}"
|
||||||
Checked="ChangeOrientation" Unchecked="ChangeOrientation"/>
|
Checked="ChangeOrientation" Unchecked="ChangeOrientation"/>
|
||||||
|
|
||||||
|
@ -147,7 +149,7 @@
|
||||||
<!-- Workspace -->
|
<!-- Workspace -->
|
||||||
<TextBlock Grid.Row="0" Style="{DynamicResource Style.TextBlock.Group}" Text="{DynamicResource Text.Dashboard.Workspace}"/>
|
<TextBlock Grid.Row="0" Style="{DynamicResource Style.TextBlock.Group}" Text="{DynamicResource Text.Dashboard.Workspace}"/>
|
||||||
<ListView Grid.Row="1" x:Name="workspace" SelectionMode="Single" SelectionChanged="OnPageSelectionChanged">
|
<ListView Grid.Row="1" x:Name="workspace" SelectionMode="Single" SelectionChanged="OnPageSelectionChanged">
|
||||||
<ListViewItem IsSelected="True" Style="{DynamicResource Style.ListViewItem.Switcher}">
|
<ListViewItem x:Name="pageHistories" IsSelected="True" Style="{DynamicResource Style.ListViewItem.Switcher}">
|
||||||
<StackPanel Margin="16,0,0,0" Height="28" Orientation="Horizontal">
|
<StackPanel Margin="16,0,0,0" Height="28" Orientation="Horizontal">
|
||||||
<Path Width="16" Height="16" Data="{StaticResource Icon.Histories}"/>
|
<Path Width="16" Height="16" Data="{StaticResource Icon.Histories}"/>
|
||||||
<TextBlock Margin="8,0,0,0" Text="{DynamicResource Text.Histories}"/>
|
<TextBlock Margin="8,0,0,0" Text="{DynamicResource Text.Histories}"/>
|
||||||
|
|
Loading…
Reference in a new issue