semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

feat(enhancement): use system dark mode

Open rmtsrc opened this issue 2 years ago • 2 comments

Currently by default semaphore is shown using the light theme and does not change based on the current system dark mode setting.

I often find myself toggling the system light theme during the day and the dark mode at night. Most browsers, websites and my IDE all automatically update to reflect the system setting.

This PR uses the browsers prefers-color-scheme media query, which takes into account your system theme settings.

Screencast from 2023-06-19 19-07-04.webm

rmtsrc avatar Jun 19 '23 18:06 rmtsrc

Hi @rmtsrc

It is really cool!

fiftin avatar Jul 03 '23 08:07 fiftin

I will test it soon. I think we should add switcher: Dark, Light, System.

fiftin avatar Jul 03 '23 08:07 fiftin