v0.77.0: the laser visualizer is the Oscilloscope — screen sliders and rig diagram gone, a graticule dot size, and a sync delay per style

This commit is contained in:
2026-10-23 00:21:32 -07:00
parent 5413263587
commit 5f41460cb6
13 changed files with 357 additions and 478 deletions
+4 -3
View File
@@ -54,14 +54,15 @@ class TestBetweenFrames:
class TestSyncSooner:
def test_negative_delay_is_kept(self):
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -30}) == -30
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -999}) == vs.SYNC_DELAY_LIMITS[0]
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -30}, "bars") == -30
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -999},
"bars") == vs.SYNC_DELAY_LIMITS[0]
def test_slider_reads_sooner_and_later(self, qapp, tmp_path, monkeypatch):
from lintunes.gui import preferences_dialog as pd
monkeypatch.setattr(pd, "load_config", lambda: {})
dialog = pd.PreferencesDialog(Preferences(tmp_path), _LastFm())
assert dialog._sync_slider.minimum() < 0
assert dialog._sync_sliders["kaleidostrobe"].minimum() < 0
assert pd._sync_text(-20) == "20 ms sooner"
assert pd._sync_text(40) == "40 ms later"