v0.31.8: gap between playlists and songs matches the left inset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-29 17:14:29 -07:00
co-authored by Claude Opus 5.5
parent 627a0ff3b6
commit 4e860737de
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
"""LinTunes — iTunes-style music library manager and player for Linux."""
__version__ = "0.31.7"
__version__ = "0.31.8"
+3
View File
@@ -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)
+9
View File
@@ -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