Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

Follow browser's light/dark theme style #77

Open stanio opened 1 year ago

stanio commented 1 year ago

Should sufficiently solve #63:

The ‘color-scheme’ property allows an element to indicate which color schemes it is designed to be rendered with. These values are negotiated with the user’s preferences, resulting in a used color scheme that affects things such as the default colors of form controls and scrollbars as well as the used values of the CSS system colors.

stanio commented 1 year ago

The style sheet already uses CSS system colors. The color-scheme: light dark declaration just adjusts their actual values to the browser's theme setting.

stanio commented 1 year ago

Here's a demo:

Dark Light
dark light
stanio commented 1 year ago

@Rob--W, could you spin a new version using the suggested change? (if you're o.k. with the change)