<script>
(function() {
var theme = localStorage.getItem('theme') || 'light.css'; // Default ist Light Theme
var prePath = <?php echo json_encode(PREPEND_PATH); ?>;
if(theme) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = prePath + 'resources/initializr/css/' + theme;
document.head.appendChild(link);
}
})();
</script>
Fix for theme switcher
Fix for theme switcher
Anyone who notices flickering with the theme switcher can use this fix in header-extras.php. It loads the themes before any flickering occurs.
Re: Fix for theme switcher
Thanks for sharing!
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.