From ec27eb53bc01baa07aabf8e47b50bf41032bcf0b Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 10 May 2012 20:42:49 +0100 Subject: [PATCH] Close button now has 30% white BG, transparent on file deselect --- lib/coder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/coder.js b/lib/coder.js index 3d24c57..7fd37ef 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -372,7 +372,7 @@ var ICEcoder = { for(var i=1;i<=ICEcoder.changedContent.length;i++) { if (document.getElementById('closeTabButton'+i)) { - ICEcoder.changedContent[i-1]==1 ? document.getElementById('closeTabButton'+i).style.backgroundColor = "#bb0000" : document.getElementById('closeTabButton'+i).style.backgroundColor = "transparent"; + ICEcoder.changedContent[i-1]==1 ? document.getElementById('closeTabButton'+i).style.backgroundColor = "#bb0000" : document.getElementById('closeTabButton'+i).style.backgroundColor = "rgba(255,255,255,0.3)"; } i==selectedTab ? tColor = "#ffffff" : tColor = "#000000"; document.getElementById('tab'+i).style.color = tColor; @@ -691,7 +691,7 @@ var ICEcoder = { // Select or deselect file selectDeselectFile: function(action,file) { - action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="#444444"; + action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="transparent"; action == "select" ? file.style.color="#ffffff" : file.style.color="#eeeeee"; },