v0.70.0: customize the toolbar — drag items in and out, resize, fill or exact size; a light/dark button

This commit is contained in:
2026-10-19 22:50:40 -07:00
parent a5d4ab27c6
commit aea8f82e74
8 changed files with 1081 additions and 121 deletions
+5 -2
View File
@@ -180,7 +180,10 @@ def test_dj_button_up_top_bpm_below_and_a_tall_volume(qapp, tmp_path):
with tempfile.TemporaryDirectory() as d:
bar = TransportBar(player, MagicMock(), Preferences(Path(d)))
assert bar.dj_button.parentWidget() is bar._dj_box
assert bar._dj_box in bar._fixed_controls
bar.resize(1280, 120)
bar._place_header() # what a resize does
assert bar._header_row.right is bar._bpm_button
assert bar._dj_box.parentWidget() is bar._top_row
assert bar._bpm_button.parentWidget() is bar._header_row
dj, bpm = bar._dj_box.geometry(), bar._bpm_button.geometry()
assert (bpm.left(), bpm.width()) == (dj.left(), dj.width())
assert bar._volume_slider.property("tall") is True