From 6a765f3e8509fb62c9c6d381b57b5964b461f4b8 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 4 Aug 2020 19:03:55 +0800 Subject: Show some love to our photophobic users. (Always use dark theme if the user indicates their preference.) Blog posts will be updated later. --- libs/music/player.d/main_static.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/music/player.d') diff --git a/libs/music/player.d/main_static.js b/libs/music/player.d/main_static.js index fe30cca..51f7243 100644 --- a/libs/music/player.d/main_static.js +++ b/libs/music/player.d/main_static.js @@ -547,7 +547,7 @@ NSVisualization={ NSAudio.anlznode.getByteTimeDomainData(timedomv); cctx.lineWidth=window.devicePixelRatio; cctx.strokeStyle='#000'; - if(athm)cctx.strokeStyle='#FFF'; + if(isDarkTheme)cctx.strokeStyle='#FFF'; cctx.beginPath(); for(let i=0,x=0;i{ -- cgit v1.2.3