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:
@@ -1,3 +1,3 @@
|
|||||||
"""LinTunes — iTunes-style music library manager and player for Linux."""
|
"""LinTunes — iTunes-style music library manager and player for Linux."""
|
||||||
|
|
||||||
__version__ = "0.31.7"
|
__version__ = "0.31.8"
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ class MainWindow(QMainWindow):
|
|||||||
layout.addWidget(self._transport)
|
layout.addWidget(self._transport)
|
||||||
|
|
||||||
splitter = QSplitter(Qt.Orientation.Horizontal)
|
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)
|
layout.addWidget(splitter, stretch=1)
|
||||||
|
|
||||||
self._sidebar = SidebarPanel(manager, self.player)
|
self._sidebar = SidebarPanel(manager, self.player)
|
||||||
|
|||||||
@@ -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.
|
# The same GAP everywhere, ends included, at every width.
|
||||||
left_end, right_end = edges[0][0], bar.width() - 1 - edges[-1][1]
|
left_end, right_end = edges[0][0], bar.width() - 1 - edges[-1][1]
|
||||||
assert gaps + [left_end, right_end] == [GAP] * 7
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user