v0.91.0: rounded, softly embossed windows with no line under the title or menu bar; blank main title bar; seek times centred on the timeline

This commit is contained in:
2026-11-08 00:35:24 -08:00
parent 15f1ed5c96
commit 435a082dc5
8 changed files with 274 additions and 50 deletions
+22 -20
View File
@@ -445,7 +445,7 @@ class HeaderRow(ToolRow):
floor = self.height() - self.BOTTOM
box_h = max(0, floor - self.TOP_PAD)
if widget is self.seek:
# The playhead's knob and the times' baselines stand on the floor.
# The playhead's knob stands on the floor, the times beside it.
drop = self._drop(self.seek)
self.seek.drop.changeSize(0, drop, QSizePolicy.Policy.Minimum,
QSizePolicy.Policy.Fixed)
@@ -585,37 +585,39 @@ class TransportBar(QWidget):
self._apply_now_playing_font()
seek = QWidget()
seek_row = QHBoxLayout(seek)
seek_row.setContentsMargins(0, 0, 0, 0)
self._elapsed_label = QLabel("")
self._elapsed_label.setFixedWidth(50)
self._remaining_label = QLabel("")
self._remaining_label.setFixedWidth(50)
# Both stand on the header row's floor, like the playlist name.
# The times sit at the timeline's two ends, centred on its line.
self._elapsed_label.setAlignment(Qt.AlignmentFlag.AlignLeft
| Qt.AlignmentFlag.AlignBottom)
| Qt.AlignmentFlag.AlignVCenter)
self._remaining_label.setAlignment(Qt.AlignmentFlag.AlignRight
| Qt.AlignmentFlag.AlignBottom)
| Qt.AlignmentFlag.AlignVCenter)
self._slider = SeekSlider()
self._slider.setProperty("tall", True) # twice Fusion's height
self._slider.setRange(0, 0)
self._slider.setFocusPolicy(Qt.FocusPolicy.NoFocus)
# The row reaches below the floor by the text's descent (so the
# times' baselines stand on it); the slider is held up by the same
# amount, so its knob does too. HeaderRow.place sets both.
slider_col = QVBoxLayout()
slider_col.setSpacing(0)
slider_col.addStretch(1)
slider_col.addWidget(self._slider)
seek.drop = QSpacerItem(0, 0, QSizePolicy.Policy.Minimum,
QSizePolicy.Policy.Fixed)
slider_col.addSpacerItem(seek.drop)
# The slider sets the line's height; the times centre on it.
for label in (self._elapsed_label, self._remaining_label):
label.setSizePolicy(QSizePolicy.Policy.Fixed,
QSizePolicy.Policy.Expanding)
seek_row.addWidget(self._elapsed_label)
seek_row.addLayout(slider_col)
seek_row.addWidget(self._remaining_label)
QSizePolicy.Policy.Ignored)
line = QHBoxLayout()
line.setContentsMargins(0, 0, 0, 0)
line.addWidget(self._elapsed_label)
line.addWidget(self._slider, 1)
line.addWidget(self._remaining_label)
# The playhead's knob stands on the header row's floor: the row
# reaches below it by the text's descent and the line is held up by
# the same amount. HeaderRow.place sets both.
seek_col = QVBoxLayout(seek)
seek_col.setContentsMargins(0, 0, 0, 0)
seek_col.setSpacing(0)
seek_col.addStretch(1)
seek_col.addLayout(line)
seek.drop = QSpacerItem(0, 0, QSizePolicy.Policy.Minimum,
QSizePolicy.Policy.Fixed)
seek_col.addSpacerItem(seek.drop)
# The now-playing panel is exactly as tall as the boxes and shares
# their top edge, so boxes, visualizer, panel and bpm read as one row;