Adjustments to colours/styling of tabs, items in FM & new Help popup

Minor alts to suit different states of tabs
Also minor alts to select/deselect of files/folders in file manager to suit darker style
New function to show/hide help popup on demand
This commit is contained in:
Matt Pass
2012-05-09 17:15:06 +01:00
parent ca46e36e5a
commit 491fb4c243

View File

@@ -368,12 +368,14 @@ var ICEcoder = {
// Reset all tabs to be without a highlight and then highlight the selected
redoTabHighlight: function(selectedTab) {
var bgVPos;
var bgVPos, tColor;
for(var i=1;i<=ICEcoder.changedContent.length;i++) {
ICEcoder.changedContent[i-1]==1 ? bgVPos = -44 : bgVPos = 0;
i==selectedTab ? ICEcoder.changedContent[selectedTab-1]==1 ? bgVPos = -33 : bgVPos = -22 : bgVPos = bgVPos;
bgVPos == 0 ? tColor = "#ffffff" : bgVPos == -44 ? tColor = "#ffffff" : tColor = "#000000";
document.getElementById('tab'+i).style.backgroundPosition = "0px "+bgVPos+"px";
document.getElementById('tab'+i).style.color = tColor;
}
ICEcoder.changedContent[selectedTab-1]==1 ? top.ICEcoder.fMIconVis('fMSave',1) : top.ICEcoder.fMIconVis('fMSave',0.3);
},
@@ -687,8 +689,8 @@ var ICEcoder = {
// Select or deselect file
selectDeselectFile: function(action,file) {
action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="#dddddd";
action == "select" ? file.style.color="#f8f8f8" : file.style.color="#000000";
action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="#444444";
action == "select" ? file.style.color="#ffffff" : file.style.color="#eeeeee";
},
// Create a new file (start & instant save)
@@ -1441,6 +1443,14 @@ var ICEcoder = {
top.ICEcoder.showHide(vis,top.document.getElementById('blackMask'));
},
// Show the help screen
helpScreen: function(vis) {
if (vis=="show") {
top.document.getElementById('mediaContainer').innerHTML = '<iframe src="lib/help.php" class="whiteGlow" style="width: 400px; height: 400px"></iframe>';
}
top.ICEcoder.showHide(vis,top.document.getElementById('blackMask'));
},
// Update the settings used when we make a change to them
useNewSettings: function(themeURL,tabsIndent,codeAssist,lockedNav,visibleTabs,refreshFM) {
var styleNode, strCSS, cMCSS;