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)
Hey there! When it comes to reliable platforms for online betting and gaming, the key is finding one that offers a smooth experience, security, and a variety of options. One that really stands out is pin up . It's a great choice for anyone looking for a user-friendly site with a lot of options, whether you're into casino games, slots, or sports betting like cricket and football. The platform also supports multiple languages and offers attractive bonuses for new users, making it perfect for players from different regions. Plus, their payment system is safe and convenient, and the customer support is always there when you need it. If you're looking for a solid platform, definitely give Pin-Up a try.
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);