XF 2.3 Style variations override by System

RockGermany

Member
Licensed customer
Hi,

i created a design with a light and a dark mode using style-variables. When I select either light or dark mode, the forum loads with the correct settings immediately.

1795644128833.webp

However, if I refresh the page, it always reverts to the setting used by Windows 11 or Android, regardless of my previous choice. It continues to display the selected option. This is actually only supposed to happen with the "System" option, but it occurs with all three options. When I click “light” (german "Hell") again, it stays bright until the next page load.

1795644154286.webp

In HTML data-variation="default" and data-color-scheme="light" are also missing after reloading. But it's correct in the database. In this Forum, it's working as intended.

Does anyone have a tip or idea on how to enable the system-overwrite only for “System”? My attempt with the Add-on "Style Variation Default" doesn't change anything.

xf v2.3.13
ThemeHouse UI.X 2

THX!
 
Last edited:
Solution: I had to place the UI.X child-style for variations between the UI.X style and our style. Then it works. It looks like a bug in the UI.x design.

1795729582459.webp
 
Last edited:
Just to provide an update for folks who come here down the road from search - With the variations-version of UI.X you install it standalone without using the UI.X base style as a parent; We included the variations-ready version in the child_xmls folder just to keep it separate (as it's not 100% supported yet - there are some bugs with color functions we rely on with XF's variations).
 
Back
Top Bottom