function renderTheme(newTheme) {
	// Change app colors
	let root = document.querySelector(":root");
	let reference = {"light": 0, "dark": 1};
	reference = reference[newTheme];
	let themes = {
			"mainContainerColor": ["rgba(255, 255, 255, 0.4)", "rgba(0, 0, 0, 0.5)"],
			"secondaryColor": ["rgba(255, 255, 255, 0.3)", "rgba(0, 0, 0, 0.5)"],
			"taskColor": ["rgba(255, 255, 255, 0.4)", "rgba(0, 0, 0, 0.5)"],
			"innerTaskColor": ["rgba(255, 255, 255, 0.6)", "rgba(0, 0, 0, 0.7)"],
			"popUpColor": ["rgba(255, 255, 255, 1)", "rgba(0, 0, 0, 1)"],
			"mainBorderColor": ["rgba(50, 50, 50, 1)", "rgba(255, 255, 255, 0.7)"],
			"secondBorderColor": ["rgba(90, 90, 90, 0.6)", "rgba(255, 255, 255, 0.3)"],
			"taskEditBorderColor": ["rgb(180, 180, 0)", "rgb(230, 230, 0)"],
			"taskCompleteBorderColor": ["rgb(100, 150, 0)", "rgb(100, 255, 0)"],
			"taskEditColor": ["rgba(255, 255, 0, 0.5)", "rgba(255, 255, 0, 0.2)"],
			"taskCompleteColor": ["rgba(100, 255, 0, 0.5)", "rgba(100, 255, 0, 0.2)"],
			"fontColor": ["rgb(20, 20, 20)", "rgb(210, 210, 210)"],
			"mixBlendMode": ["lighten", "darken"]
	};
	for (let property in themes) {
			root.style.setProperty(`--${property}`, themes[property][reference]);
	}
	saveTheme(newTheme);
}
/**
 * Renders the specified theme on the screen and saves it into the database
 * @function renderTheme
 * @param {string} newTheme Name of the theme to display on the screen
 */
Renders the specified theme on the screen and saves it into the database
@function renderTheme
@param {string} newTheme Name of the theme to display on the screen
Renders the specified theme on the screen and saves it into the database @function renderTheme @param { string } newTheme Name of the theme to display on the screen
function renderTheme(newTheme) {
	let root = document.querySelector(":root");
	let reference = {"light": 0, "dark": 1};
	reference = reference[newTheme];
	let themes = {
			"mainContainerColor": ["rgba(255, 255, 255, 0.4)", "rgba(0, 0, 0, 0.5)"],
			"secondaryColor": ["rgba(255, 255, 255, 0.3)", "rgba(0, 0, 0, 0.5)"],
			"taskColor": ["rgba(255, 255, 255, 0.4)", "rgba(0, 0, 0, 0.5)"],
			"innerTaskColor": ["rgba(255, 255, 255, 0.6)", "rgba(0, 0, 0, 0.7)"],
			"popUpColor": ["rgba(255, 255, 255, 1)", "rgba(0, 0, 0, 1)"],
			"mainBorderColor": ["rgba(50, 50, 50, 1)", "rgba(255, 255, 255, 0.7)"],
			"secondBorderColor": ["rgba(90, 90, 90, 0.6)", "rgba(255, 255, 255, 0.3)"],
			"taskEditBorderColor": ["rgb(180, 180, 0)", "rgb(230, 230, 0)"],
			"taskCompleteBorderColor": ["rgb(100, 150, 0)", "rgb(100, 255, 0)"],
			"taskEditColor": ["rgba(255, 255, 0, 0.5)", "rgba(255, 255, 0, 0.2)"],
			"taskCompleteColor": ["rgba(100, 255, 0, 0.5)", "rgba(100, 255, 0, 0.2)"],
			"fontColor": ["rgb(20, 20, 20)", "rgb(210, 210, 210)"],
			"mixBlendMode": ["lighten", "darken"]
	};
	for (let property in themes) {
			root.style.setProperty(`--${property}`, themes[property][reference]);
	}
	saveTheme(newTheme);
}
function renderTheme ( newTheme ) { let root = document . querySelector ( ":root" ) ; let reference = { "light" : 0 , "dark" : 1 } ; reference = reference [ newTheme ] ; let themes = { "mainContainerColor" : [ "rgba(255, 255, 255, 0.4)" , "rgba(0, 0, 0, 0.5)" ] , "secondaryColor" : [ "rgba(255, 255, 255, 0.3)" , "rgba(0, 0, 0, 0.5)" ] , "taskColor" : [ "rgba(255, 255, 255, 0.4)" , "rgba(0, 0, 0, 0.5)" ] , "innerTaskColor" : [ "rgba(255, 255, 255, 0.6)" , "rgba(0, 0, 0, 0.7)" ] , "popUpColor" : [ "rgba(255, 255, 255, 1)" , "rgba(0, 0, 0, 1)" ] , "mainBorderColor" : [ "rgba(50, 50, 50, 1)" , "rgba(255, 255, 255, 0.7)" ] , "secondBorderColor" : [ "rgba(90, 90, 90, 0.6)" , "rgba(255, 255, 255, 0.3)" ] , "taskEditBorderColor" : [ "rgb(180, 180, 0)" , "rgb(230, 230, 0)" ] , "taskCompleteBorderColor" : [ "rgb(100, 150, 0)" , "rgb(100, 255, 0)" ] , "taskEditColor" : [ "rgba(255, 255, 0, 0.5)" , "rgba(255, 255, 0, 0.2)" ] , "taskCompleteColor" : [ "rgba(100, 255, 0, 0.5)" , "rgba(100, 255, 0, 0.2)" ] , "fontColor" : [ "rgb(20, 20, 20)" , "rgb(210, 210, 210)" ] , "mixBlendMode" : [ "lighten" , "darken" ] } ; for ( let property in themes ) { root . style . setProperty ( ` ${ property } ` , themes [ property ] [ reference ] ) ; } saveTheme ( newTheme ) ; }
Renders the specified theme on the screen and saves it into the database
 @function renderTheme
 @param {string} newTheme Name of the theme to display on the screen
Renders the specified theme on the screen and saves it into the database @function renderTheme @param { string } newTheme Name of the theme to display on the screen
// Change app colors