Dark / Light Mode Automatic Toggle Switch / jsdmat 0.4.0

Subject Information

Category Name XenForo 2.x Template modifications
TOPIC TITLE Dark \/ Light Mode Automatic Toggle Switch \/ jsdmat
Thread starter AnimeHaxor
Start date
Replies
Views
First message reaction score
LAST MESSAGE BY AnimeHaxor

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Moderator
Registered
Local time
7:29 PM
Joined
Nov 22, 2015
Messages
6,417
Reaction score
42,692
Points
113
Website
www.nullscripts.net
Site Script
XenForo
AnimeHaxor submitted a new resource:

Dark / Light Mode Automatic Toggle Switch / jsdmat - Automatically switches unlimited light & dark styles by JS utilizing browser's prefers-color-scheme.

About jsdmat​

This modification enables a XenForo installation to automatically toggle light and dark styles based on the user browser's UI setting "prefers-color-scheme".
Adding this CSS media feature directly to XenForo CSS definitions is hardly possible for the current architecture. Switching between light and dark UI without major modifications is easier done by switching between...

Read more about this resource...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Moderator
Registered
Local time
7:29 PM
Joined
Nov 22, 2015
Messages
6,417
Reaction score
42,692
Points
113
Website
www.nullscripts.net
Site Script
XenForo
AnimeHaxor updated Dark / Light Mode Automatic Toggle Switch / jsdmat with a new update entry:

0.4.0 Feature update

  • Added capability to react and incorporate user-driven style changes including lock and release scenarios.
  • Added call method to accept user-driven toggle requests ("light to dark" and vice versa).
  • Rebuilt mandatory template modification sheet (PAGE_CONTAINER) to comply to new jsdmat object structure.
  • Added recommended template modification sheet (style_chooser) to be able to capture user-driven style changes.
  • Added optional public navigation entry example to offer a...

Read the rest of this update entry...