Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chrome Will Allow Sites to Check Your OS Dark Mode Settings
#1
Quote:Google Chrome and Mozilla Firefox will soon support a new CSS media query called 'prefers-color-scheme' that let's sites know whether you prefer a dark mode, light mode, or have no preference.
 
In a post to Chromium's blink-dev mailing list, Chromium developer Rune Lillesveen has stated that they plan on releasing support for the the prefers-color-scheme media query in Chrome 76. 
 
This media query will allow web sites to see what color preference is configured on visitor's operating system.
 
"Support the media query feature 'prefers-color-scheme' from Media Queries Level 5 to let authors adapt web content to user-selected themes in the OS or browser. For instance by selecting dark instead of light appearance in MacOS. Keywords: 'light', 'dark', 'no-preference'."

Using this query, sites can automatically use a dark mode theme if your OS is configured to use one as well, making the site, browser, and operating synchronized in color preferences.

SOURCE: https://www.bleepingcomputer.com/news/so...-settings/
[-] The following 3 users say Thank You to silversurfer for this post:
  • Deep900, harlan4096, ismail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
Intel Lunar Lake and AMD Strix Point lap...
AMD and Intel conf...harlan4096 — 09:19
INTEL Arc Graphics 31.0.101.5590
GAMING HIGHLIGHTS:...harlan4096 — 09:16
Rogue Anti-Malware 15.17.0 06
V15.17.0 06/11/202...harlan4096 — 09:14
Brave 1.67.116
Release Notes 1.67...harlan4096 — 07:26
CrystalDiskInfo 9.3.1 [2024/06/15]
9.3.1 ​ Added A...harlan4096 — 07:24

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (37)Tedscolo
avatar (44)brakasig
avatar (43)JamesReshy
avatar (45)Francisemefe
avatar (38)leoniDup
avatar (37)Patrizaancem
avatar (37)biobdam
avatar (38)storoBox
avatar (46)kinotHeemn
avatar (37)Ceballos1976
avatar (38)efynu

[-]
Online Staff
There are no staff members currently online.

>