async function retrieveTheme() {
	let newTheme = (await DatabaseInfoModule.retrieveInfo(database, "Custom preferences", {query: "theme"}))[0];
	if (!newTheme) {
		newTheme = "light";
	}
	renderTheme(newTheme);
	DOMElementHandler.renderSwitch("change_theme", ".inside-switch-div",
		{
			leftValue: "dark",
			rightValue: "light"
		}, newTheme);
}
/**
 * Retrieves theme from the database and renders it into the page
 * @async
 * @function retrieveTheme
 */
Retrieves theme from the database and renders it into the page
@async
@function retrieveTheme
Retrieves theme from the database and renders it into the page @async @function retrieveTheme
async function retrieveTheme() {
	let newTheme = (await DatabaseInfoModule.retrieveInfo(database, "Custom preferences", {query: "theme"}))[0];
	if (!newTheme) {
		newTheme = "light";
	}
	renderTheme(newTheme);
	DOMElementHandler.renderSwitch("change_theme", ".inside-switch-div",
		{
			leftValue: "dark",
			rightValue: "light"
		}, newTheme);
}
async function retrieveTheme ( ) { let newTheme = ( await DatabaseInfoModule . retrieveInfo ( database , "Custom preferences" , { query : "theme" } ) ) [ 0 ] ; if ( ! newTheme ) { newTheme = "light" ; } renderTheme ( newTheme ) ; DOMElementHandler . renderSwitch ( "change_theme" , ".inside-switch-div" , { leftValue : "dark" , rightValue : "light" } , newTheme ) ; }
Retrieves theme from the database and renders it into the page
 @async
 @function retrieveTheme
Retrieves theme from the database and renders it into the page @async @function retrieveTheme