Sidebar: move from right to left
Left-sidebar layout matches the convention of Steam, Discord, Spotify, VSCode, etc. — nav anchored to the leading edge. Also feels less intrusive: in a Library-centric default view the eye lands on the hero card first, sidebar fades into the chrome on the left. Just swaps the two ColumnDefinitions, the Grid.Column attributes and the Border's BorderThickness (left edge → right edge of the sidebar). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -317,19 +317,19 @@
|
||||
</Border>
|
||||
|
||||
<!--
|
||||
Body : grid 2 colonnes — content area swap-pable à gauche, sidebar de
|
||||
navigation fixe à droite. Le content area lui-même est un Grid qui
|
||||
superpose plusieurs blocs (Library / Report / Documentation) gérés
|
||||
par leur Visibility liée à CurrentPage.
|
||||
Body : grid 2 colonnes — sidebar de navigation fixe à GAUCHE,
|
||||
content area swap-pable à droite. Le content area lui-même est un
|
||||
Grid qui superpose plusieurs blocs (Library / Report / Documentation)
|
||||
gérés par leur Visibility liée à CurrentPage.
|
||||
-->
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="200" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- ============== Content area (col 0, swap par CurrentPage) ============== -->
|
||||
<Grid Grid.Column="0">
|
||||
<!-- ============== Content area (col 1, swap par CurrentPage) ============== -->
|
||||
<Grid Grid.Column="1">
|
||||
|
||||
<!-- ====================== LIBRARY PAGE ====================== -->
|
||||
<Grid Visibility="{Binding IsLibrary, Converter={StaticResource BoolToVisibility}}">
|
||||
@@ -591,11 +591,11 @@
|
||||
</Grid>
|
||||
<!-- ============== END Content area ============== -->
|
||||
|
||||
<!-- ============== Right sidebar : nav buttons ============== -->
|
||||
<Border Grid.Column="1"
|
||||
<!-- ============== Left sidebar : nav buttons ============== -->
|
||||
<Border Grid.Column="0"
|
||||
Background="#0A0A0E"
|
||||
BorderBrush="{StaticResource Brush.Border}"
|
||||
BorderThickness="1,0,0,0">
|
||||
BorderThickness="0,0,1,0">
|
||||
<StackPanel Orientation="Vertical" Margin="0,16,0,0">
|
||||
<!-- Style des boutons définis dans Theme.xaml (NavButton) -->
|
||||
<Button Style="{StaticResource NavButton}"
|
||||
|
||||
Reference in New Issue
Block a user