diff --git a/lintunes/__init__.py b/lintunes/__init__.py index 3633f2b..b80a732 100644 --- a/lintunes/__init__.py +++ b/lintunes/__init__.py @@ -1,3 +1,3 @@ """LinTunes — iTunes-style music library manager and player for Linux.""" -__version__ = "0.31.7" +__version__ = "0.31.8" diff --git a/lintunes/gui/main_window.py b/lintunes/gui/main_window.py index 8264c5a..8944716 100644 --- a/lintunes/gui/main_window.py +++ b/lintunes/gui/main_window.py @@ -118,6 +118,9 @@ class MainWindow(QMainWindow): layout.addWidget(self._transport) splitter = QSplitter(Qt.Orientation.Horizontal) + # The handle is the gap between the playlists and the songs: as wide + # as the strip left of the playlists, so they sit evenly spaced. + splitter.setHandleWidth(SIDEBAR_INSET) layout.addWidget(splitter, stretch=1) self._sidebar = SidebarPanel(manager, self.player) diff --git a/tests/test_round69.py b/tests/test_round69.py index 0fc88fd..c97bed2 100644 --- a/tests/test_round69.py +++ b/tests/test_round69.py @@ -169,3 +169,12 @@ def test_row_is_knolled_with_equal_gaps_and_ends(qapp, tmp_path): # The same GAP everywhere, ends included, at every width. left_end, right_end = edges[0][0], bar.width() - 1 - edges[-1][1] assert gaps + [left_end, right_end] == [GAP] * 7 + + +def test_gap_between_playlists_and_songs_matches_left_inset(qapp, tmp_path): + from lintunes.gui.sidebar import SIDEBAR_INSET + window = _window(qapp, tmp_path) + lists = window._sidebar.list_area + left = _x(lists, window) + gap = _x(window._content, window) - (left + lists.width()) + assert left == gap == SIDEBAR_INSET