mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-09 17:38:04 +02:00
Light mode (#38)
This commit is contained in:
@ -25,7 +25,8 @@ const registerDomSetting = (el: HTMLElement) => {
|
||||
setSetting(el.id, el.dataset["bool"] === 'true' ? '1' : '0')
|
||||
.then(() => {
|
||||
el.classList.toggle("bg-primary-600");
|
||||
el.classList.toggle("bg-gray-400");
|
||||
el.classList.toggle("dark:bg-gray-400");
|
||||
el.classList.toggle("bg-gray-300");
|
||||
(el.childNodes.item(1) as HTMLElement).classList.toggle("translate-x-5");
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user