Is there a way to identify the user's preferred/default style setting via a xen variable?
i..e, how can I identify what's here: ACP > Users > Preferences > Style
I've taken a look at '$visitor', however, I'm not seeing anything that will point me to that particular data point (am I overlooking it? or is it stored elsewhere?). '$visitor.style_id' isn't it, as that strictly displays the style that's being displayed on the screen, rather than looking to the user's preferences directly.
...context: I use Turnkey Mobile Apps , which only allows for a single pre-defined style to be utilized. I'm thinking through a way in which I can use a combination of js & css to conditionally display the single App style in various color palettes, using the user's desktop preference as a driver. ex: if their desktop style pref is set to our "day theme" then i will display things in white on the app style, if it's set to "night theme" then i will display things in black on the app style (generalized statement).
Thanks.
i..e, how can I identify what's here: ACP > Users > Preferences > Style
I've taken a look at '$visitor', however, I'm not seeing anything that will point me to that particular data point (am I overlooking it? or is it stored elsewhere?). '$visitor.style_id' isn't it, as that strictly displays the style that's being displayed on the screen, rather than looking to the user's preferences directly.
...context: I use Turnkey Mobile Apps , which only allows for a single pre-defined style to be utilized. I'm thinking through a way in which I can use a combination of js & css to conditionally display the single App style in various color palettes, using the user's desktop preference as a driver. ex: if their desktop style pref is set to our "day theme" then i will display things in white on the app style, if it's set to "night theme" then i will display things in black on the app style (generalized statement).
Thanks.