Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions src/ViewModels/LayoutInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public double RepositorySearchCommitWidth
set;
} = 250;

public bool IsSidebarCollapsedInDashboard
{
get => _isSidebarCollapsedInDashboard;
set => SetProperty(ref _isSidebarCollapsedInDashboard, value);
}

public bool IsSidebarCollapsedInLocalChanges
{
get => _isSidebarCollapsedInLocalChanges;
Expand Down Expand Up @@ -81,6 +87,7 @@ public GridLength CommitDetailFilesLeftWidth
private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel);
private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private bool _isSidebarCollapsedInDashboard = false;
private bool _isSidebarCollapsedInLocalChanges = false;
}
}
6 changes: 5 additions & 1 deletion src/Views/Histories.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<DataGrid.Columns>
<DataGridTemplateColumn Width="*" IsReadOnly="True">
<DataGridTemplateColumn.Header>
<Border Padding="48,0">
<Border Padding="72,0">
<TextBlock Classes="table_header" Text="{DynamicResource Text.Histories.Header.GraphAndSubject}" HorizontalAlignment="Center"/>
</Border>
</DataGridTemplateColumn.Header>
Expand Down Expand Up @@ -253,6 +253,10 @@
Margin="4,0,0,0"
VerticalAlignment="Center"
Spacing="6">
<ToggleButton Classes="sidebar_expander"
Width="18" Height="18"
VerticalAlignment="Center"
IsChecked="{Binding Source={x:Static vm:Preferences.Instance}, Path=Layout.IsSidebarCollapsedInDashboard, Mode=TwoWay}"/>
<ToggleButton Classes="line_path" Width="18" IsChecked="{Binding IsSearchingCommits, Mode=TwoWay}">
<ToolTip.Tip>
<TextBlock>
Expand Down
1 change: 1 addition & 0 deletions src/Views/LauncherPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="IsDashboardVisible"/>
<Binding Path="Histories.IsSearchingCommits" Converter="{x:Static BoolConverters.Not}"/>
<Binding Source="{x:Static vm:Preferences.Instance}" Path="Layout.IsSidebarCollapsedInDashboard" Converter="{x:Static BoolConverters.Not}"/>
</MultiBinding>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="IsWorkingCopyVisible"/>
Expand Down