Skip to content

armgit / nota

Public Imported from GitHub
0

Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.

(style) Separator width fix

Egor Khindikaynenb90fca2b3a93
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 974dcfff..509eaddb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,10 @@ Entry categories: `Added`, `Changed`, `Fixed`, `Removed`.
- **Clearer device selection:** the selected device is outlined by a ring just outside the
card instead of on its edge, so it no longer crowds the device name or the preset picker.
The Devices / Pattern / Clip tabs sit a little lower, clear of the panel's top edge.
+- **Tighter panel gutters, wider browser:** the resize handles between the browser, the
+ arrangement and the Devices panel no longer add space of their own, so the gaps between
+ the panels match the window's outer margin. The whole gap can now be grabbed to resize.
+ The browser also opens wider by default.
### Fixed
- **Nota Reverb no longer fires a loud, looping metallic burst:** after a few minutes of
diff --git a/src/managed/Nota.App/MainWindow.Browser.cs b/src/managed/Nota.App/MainWindow.Browser.cs
index 04a590b2..91ba5bf5 100644
--- a/src/managed/Nota.App/MainWindow.Browser.cs
+++ b/src/managed/Nota.App/MainWindow.Browser.cs
@@ -26,7 +26,7 @@ public partial class MainWindow
private int _lastInstrumentTrackId;
// The browser column's width before it was folded to its rail, restored on unfold.
- private GridLength _browserWidth = new(288);
+ private GridLength _browserWidth = new(344);
// Folded, the column hugs the rail and the splitter goes away — there's nothing to resize.
private void OnBrowserCollapsedChanged(bool collapsed)
diff --git a/src/managed/Nota.App/MainWindow.axaml b/src/managed/Nota.App/MainWindow.axaml
index de243d2b..ef223da5 100644
--- a/src/managed/Nota.App/MainWindow.axaml
+++ b/src/managed/Nota.App/MainWindow.axaml
@@ -424,27 +424,30 @@
<RowDefinition Height="0"/>
</Grid.RowDefinitions>
- <!-- Left browser (240) + main area (fills). Browser and arrangement are both islands:
- they float on the app ground with an even gutter, so the splitter between them
- carries no line of its own — it is a 2px transparent grab strip inside that gutter. -->
+ <!-- Left browser + main area (fills). Browser and arrangement are both islands:
+ they float on the app ground with an even 12px gutter, so the splitter between them
+ carries no line and takes no space of its own — it is a transparent grab strip laid
+ over that gutter (negative margin; MinWidth=0 overrides the theme's 6px floor). -->
<Grid x:Name="BrowserGrid" Grid.Row="0">
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="288" MinWidth="160" MaxWidth="480"/>
+ <ColumnDefinition Width="344" MinWidth="160" MaxWidth="480"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
- <app:BrowserView x:Name="Browser" Grid.Column="0" Margin="12,12,10,12"/>
- <GridSplitter x:Name="BrowserSplitter" Grid.Column="1" Width="2" Background="Transparent"
- ResizeDirection="Columns"/>
+ <app:BrowserView x:Name="Browser" Grid.Column="0" Margin="12,12,12,12"/>
+ <GridSplitter x:Name="BrowserSplitter" Grid.Column="1" Width="12" MinWidth="0" Margin="-12,0,0,0"
+ Background="Transparent" ResizeDirection="Columns"/>
<Panel x:Name="MainContent" Grid.Column="2">
<app:ArrangementView x:Name="Timeline" Margin="0,12,12,12"/>
</Panel>
</Grid>
- <!-- Drag handle to resize the Detail panel (only shown when it is open). -->
+ <!-- Drag handle to resize the Detail panel (only shown when it is open). Like the
+ browser splitter it lies over the arrangement's 12px bottom gutter instead of
+ adding its own height. -->
<GridSplitter x:Name="DetailSplitter"
Grid.Row="1"
- Height="2"
+ Height="12" MinHeight="0" Margin="0,-12,0,0"
IsVisible="False"
HorizontalAlignment="Stretch" ResizeDirection="Rows"
Background="Transparent"/>