code: function apply() {
  		document.getElementById("editorThemeName").value = currentTheme.name; //$NON-NLS-0$
  		for (var i = 0; i < scopeList.length; i++){
  			scopeList[i].value = defaultColor; // scopes with no value will have defaultColor showing
  			for (var l = 0; l < scopeList[i].objPath.length; l++){
  				var temp = getValueFromPath(currentTheme,scopeList[i].objPath[l]);
  				if (temp){
  					scopeList[i].value = temp;
  					break;
  				}
  			}
  		}
  		for (i = 0; i < scopeList.length; i++){
  			var element = document.getElementById(scopeList[i].id);
  			element.value = scopeList[i].value; // updates the select or input[type=color] with correct value
  			if (element.type === "color") { //$NON-NLS-0$
  				// make the color value available in a tooltip and aria-label
  				makeTooltip(element, scopeList[i]);
  			}
  		}
  		checkForChanges(); // checks if any value is changed
  	}
docs: updates the theme object with right values