Hello,
Can I suggest a small change in the KTThemeMode logic?
I'm using the event `kt.thememode.change` to grab user's choice and save it in the database.
But there is a scenario where this event is not triggered:
Imagine that:
- My system theme is 'dark'
- My current selection is theme 'dark'
- I'll try to change to 'System' (so I can control it through my system)
- There is no event trigger
if (mode !== currentMode) {
KTEventHandler.trigger(document.documentElement, 'kt.thememode.change', the);
}
It should be nice to trigger this event when I'm changing values.
Even from 'dark' to 'system' (assuming my system is dark)
Or from 'light' to 'system' (assuming my system is light)
In order to play slot machines online in the United Kingdom, I use only this site - kinghills , because this site is simply the best to play slot machines online in the United Kingdom, and win real money online! And thanks to this site, I have already won a good amount of money in slot machines. Have a great day playing on this site.
Hi,
Sorry for the late reply
In src/js/layout/theme-mode.js
in the end of setMode function can you try to change:
if (mode !== currentMode) {
KTEventHandler.trigger(document.documentElement, "kt.thememode.change", the);
}
KTEventHandler.trigger(document.documentElement, "kt.thememode.change", the);