Site theme on per device basis

Group Leader
Joined
May 7, 2019
Messages
10
Preferably like a checkbox below before changing themes, for situations like regular dark theme on PC and abyss theme on mobile.
 
Double-page supporter
Joined
Nov 26, 2018
Messages
1,156
Which means it will be stored in local storages, being loging in doesn't matter and it will be reset whenever I clear cookies/cache? Er, I prefer not.
 
Miku best girl
VIP
Joined
May 29, 2012
Messages
1,442
Theme is stored with your user account, so at the moment this wouldn't be possible.
 
Dex-chan lover
Joined
Jan 20, 2018
Messages
1,058
> Theme is stored with your user account, so at the moment this wouldn't be possible.

It should be relatively easy to store 2 themes for mobile/pc and use them depending on the user agent.

Edit: just parse user agent for words like android, mobile, tablet, iphone, ipad. Use mobile theme if found anything or pc theme otherwise. You don't even need to parse UA every request. Just very first one then use single theme for the session. IIRC it expires after 15 (or was it 10?) minutes. So in the worst case you will do it 4 (6?) times per hour for every user.
 

Users who are viewing this thread

Top