diff --git a/configs/client-default.js b/configs/client-default.js index 943872fc..bc5c9b73 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -462,6 +462,7 @@ module.exports = function(options) { cdn: options.useCdn }, "plugins/c9.ide.theme.flat/flat-light", + "plugins/c9.ide.theme.flat/flat-dark", { packagePath: "plugins/c9.ide.layout.classic/preload", themePrefix: options.themePrefix, diff --git a/configs/standalone.js b/configs/standalone.js index 1e83ff13..d6611bed 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -132,7 +132,10 @@ module.exports = function(config, optimist) { "connect-architect/connect.remote-address", "connect-architect/connect.render", "connect-architect/connect.render.ejs", - "connect-architect/connect.redirect", + { + packagePath: "connect-architect/connect.redirect", + trustedDomainsRe: /.*/, + }, "connect-architect/connect.cors", "./c9.connect.favicon/favicon", // "./c9.logger/stdout-logger", diff --git a/node_modules/ace/lib/ace/edit_session.js b/node_modules/ace/lib/ace/edit_session.js index 81ae0680..7813b3d0 100644 --- a/node_modules/ace/lib/ace/edit_session.js +++ b/node_modules/ace/lib/ace/edit_session.js @@ -1158,7 +1158,7 @@ EditSession.$uid = 0; this.addFolds(delta.folds); } } - if (!dontSelect) { + if (!dontSelect && this.$undoSelect) { // console.log(deltas.selectionBefore + "uuu") if (deltas.selectionBefore) this.selection.fromJSON(deltas.selectionBefore); @@ -1187,7 +1187,7 @@ EditSession.$uid = 0; } } - if (!dontSelect) { + if (!dontSelect && this.$undoSelect) { if (deltas.selectionAfter) this.selection.fromJSON(deltas.selectionAfter); else diff --git a/node_modules/ace/lib/ace/layer/font_metrics.js b/node_modules/ace/lib/ace/layer/font_metrics.js index 7fea61e4..3959cb29 100644 --- a/node_modules/ace/lib/ace/layer/font_metrics.js +++ b/node_modules/ace/lib/ace/layer/font_metrics.js @@ -172,7 +172,7 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) { this.getCharacterWidth = function(ch) { var w = this.charSizes[ch]; if (w === undefined) { - this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; + w = this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; } return w; }; diff --git a/node_modules/ace/lib/ace/placeholder.js b/node_modules/ace/lib/ace/placeholder.js index 0e299594..c4c88b11 100644 --- a/node_modules/ace/lib/ace/placeholder.js +++ b/node_modules/ace/lib/ace/placeholder.js @@ -70,7 +70,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) this.$pos = pos; // Used for reset var undoStack = session.getUndoManager().$undoStack || session.getUndoManager().$undostack || {length: -1}; - this.$undoStackDepth = undoStack.length; + this.$undoStackDepth = undoStack.length; this.setup(); session.selection.on("changeCursor", this.$onCursorChange); @@ -90,21 +90,21 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) var _self = this; var doc = this.doc; var session = this.session; - var pos = this.$pos; this.selectionBefore = session.selection.toJSON(); if (session.selection.inMultiSelectMode) session.selection.toSingleRange(); - this.pos = doc.createAnchor(pos.row, pos.column); - this.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); - this.pos.on("change", function(event) { - session.removeMarker(_self.markerId); - _self.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.mainClass, null, false); - }); + this.pos = doc.createAnchor(this.$pos.row, this.$pos.column); + var pos = this.pos; + pos.$insertRight = true; + pos.detach(); + pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); this.others = []; this.$others.forEach(function(other) { var anchor = doc.createAnchor(other.row, other.column); + anchor.$insertRight = true; + anchor.detach(); _self.others.push(anchor); }); session.setUndoSelect(false); @@ -117,16 +117,12 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.showOtherMarkers = function() { - if(this.othersActive) return; + if (this.othersActive) return; var session = this.session; var _self = this; this.othersActive = true; this.others.forEach(function(anchor) { anchor.markerId = session.addMarker(new Range(anchor.row, anchor.column, anchor.row, anchor.column+_self.length), _self.othersClass, null, false); - anchor.on("change", function(event) { - session.removeMarker(anchor.markerId); - anchor.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.othersClass, null, false); - }); }); }; @@ -137,7 +133,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.hideOtherMarkers = function() { - if(!this.othersActive) return; + if (!this.othersActive) return; this.othersActive = false; for (var i = 0; i < this.others.length; i++) { this.session.removeMarker(this.others[i].markerId); @@ -151,64 +147,61 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.onUpdate = function(delta) { + if (this.$updating) + return this.updateAnchors(delta); + var range = delta; - if(range.start.row !== range.end.row) return; - if(range.start.row !== this.pos.row) return; - if (this.$updating) return; + if (range.start.row !== range.end.row) return; + if (range.start.row !== this.pos.row) return; this.$updating = true; var lengthDiff = delta.action === "insert" ? range.end.column - range.start.column : range.start.column - range.end.column; + var inMainRange = range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1; + var distanceFromStart = range.start.column - this.pos.column; - if(range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1) { - var distanceFromStart = range.start.column - this.pos.column; + this.updateAnchors(delta); + + if (inMainRange) this.length += lengthDiff; - if(!this.session.$fromUndo) { - if(delta.action === 'insert') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - if(otherPos.row === range.start.row && range.start.column < otherPos.column) - newPos.column += lengthDiff; - this.doc.insertMergedLines(newPos, delta.lines); - } - } else if(delta.action === 'remove') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - if(otherPos.row === range.start.row && range.start.column < otherPos.column) - newPos.column += lengthDiff; - this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); - } + + if (inMainRange && !this.session.$fromUndo) { + if (delta.action === 'insert') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + this.doc.insertMergedLines(newPos, delta.lines); } - // Special case: insert in beginning - if(range.start.column === this.pos.column && delta.action === 'insert') { - setTimeout(function() { - this.pos.setPosition(this.pos.row, this.pos.column - lengthDiff); - for (var i = 0; i < this.others.length; i++) { - var other = this.others[i]; - var newPos = {row: other.row, column: other.column - lengthDiff}; - if(other.row === range.start.row && range.start.column < other.column) - newPos.column += lengthDiff; - other.setPosition(newPos.row, newPos.column); - } - }.bind(this), 0); + } else if (delta.action === 'remove') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); } - else if(range.start.column === this.pos.column && delta.action === 'remove') { - setTimeout(function() { - for (var i = 0; i < this.others.length; i++) { - var other = this.others[i]; - if(other.row === range.start.row && range.start.column < other.column) { - other.setPosition(other.row, other.column - lengthDiff); - } - } - }.bind(this), 0); - } - } - this.pos._emit("change", {value: this.pos}); - for (var i = 0; i < this.others.length; i++) { - this.others[i]._emit("change", {value: this.others[i]}); } } + this.$updating = false; + this.updateMarkers(); + }; + + this.updateAnchors = function(delta) { + this.pos.onChange(delta); + for (var i = this.others.length; i--;) + this.others[i].onChange(delta); + this.updateMarkers(); + }; + + this.updateMarkers = function() { + if (this.$updating) + return; + var _self = this; + var session = this.session; + var updateMarker = function(pos, className) { + session.removeMarker(pos.markerId); + pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column+_self.length), className, null, false); + }; + updateMarker(this.pos, this.mainClass); + for (var i = this.others.length; i--;) + updateMarker(this.others[i], this.othersClass); }; /** @@ -237,14 +230,10 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.detach = function() { - this.session.removeMarker(this.markerId); + this.session.removeMarker(this.pos && this.pos.markerId); this.hideOtherMarkers(); this.doc.removeEventListener("change", this.$onUpdate); this.session.selection.removeEventListener("changeCursor", this.$onCursorChange); - this.pos.detach(); - for (var i = 0; i < this.others.length; i++) { - this.others[i].detach(); - } this.session.setUndoSelect(true); this.session = null; }; @@ -256,8 +245,8 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.cancel = function() { - if(this.$undoStackDepth === -1) - throw Error("Canceling placeholders only supported with undo manager attached to session."); + if (this.$undoStackDepth === -1) + return; var undoManager = this.session.getUndoManager(); var undosRequired = (undoManager.$undoStack || undoManager.$undostack).length - this.$undoStackDepth; for (var i = 0; i < undosRequired; i++) { diff --git a/node_modules/architect-build/build_support/mini_require.js b/node_modules/architect-build/build_support/mini_require.js index 45407316..2eadd52a 100644 --- a/node_modules/architect-build/build_support/mini_require.js +++ b/node_modules/architect-build/build_support/mini_require.js @@ -254,8 +254,8 @@ var normalizeNames = function(parentId, moduleNames) { }); }; -var require = function(module, callback) { - return _require("", module, callback); +var require = function(module, callback, errback) { + return _require("", module, callback, errback); }; var config = require.config = function(cfg) { diff --git a/node_modules/connect-architect/connect.redirect/redirect.js b/node_modules/connect-architect/connect.redirect/redirect.js index 43b634f6..9c9e92b4 100644 --- a/node_modules/connect-architect/connect.redirect/redirect.js +++ b/node_modules/connect-architect/connect.redirect/redirect.js @@ -1,13 +1,16 @@ "use strict"; var url = require("url"); +var assert = require("assert"); module.exports = function(options, imports, register) { + assert(options.trustedDomainsRe, "Options 'trustedDomainsRe' must be set"); - var trustedDomainsRe = options.trustedDomainsRe || /.*/; + var trustedDomainsRe = options.trustedDomainsRe; imports.connect.addResponseMethod("redirect", function(location) { - this.writeHead(302, {Location: location}); + this.setHeader("Location", location); + this.writeHead(302); this.end(""); }); imports.connect.addResponseMethod("secureRedirect", function(location) { @@ -15,18 +18,19 @@ module.exports = function(options, imports, register) { if (!trustedDomainsRe.test(parsedLocation.host)) location = parsedLocation.path; - - this.writeHead(302, {Location: location}); - this.end(""); + + this.redirect(location); }); imports.connect.addResponseMethod("returnTo", function(req, defaultReturn) { var url = defaultReturn || "/"; - if (req.session && req.session.returnTo) { + if (req.parsedUrl && req.parsedUrl.query.redirect) { + url = req.parsedUrl.query.redirect; + } + else if (req.session && req.session.returnTo) { url = req.session.returnTo; delete req.session.returnTo; } - - this.redirect(url); + this.secureRedirect(url); }); imports.connect.addResponseMethod("moved", function(location) { this.writeHead(301, {Location: location}); diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index ab4613bc..e9cda24e 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -130,8 +130,12 @@ module.exports = function setup(fsOptions) { } // Fetch environment variables from the login shell + var waitForEnv = null; if (!isWin) { + waitForEnv = []; _execFile(BASH, ["-lc", "printenv -0"], function(error, stdout, stderr) { + var pending = waitForEnv; + waitForEnv = null; if (!error && !stderr && stdout) { var env = fsOptions.defaultEnv; stdout.split("\x00").forEach(function(entry) { @@ -140,6 +144,7 @@ module.exports = function setup(fsOptions) { env[entry.slice(0, i)] = entry.slice(i + 1); }); } + pending.forEach(function(x) { x(); }); }); } @@ -452,9 +457,13 @@ module.exports = function setup(fsOptions) { } function metadata(path, options, callback) { + if (path.charAt(0) == "~") + path = join(process.env.HOME, path.substr(1)); + var dirpath = (path.substr(0,5) == "/_/_/" ? METAPATH + dirname(path.substr(4)) : WSMETAPATH + "/" + dirname(path)); + resolvePath(dirpath, options, function (err, dir) { if (err) return callback(err); @@ -474,7 +483,11 @@ module.exports = function setup(fsOptions) { } function getMetadata(path, options, callback){ + if (path.charAt(0) == "~") + path = join(process.env.HOME, path.substr(1)); + var metaPath = join(WSMETAPATH, path); + resolvePath(metaPath, options, function (err, path) { if (err) return callback(err); fs.readFile(path, callback); @@ -1447,6 +1460,9 @@ module.exports = function setup(fsOptions) { } function spawn(executablePath, options, callback) { + if (waitForEnv) + return waitForEnv.push(spawn.bind(null, executablePath, options, callback)); + var args = options.args || []; _setDefaultEnv(options); @@ -1887,6 +1903,8 @@ module.exports = function setup(fsOptions) { if (!attach) { meta.pty.on("data", function wait(data){ + if (data) + meta.pty.removeListener("data", wait); // Look for error states in plain text from tmux if (data.indexOf("can't create socket") > -1) { var err = new Error(data); @@ -1894,9 +1912,6 @@ module.exports = function setup(fsOptions) { err.code = "EPERM"; meta.pty.emit("data", err); } - else if (data) { - meta.pty.removeListener("data", wait); - } }); } @@ -2166,6 +2181,9 @@ module.exports = function setup(fsOptions) { } function execFile(executablePath, options, callback) { + if (waitForEnv) + return waitForEnv.push(execFile.bind(null, executablePath, options, callback)); + if (isWin && execFileWin(executablePath, options, callback)) return; diff --git a/package.json b/package.json index 4fa1b47e..785929c6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.222", + "version": "3.1.349", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", @@ -42,7 +42,7 @@ "read": "~1.0.5", "form-data": "~0.2.0", "chai": "~1.5.0", - "mocha": "~1.8.1" + "mocha": "~2.3.3" }, "devDependencies": {}, "licenses": [], @@ -55,7 +55,7 @@ "c9" ], "c9plugins": { - "c9.ide.language": "#a6ffafabce", + "c9.ide.language": "#4c2e69b46c", "c9.ide.language.css": "#a649f2a710", "c9.ide.language.generic": "#77d43cfaf0", "c9.ide.language.html": "#0f4078c187", @@ -71,49 +71,49 @@ "c9.ide.find": "#35379124ca", "c9.ide.find.infiles": "#c132ad243c", "c9.ide.find.replace": "#44772dd796", - "c9.ide.run.debug": "#1415524d85", + "c9.ide.run.debug": "#dbe6c81252", "c9.automate": "#47e2c429c9", "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", "c9.ide.ace.keymaps": "#2e3c6e3c8f", "c9.ide.ace.repl": "#4b88a85b7b", "c9.ide.ace.split": "#0ae0151c78", - "c9.ide.ace.statusbar": "#d95be89d53", + "c9.ide.ace.statusbar": "#2155083cf6", "c9.ide.ace.stripws": "#cf0f42ac59", - "c9.ide.behaviors": "#05e5681e2e", + "c9.ide.behaviors": "#ee32d7da73", "c9.ide.closeconfirmation": "#cee4674141", "c9.ide.configuration": "#a9066299a2", "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", "c9.ide.format": "#5ec97fb083", "c9.ide.help.support": "#e95f98f87c", - "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#29fd6d3f51", + "c9.ide.imgeditor": "#03a313cbab", + "c9.ide.immediate": "#a962119bec", "c9.ide.installer": "#0fde9f0067", - "c9.ide.mount": "#3e017a3324", + "c9.ide.mount": "#c4b3a1e4b7", "c9.ide.navigate": "#c191d9b92f", "c9.ide.newresource": "#981a408a7b", "c9.ide.openfiles": "#7fa4a97fed", - "c9.ide.preview": "#b6d2dfe356", - "c9.ide.preview.browser": "#c50007ebbc", - "c9.ide.preview.markdown": "#ab8d30ad9f", + "c9.ide.preview": "#72a4521169", + "c9.ide.preview.browser": "#cec211a76a", + "c9.ide.preview.markdown": "#8ed82f1197", "c9.ide.pubsub": "#a85fb27eca", - "c9.ide.readonly": "#c699cb172b", + "c9.ide.readonly": "#e67bb593bd", "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#2b12cd1bdd", - "c9.ide.run": "#f9b7d60b96", + "c9.ide.run": "#4b031257ee", "c9.ide.run.build": "#0598fff697", - "c9.ide.run.debug.xdebug": "#61dcbd0180", - "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#7b0c0714b4", - "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#ebc037901c", + "c9.ide.run.debug.xdebug": "#891f40a245", + "c9.ide.save": "#76cf52ab6d", + "c9.ide.scm": "#bd5ca2557c", + "c9.ide.terminal.monitor": "#35afa7f97f", + "c9.ide.test": "#f3e5dad5cc", "c9.ide.test.mocha": "#586fb0cdc2", - "c9.ide.theme.flat": "#2de8414db7", + "c9.ide.theme.flat": "#92cda0fb40", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", "c9.ide.upload": "#0bd010d3dc", - "c9.ide.welcome": "#08bca785f5" + "c9.ide.welcome": "#412fe300da" } } \ No newline at end of file diff --git a/plugins/c9.core/ext.js b/plugins/c9.core/ext.js index 29369049..e6c71bf4 100644 --- a/plugins/c9.core/ext.js +++ b/plugins/c9.core/ext.js @@ -530,7 +530,7 @@ define(function(require, exports, module) { }); } - function cleanUp(what) { + function cleanUp(what, otherPlugin) { if (!what || ~what.indexOf("elements")) { // Loop through elements elements.forEach(function(element) { @@ -546,6 +546,7 @@ define(function(require, exports, module) { events.forEach(function(eventRecord) { var event = eventRegistry[eventRecord[0]]; if (!event) return; // this happens with mock plugins during testing + if (otherPlugin && otherPlugin.name != event.name) return; var type = eventRecord[1]; var id = eventRecord[2]; var _events = event._events; diff --git a/plugins/c9.core/http-xhr.js b/plugins/c9.core/http-xhr.js index 2d79d209..4f81302f 100644 --- a/plugins/c9.core/http-xhr.js +++ b/plugins/c9.core/http-xhr.js @@ -83,13 +83,12 @@ define(function(require, module, exports) { } var timer; - var timedout = false; if (timeout) { timer = setTimeout(function() { - timedout = true; xhr.abort(); var err = new Error("Timeout"); err.code = "ETIMEOUT"; + err.data = {url: url, query: options.query}; done(err); }, timeout); } diff --git a/plugins/c9.error/logger.raygun.js b/plugins/c9.error/logger.raygun.js index c1997922..c2cd61e5 100644 --- a/plugins/c9.error/logger.raygun.js +++ b/plugins/c9.error/logger.raygun.js @@ -14,14 +14,15 @@ function plugin(options, imports, register) { var raygun = imports.raygun; function error(err, customData, user) { - if (typeof err === "string") { + if (typeof err == "string") err = new Error(err); - } raygun.errorClient.setUser(user); raygun.errorClient.send(err, customData); } function warn(err, customData, user) { + if (typeof err == "string") + err = new Error(err); raygun.warningClient.setUser(user); raygun.warningClient.send(err, customData); } diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index c9ad1844..9d2a6c6d 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -56,20 +56,20 @@ define(function(require, exports, module) { removeSingleNode(e); }); - watcher.on("change", function(e) { - onstat({path: e.path, result: [null, e.stat]}); + watcher.on("change.all", function(e) { + onstat({ path: e.path, result: [null, e.stat] }); }); - watcher.on("directory", function(e) { + watcher.on("directory.all", function(e) { // @todo make onreaddir incremental - onreaddir({path: e.path, result: [null, e.files]}); + onreaddir({ path: e.path, result: [null, e.files] }); }); // Read fs.on("beforeReaddir", function (e) { var node = findNode(e.path); if (!node) - return; //Parent is not visible + return; // Parent is not visible // Indicate this directory is being read model.setAttribute(node, "status", "loading"); @@ -147,6 +147,8 @@ define(function(require, exports, module) { fs.on("afterReaddir", onreaddir, plugin); function onstat(e) { + var stat; + if (!e.error) { // update cache var there = true; @@ -168,14 +170,14 @@ define(function(require, exports, module) { deleteNode(node); } else { - var stat = e.result[1]; + stat = e.result[1]; if (typeof stat != "object") stat = null; createNode(e.path, stat); } } else if (there) { - var stat = e.result[1]; + stat = e.result[1]; if (typeof stat != "object") stat = null; createNode(e.path, stat, node); @@ -202,18 +204,19 @@ define(function(require, exports, module) { function addSingleNode(e, isFolder, linkInfo) { var node = findNode(e.path); - if (node) return; //Node already exists + if (node) return; // Node already exists if (!showHidden && isFileHidden(e.path)) return; var parent = findNode(dirname(e.path)); - if (parent) { //Dir is in cache + if (parent) { // Dir is in cache var stat = isFolder - ? {mime : "folder"} + ? { mime : "folder" } : (linkInfo - ? {link: true, linkStat: {fullPath: linkInfo}} - : null); + ? { link: true, linkStat: { fullPath: linkInfo } } + : {}); + stat.mtime = Math.floor(Date.now() / 1000); node = createNode(e.path, stat); emit("add", {path : e.path, node : node}); @@ -563,7 +566,10 @@ define(function(require, exports, module) { node.mtime = stat.mtime; if (original_stat || stat.linkErr) node.link = stat.fullPath || stat.linkErr; - node.isFolder = isFolder; + if (isFolder) + node.isFolder = isFolder; + else + delete node.isFolder; } if (node.isFolder && !node.map) @@ -736,6 +742,10 @@ define(function(require, exports, module) { }); plugin.on("unload", function(){ loaded = false; + showHidden = false; + hiddenFilePattern = ""; + hiddenFileRe = /^$/; + orphans = {}; }); /***** Register and define API *****/ diff --git a/plugins/c9.fs/fs.cache.xml_test.js b/plugins/c9.fs/fs.cache.xml_test.js index 5014fe2d..9b574e45 100644 --- a/plugins/c9.fs/fs.cache.xml_test.js +++ b/plugins/c9.fs/fs.cache.xml_test.js @@ -737,7 +737,7 @@ require(["lib/architect/architect", "lib/chai/chai", "/vfs-root", "events"], fsCache.off("add", c2); fsCache.off("update", c3); expect(fsCache.findNode(vpath)).to.exist; - expect(fsCache.findNode(vpath).isFolder).to.equal(false); + expect(fsCache.findNode(vpath).isFolder).to.equal(undefined); expect(fsCache.findNode(vpath).link).to.equal(target); expect(fsCache.findNode(vpath).label).to.equal(vpath.substr(1)); expect(fsCache.findNode(vpath).path).to.equal(vpath); @@ -829,7 +829,7 @@ require(["lib/architect/architect", "lib/chai/chai", "/vfs-root", "events"], var vpath = "/listing.json"; expect(fsCache.findNode(vpath)).to.exist; expect(fsCache.findNode(vpath).size).to.equal(920); - watcher.emit("change", { + watcher.emit("change.all", { type: "change", filename: vpath.substr(1), path: vpath, diff --git a/plugins/c9.fs/mock/test.js b/plugins/c9.fs/mock/test.js index 558c2a2e..6625eb26 100644 --- a/plugins/c9.fs/mock/test.js +++ b/plugins/c9.fs/mock/test.js @@ -38,4 +38,4 @@ var i = 0; console.log(greeter(user), Date.now(), i++); setInterval(function(){ console.log(greeter(user), Date.now(), i++); -}, 10000); +}, 1000); diff --git a/plugins/c9.ide.ace/ace.js b/plugins/c9.ide.ace/ace.js index 27275599..f63b4964 100644 --- a/plugins/c9.ide.ace/ace.js +++ b/plugins/c9.ide.ace/ace.js @@ -100,6 +100,7 @@ define(function(require, exports, module) { "light" : "ace/theme/cloud9_day", "light-gray" : "ace/theme/cloud9_day", "flat-light" : "ace/theme/cloud9_day", + "flat-dark" : "ace/theme/cloud9_night_low_color", "dark" : "ace/theme/cloud9_night_low_color", "dark-gray" : "ace/theme/cloud9_night_low_color" }; diff --git a/plugins/c9.ide.ace/themes.js b/plugins/c9.ide.ace/themes.js index 0abada87..3a2c3db6 100644 --- a/plugins/c9.ide.ace/themes.js +++ b/plugins/c9.ide.ace/themes.js @@ -1,6 +1,7 @@ define(function(require, exports, module) { main.consumes = [ - "PreferencePanel", "ace", "ui", "configure", "settings" + "PreferencePanel", "ace", "ui", "configure", "settings", + "preferences.experimental" ]; main.provides = ["preferences.themes"]; return main; @@ -11,6 +12,9 @@ define(function(require, exports, module) { var ace = imports.ace; var configure = imports.configure; var settings = imports.settings; + var experimental = imports["preferences.experimental"]; + + var FLATDARK = experimental.addExperiment("flat-dark=1", "UI/Flat Dark Theme"); /***** Initialization *****/ @@ -52,7 +56,24 @@ define(function(require, exports, module) { var list = getThemes(); - var rb1, rb2, rb3, rb4, rb5; + var rb1, rb2, rb3, rb4, rb5, rb6; + + var flatThemes = [] + rb6 = new ui.radiobutton({ + group: "theme-color", + class: "themepicker", + style: "background:#252525;", + value: "flat-dark" + }); + rb5 = new ui.radiobutton({ + group: "theme-color", + class: "themepicker", + style: "background:#dcdbdb;", + value: "flat-light" + }); + if (FLATDARK) flatThemes.push(rb6); + flatThemes.push(rb5); + plugin.form.add([ { type: "custom", @@ -79,14 +100,7 @@ define(function(require, exports, module) { style: "padding-top:5px" }), new ui.bar({ - childNodes: [ - rb5 = new ui.radiobutton({ - group: "theme-color", - class: "themepicker", - style: "background:#dcdbdb;", - value: "flat-light" - }) - ] + childNodes: flatThemes }) ] }) @@ -154,7 +168,7 @@ define(function(require, exports, module) { settings.set("user/general/@skin", e.value); }; var setTheme = function(e) { - [rb1, rb2, rb5].some(function(rb) { + [rb1, rb2, rb5, rb6].some(function(rb) { if (rb.value == e.value) { rb.select(); return true; diff --git a/plugins/c9.ide.auth/auth.js b/plugins/c9.ide.auth/auth.js index 0b88d862..3bf062db 100644 --- a/plugins/c9.ide.auth/auth.js +++ b/plugins/c9.ide.auth/auth.js @@ -107,20 +107,9 @@ define(function(require, exports, module) { }) || true; } - function logout(callback) { - accessToken = "invalid"; - loggingIn = false; - - http.request("/_auth/logout", function(err1) { - http.request(ideBaseUrl + "/auth/signout", { - method: "POST", - withCredentials: true - }, function(err2) { - loggedIn = false; - emit("logout", {uid: uid, newUid: ANONYMOUS}); - callback && callback(err1 || err2); - }); - }); + function logout(redirect) { + redirect = redirect || window.location.href; + window.location.href = ideBaseUrl + "/api/nc/logout?redirect=" + encodeURIComponent(redirect); } function createLoopDetector(count, duration) { diff --git a/plugins/c9.ide.dialog.file/file.xml b/plugins/c9.ide.dialog.file/file.xml index aca5d66f..590bd4f5 100644 --- a/plugins/c9.ide.dialog.file/file.xml +++ b/plugins/c9.ide.dialog.file/file.xml @@ -18,18 +18,18 @@ class = "filesave-inner-padding" padding = "5">
- - Filename: - - + + Filename: + +
@@ -50,7 +50,7 @@ focusselect = "true" /> - + = 0; j--) { var tab = nodes[j]; - if (!soft) tab.unload(); + if (!soft) { + tab.meta.$closeSync = true; + tab.unload(); + } else { tab.aml.parentNode.removeChild(tab.aml); tab.pane = null; @@ -1346,6 +1345,8 @@ define(function(require, module, exports) { } function cancelPreview(keep) { + var lastFocussedTab = focussedTab; + // Unload last preview tab if (lastPreviewTab) { lastPreviewTab.unload(); @@ -1365,11 +1366,13 @@ define(function(require, module, exports) { delete previewTab.document.meta.existing; } else { - previewTab.unload(); + var tab = previewTab; + previewTab = null; + tab.unload(); // TODO this focusses the last tab. If there is a speed concern, fix this. } previewTab = null; - focussedTab && focussedTab.activate(); + lastFocussedTab && lastFocussedTab.activate(); return false; } diff --git a/plugins/c9.ide.errorhandler/raygun.js b/plugins/c9.ide.errorhandler/raygun.js index bbd155d5..0e1ee90e 100644 --- a/plugins/c9.ide.errorhandler/raygun.js +++ b/plugins/c9.ide.errorhandler/raygun.js @@ -165,6 +165,7 @@ TraceKit.report = (function reportModuleWrapper() { else { if (lastExceptionStack) { + errorObj = lastException; TraceKit.computeStackTrace.augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message); stack = lastExceptionStack; lastExceptionStack = null; @@ -187,7 +188,7 @@ TraceKit.report = (function reportModuleWrapper() { } } - notifyHandlers(stack, 'from window.onerror'); + notifyHandlers(stack, 'from window.onerror', {errorObj: errorObj}); if (_oldOnerrorHandler) { return _oldOnerrorHandler.apply(this, arguments); @@ -201,7 +202,7 @@ TraceKit.report = (function reportModuleWrapper() { * @param {Error} ex */ function report(ex) { - var args = _slice.call(arguments, 1); + var args = _slice.call(arguments, 0); if (lastExceptionStack) { if (lastException === ex) { return; // already caught by an inner catch block, ignore @@ -1423,6 +1424,7 @@ window.TraceKit = TraceKit; 'DealPly is not defined': { factor: 10e5 }, "Cannot read property 'style' of null": { factor: 10e3 }, "Project with id '' does not exist": { factor: 10e2 }, + "Workspace not found": { factor: 10e2 }, }; var groupedErrors = [{ regex: /^((?:Project|User) with id ')(\d+)(' does not exist)/i, @@ -1462,13 +1464,13 @@ window.TraceKit = TraceKit; }); } - if (options === undefined) { + if (!options) { options = {}; } if (isEmpty(options.customData)) { if (typeof _customData === 'function') { - options.customData = _customData(); + options.customData = _customData(options.errorObj); } else { options.customData = _customData; } diff --git a/plugins/c9.ide.keys/editor.js b/plugins/c9.ide.keys/editor.js index 9f60eb5c..654e7ddd 100644 --- a/plugins/c9.ide.keys/editor.js +++ b/plugins/c9.ide.keys/editor.js @@ -167,7 +167,6 @@ define(function(require, exports, module) { title: "Introduction", position: 1, node: intro = new ui.bar({ - height: 149, "class" : "intro", style: "padding:12px;position:relative;" }) diff --git a/plugins/c9.ide.layout.classic/icons/bug_flat_dark.png b/plugins/c9.ide.layout.classic/icons/bug_flat_dark.png new file mode 100644 index 00000000..ce299c08 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/bug_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/bug_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/bug_flat_dark@2x.png new file mode 100644 index 00000000..8ff86494 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/bug_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark.png b/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark.png new file mode 100644 index 00000000..8b20ca8b Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark@2x.png new file mode 100644 index 00000000..14c57edc Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/exception_break_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/folder_flat_dark.png b/plugins/c9.ide.layout.classic/icons/folder_flat_dark.png new file mode 100644 index 00000000..b13293e8 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/folder_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/folder_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/folder_flat_dark@2x.png new file mode 100644 index 00000000..6ee20c8a Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/folder_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/pause_flat_dark.png b/plugins/c9.ide.layout.classic/icons/pause_flat_dark.png new file mode 100644 index 00000000..db624648 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/pause_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/pause_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/pause_flat_dark@2x.png new file mode 100644 index 00000000..cafea627 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/pause_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/play_flat_dark.png b/plugins/c9.ide.layout.classic/icons/play_flat_dark.png new file mode 100644 index 00000000..7fe03720 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/play_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/play_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/play_flat_dark@2x.png new file mode 100644 index 00000000..733900c5 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/play_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark.png b/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark.png new file mode 100644 index 00000000..e3b3b84e Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark@2x.png new file mode 100644 index 00000000..0ce29a2c Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/pref-ico_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark.png b/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark.png new file mode 100644 index 00000000..751ec8dc Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark@2x.png new file mode 100644 index 00000000..fc493e14 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/remove_breakpoints_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/run_flat_dark.png b/plugins/c9.ide.layout.classic/icons/run_flat_dark.png new file mode 100644 index 00000000..321bf6f0 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/run_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/run_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/run_flat_dark@2x.png new file mode 100644 index 00000000..c8253fe7 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/run_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/step_flat_dark.png b/plugins/c9.ide.layout.classic/icons/step_flat_dark.png new file mode 100644 index 00000000..5c3c1b3c Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/step_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/step_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/step_flat_dark@2x.png new file mode 100644 index 00000000..d45986c1 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/step_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/stepback_flat_dark.png b/plugins/c9.ide.layout.classic/icons/stepback_flat_dark.png new file mode 100644 index 00000000..118f91eb Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/stepback_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/stepback_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/stepback_flat_dark@2x.png new file mode 100644 index 00000000..273f2be2 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/stepback_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark.png b/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark.png new file mode 100644 index 00000000..76805407 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark@2x.png new file mode 100644 index 00000000..cce6ffc7 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/stepinto_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark.png b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark.png new file mode 100644 index 00000000..8877eb1b Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark@2x.png new file mode 100644 index 00000000..acdf57aa Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints1_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark.png b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark.png new file mode 100644 index 00000000..a27fb9bc Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark@2x.png b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark@2x.png new file mode 100644 index 00000000..9351e200 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/toggle_breakpoints2_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark.png b/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark.png new file mode 100644 index 00000000..ed657d13 Binary files /dev/null and b/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark@2x.png b/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark@2x.png new file mode 100644 index 00000000..76786915 Binary files /dev/null and b/plugins/c9.ide.layout.classic/images/c9-no-repeat_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark.png b/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark.png new file mode 100644 index 00000000..1da0784e Binary files /dev/null and b/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark.png differ diff --git a/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark@2x.png b/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark@2x.png new file mode 100644 index 00000000..37d5a218 Binary files /dev/null and b/plugins/c9.ide.layout.classic/images/c9-repeat-x_flat_dark@2x.png differ diff --git a/plugins/c9.ide.layout.classic/layout.js b/plugins/c9.ide.layout.classic/layout.js index 1067750c..35893c41 100644 --- a/plugins/c9.ide.layout.classic/layout.js +++ b/plugins/c9.ide.layout.classic/layout.js @@ -25,6 +25,7 @@ define(function(require, exports, module) { require("text!./themes/default-light-gray.less"); require("text!./themes/default-light.less"); require("text!./themes/default-flat-light.less"); + require("text!./themes/default-flat-dark.less"); /***** Initialization *****/ @@ -144,7 +145,8 @@ define(function(require, exports, module) { "dark-gray": 1, "light-gray": 1, "light": 1, - "flat-light": 1 + "flat-light": 1, + "flat-dark": 1 }; function updateTheme(noquestion, type) { @@ -221,7 +223,7 @@ define(function(require, exports, module) { "Click Yes to change the theme or No to keep the current theme.", function(){ // yes ignoreTheme = true; - var theme = {"dark": "dark", "light": "flat-light"}[kind]; + var theme = {"dark": "flat-dark", "light": "flat-light"}[kind]; settings.set("user/general/@skin", theme); updateTheme(false, type); ignoreTheme = false; diff --git a/plugins/c9.ide.layout.classic/less/bk-window.less b/plugins/c9.ide.layout.classic/less/bk-window.less index 4cad75a1..22ccbb71 100644 --- a/plugins/c9.ide.layout.classic/less/bk-window.less +++ b/plugins/c9.ide.layout.classic/less/bk-window.less @@ -6,6 +6,7 @@ border-radius: @dialog-border-radius; box-shadow: @dialog-shadow; + color: @dialog-content-color; background: @dialog-background-color; /* Especially for retina */ } diff --git a/plugins/c9.ide.layout.classic/less/codebox.less b/plugins/c9.ide.layout.classic/less/codebox.less index 1d80c0b4..129aeee6 100644 --- a/plugins/c9.ide.layout.classic/less/codebox.less +++ b/plugins/c9.ide.layout.classic/less/codebox.less @@ -55,7 +55,7 @@ height : 17px; line-height : 15px; font-size : 12px; - color : #303030; + color : @tbsimple-color; font-family : menlo,courier new,fixed,swiss,sans-serif; outline : none; background-color : transparent; diff --git a/plugins/c9.ide.layout.classic/less/editor_tab.less b/plugins/c9.ide.layout.classic/less/editor_tab.less index 8b8364c0..c9a2aa39 100644 --- a/plugins/c9.ide.layout.classic/less/editor_tab.less +++ b/plugins/c9.ide.layout.classic/less/editor_tab.less @@ -94,7 +94,7 @@ height : @pane-button-height; box-sizing: border-box; position : relative; - padding : 4px 0 0 0; + padding : 5px 0 0 0; overflow: visible; color : #000; diff --git a/plugins/c9.ide.layout.classic/less/panel-bar.less b/plugins/c9.ide.layout.classic/less/panel-bar.less index 747be6ed..5a04ed30 100644 --- a/plugins/c9.ide.layout.classic/less/panel-bar.less +++ b/plugins/c9.ide.layout.classic/less/panel-bar.less @@ -18,6 +18,6 @@ width: 1px; bottom: 0; top: 0; - background: rgba(255,255,255,0.06); + background: @border-highlight; z-index: 1000; } \ No newline at end of file diff --git a/plugins/c9.ide.layout.classic/less/textbox.less b/plugins/c9.ide.layout.classic/less/textbox.less index 044d4e6a..30067819 100644 --- a/plugins/c9.ide.layout.classic/less/textbox.less +++ b/plugins/c9.ide.layout.classic/less/textbox.less @@ -27,7 +27,7 @@ border : 0; height : 17px; font-size : 12px; - color : #333333; + color : @tbsimple-color; font-family : Arial; outline : none; background-color : transparent; diff --git a/plugins/c9.ide.layout.classic/preload.js b/plugins/c9.ide.layout.classic/preload.js index eec63495..1e132db0 100644 --- a/plugins/c9.ide.layout.classic/preload.js +++ b/plugins/c9.ide.layout.classic/preload.js @@ -23,14 +23,15 @@ define(function(require, exports, module) { "dark-gray" : "", "light-gray" : "", "light" : "", - "flat-light" : "" + "flat-light" : "", + "flat-dark" : "" }; /***** Methods *****/ function preload(callback) { settings.setDefaults("user/general", [ - ["skin", options.defaultTheme || "dark"] // "flat-light" + ["skin", options.defaultTheme || "flat-dark"] ]); if (!packed || options.loadTheme) return callback(); try { diff --git a/plugins/c9.ide.layout.classic/themes/default-dark-gray.less b/plugins/c9.ide.layout.classic/themes/default-dark-gray.less index c889ee4b..87f8e66d 100644 --- a/plugins/c9.ide.layout.classic/themes/default-dark-gray.less +++ b/plugins/c9.ide.layout.classic/themes/default-dark-gray.less @@ -594,6 +594,7 @@ @dialog-header-font-size: 14px; @dialog-header-font-weight: bold; +@dialog-content-color: #222; @dialog-content-background: lighten(#dfdfe0, @lighten-chrome) url("@{image-path}/modalbg.png") repeat 0 0; @dialog-content-dark-background-color: lighten(#303130, @lighten-chrome); @dialog-content-dark-gradient: linear-gradient(top,rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.11) 8px, rgba(0, 0, 0, 0.01) 13px, transparent 15px); @@ -1127,7 +1128,7 @@ @preference-menu-button-icon-top: 0; @preference-menu-button-icon-height: auto; -@preferences-nav-border-color: lighten(#232323, @lighten-chrome); +@preferences-nav-border: 1px solid lighten(#232323, @lighten-chrome); @preferences-nav-background: lighten(#303030, @lighten-chrome) url("@{image-path}/c9-noise.png"); @preferences-nav-shadow-color: lighten(rgba(255, 255, 255, 0.03), @lighten-chrome); @preferences-nav-main-color: lighten(#AAAAAA, @lighten-chrome); diff --git a/plugins/c9.ide.layout.classic/themes/default-dark.less b/plugins/c9.ide.layout.classic/themes/default-dark.less index c2476d25..516d5360 100644 --- a/plugins/c9.ide.layout.classic/themes/default-dark.less +++ b/plugins/c9.ide.layout.classic/themes/default-dark.less @@ -594,6 +594,7 @@ @dialog-header-font-size: 14px; @dialog-header-font-weight: bold; +@dialog-content-color: #222; @dialog-content-background: lighten(#dfdfe0, @lighten-chrome) url("@{image-path}/modalbg.png") repeat 0 0; @dialog-content-dark-background-color: lighten(#303130, @lighten-chrome); @dialog-content-dark-gradient: linear-gradient(top,rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.11) 8px, rgba(0, 0, 0, 0.01) 13px, transparent 15px); @@ -1127,7 +1128,7 @@ @preference-menu-button-icon-top: 0; @preference-menu-button-icon-height: auto; -@preferences-nav-border-color: lighten(#232323, @lighten-chrome); +@preferences-nav-border: 1px solid lighten(#232323, @lighten-chrome); @preferences-nav-background: lighten(#303030, @lighten-chrome) url("@{image-path}/c9-noise.png"); @preferences-nav-shadow-color: lighten(rgba(255, 255, 255, 0.03), @lighten-chrome); @preferences-nav-main-color: lighten(#AAAAAA, @lighten-chrome); diff --git a/plugins/c9.ide.layout.classic/themes/default-flat-dark.less b/plugins/c9.ide.layout.classic/themes/default-flat-dark.less new file mode 100644 index 00000000..72acde7b --- /dev/null +++ b/plugins/c9.ide.layout.classic/themes/default-flat-dark.less @@ -0,0 +1,1724 @@ +@darken-font: 0%; +@darken-chrome: 0%; +@darken-borders-dark: 0%; +@darken-borders-light: 1; + +@theme-image-path: "/static/plugins/c9.ide.theme.flat/images"; +@theme-icon-path: "/static/plugins/c9.ide.theme.flat/icons"; + +// Generic Images +@c9-no-repeat: "c9-no-repeat_flat_dark.png"; +@c9-no-repeat-2x: "c9-no-repeat_flat_dark@2x.png"; +@c9-no-repeat-width: 480px; +@c9-no-repeat-height: 580px; +@c9-repeat-x: "c9-repeat-x_flat_dark.png"; +@c9-repeat-x-2x: "c9-repeat-x_flat_dark@2x.png"; +@c9-repeat-x-width: 32px; +@c9-repeat-x-height: 500px; + +// Generic Colors +@background: @chrome-background; + +@border-highlight: transparent; +@border-highlight-medium: transparent; +@border-highlight-strong: transparent; +@border-highlight-dark: darken(#1c1c1c, @darken-borders-dark); +@border-highlight-dark-medium: darken(#1c1c1c, @darken-borders-dark); + +@color: darken(#e0e3e8, @darken-font); +@chrome-background: darken(#252525, @darken-chrome); //darken(#252525, @darken-chrome); + +@selected-color: darken(#f1f1f1, @darken-font); +@selected-background: darken(#252525, @darken-chrome); + +@selected-hover-color: darken(#f1f1f1, @darken-font); +@selected-hover-background: darken(#2B2B2B, @darken-chrome); + +@selected-focus-color: darken(#f1f1f1, @darken-font); +@selected-focus-background: darken(#748512, @darken-chrome); + +@highlight-color: darken(#bacf41, @darken-font); +@highlight-selected-color: darken(#f1f1f1, @darken-font); + +@empty-message-color: darken(#333, @darken-font); +@inactive-font-color: #BBBBBB; + +@general-font-family: Helvetica, Arial, sans-serif; +@general-font-size: 13px; +@general-smoothing: true; + +// Ace +@ace-cloud9-day-gutter: darken(#ECECEC, @darken-chrome); +@ace-cloud9-day-gutter-color: darken(#333, @darken-chrome); +@ace-cloud9-day-background: darken(#FBFBFB, @darken-chrome); +@ace-cloud9-night-gutter: darken(#303130, @darken-chrome); +@ace-cloud9-night-background: darken(#181818, @darken-chrome); +@ace-cloud9-night-active-line: darken(#292929, @darken-chrome); +@ace-gutter-font-smoothing: true; +@ace-gutter-shadow: none; + +@ace-status-color: darken(#5A5A5A, @darken-chrome); +@ace-status-font-weight: bold; +@ace-status-font-size: 12px; +@ace-status-padding: 2px 0 0 1px; +@ace-status-icon-margin: -3px 0 0 -4px; +@ace-status-icon-image: "@{icon-path}/pref-ico_flat_dark.png"; +@ace-status-icon-image-width: 44px; +@ace-status-icon-image-height: 69px; + +@ace-status-label-hover-decoration: none; +@ace-status-label-hover-color: darken(#e0e3e8, @darken-chrome); +@ace-status-label-active-color: darken(#63acff, @darken-chrome); + +@ace-info: "@{theme-image-path}/ace_info_flat_light.png"; +@ace-error: "@{image-path}/ace_error_flat_light.png"; +@ace-warning: "@{image-path}/ace_warning_flat_light.png"; +@ace-breakpoint: "@{theme-icon-path}/debugger/brkp_obj_flat_light.png"; +@ace-breakpoint-disabled: "@{theme-icon-path}/debugger/brkp_obj_disabled_flat_light.png"; +@ace-breakpoint-condition: "@{theme-icon-path}/debugger/brkp_obj_condition_flat_light.png"; +@ace-breakpoint-invalid: "@{theme-icon-path}/debugger/brkp_obj_warn_flat_light.png"; +@ace-breakpoint-disabled-condition: "@{theme-icon-path}/debugger/brkp_obj_condition_disabled_flat_light.png"; +@ace-breakpoint-step: "@{theme-icon-path}/debugger/brkp_obj_current_line_flat_light.png"; +@ace-breakpoint-condition-step: "@{theme-icon-path}/debugger/brkp_obj_current_line_condition_flat_light.png"; +@ace-step: "@{theme-icon-path}/debugger/current_line_flat_light.png"; +@ace-stack: "@{theme-icon-path}/debugger/stack_co_flat_light.png"; + +@ace-dark-error: "@{image-path}/ace_error_flat_light.png"; +@ace-dark-warning: "@{image-path}/ace_warning_flat_light.png"; +@ace-dark-breakpoint: "@{theme-icon-path}/debugger/brkp_obj_dark_flat_light.png"; +@ace-dark-breakpoint-disabled: "@{theme-icon-path}/debugger/brkp_obj_disabled_dark_flat_light.png"; +@ace-dark-breakpoint-condition: "@{theme-icon-path}/debugger/brkp_obj_condition_flat_light.png"; +@ace-dark-breakpoint-invalid: "@{theme-icon-path}/debugger/brkp_obj_warn_dark_flat_light.png"; +@ace-dark-breakpoint-disabled-condition: "@{theme-icon-path}/debugger/brkp_obj_condition_disabled_flat_light.png"; +@ace-dark-breakpoint-step: "@{theme-icon-path}/debugger/brkp_obj_current_line_dark_flat_light.png"; +@ace-dark-breakpoint-disabled-step: "@{theme-icon-path}/debugger/brkp_obj_disabled_current_line_dark_flat_light.png"; +@ace-dark-breakpoint-condition-step: "@{theme-icon-path}/debugger/brkp_obj_current_line_condition_flat_light.png"; +@ace-dark-step: "@{theme-icon-path}/debugger/current_line_dark_flat_light.png"; +@ace-dark-stack: "@{theme-icon-path}/debugger/stack_co_flat_light.png"; + +// Panel Colors +@panel-background: darken(#303130, @darken-chrome); +@panel-bar-border: @border-highlight-dark; +@panel-bar-background: @chrome-background; +@panel-button-color: darken(#e0e3e8, @darken-font); +@panel-button-text-shadow: none; +@panel-button-hover: darken(#303130, @darken-chrome); +@panel-button-active-background: @panel-background; +@panel-button-active-color: darken(#fff, @darken-font); +@panel-button-flat: true; + +@panel-border-color: @border-highlight-dark-medium; +@panel-shadow-color: transparent; + +@panel-padding: 10px; + +// Collab +@collab-bubble-background: darken(#98c878, @darken-chrome); +@collab-bubble-color: darken(#fff, @darken-chrome); +@collab-bubble-font-weight: normal; +@collab-bubble-box-shadow: none; + +@collab-notification-width: 40px; +@collab-notification-height: 40px; +@collab-notification-border: 0; +@collab-notification-border-radius: 40px; +@collab-notification-box-shadow: 0; +@collab-notification-item-box-shadow: none; +@collab-notification-item-border-bottom: 1px solid darken(#1d1d1d, @darken-font); +@collab-notification-item-padding: 0 10px 0 50px; +@collab-notification-item-color: darken(#e0e3e8, @darken-chrome); +@collab-notification-item-font-size: 11px; +@collab-notification-button-padding: 7px 12px 6px; +@collab-notification-button-line-height: 5px; +@collab-notification-button-top: 1px; + +@collab-tooltip-color: #e0e3e8; +@collab-tooltip-background: #FFF; +@collab-tooltip-border-radius: 0; +@collab-tooltip-border: 0; +@collab-tooltip-border-box-shadow: none; +@collab-tooltip-border-padding: 0 2px 2px; +@collab-tooltip-border-margin: 18px 0 0 0; +@collab-tooltip-height: auto; +@collab-tooltip-line-height: inherit; +@collab-tooltip-font-size: 10px; +@collab-tooltip-font-weight: normal; +@collab-tooltip-arrow: false; + +@collab-access-control-background: darken(#63acff, @darken-font); +@collab-access-control-box-shadow: none; +@collab-tree-access-control-background: @collab-access-control-background; +@collab-tree-access-control-box-shadow: none; +@collab-access-control-active-color: darken(#252525, @darken-font); +@collab-tree-focus-access-control-active-gradient: @collab-access-control-inactive-gradient; +@collab-access-control-inactive-color: darken(rgba(0, 0, 0, 0.15), @darken-font); +@collab-access-control-inactive-box-shadow: 1px 1px 0 0 darken(#1c1c1c, @darken-font) inset, 0 -1px 0 0 darken(#1c1c1c, @darken-font) inset; +@collab-access-control-inactive-box-shadow-right: 0 1px 0 0 darken(#1c1c1c, @darken-font) inset, -1px -1px 0 0 darken(#1c1c1c, @darken-font) inset; +@collab-access-control-inactive-gradient: linear-gradient(top, #252525 0%, #252525 100%); +@collab-tree-focus-access-control-color: darken(#252525, @darken-font); +@collab-access-control-flat: true; +@collab-tree-access-control-disabled-background: darken(#63acff, @darken-chrome); +@collab-access-control-disabled-color: darken(#252525, @darken-chrome); + +@collab-tree-font-family: @general-font-family; +@collab-tree-font-size: 11px; +@collab-tree-color-border-radius: 0; +@collab-tree-state-image: "collab-led-states_flat_light.png"; +@collab-tree-state-image-width: 12px; +@collab-tree-state-image-height: 36px; +@collab-tree-item-caption-top: 4px; +@collab-tree-kickout-image: "@{theme-image-path}/trash-icon_flat_dark.png"; +@collab-tree-kickout-image-width: 12px; +@collab-tree-kickout-image-height: 16px; + +@collab-chat-background: darken(#303130, @darken-font); +@collab-chat-font-size: 12px; +@collab-chat-item-padding: 10px 10px 10px 12px; +@collab-chat-item-border-bottom: 1px solid darken(#1d1d1d, @darken-font); +@collab-chat-item-border-top: 0; +@collab-chat-author-color: darken(#e0e3e8, @darken-font); +@collab-chat-color-size: 3px; +@collab-chat-message-color: darken(#e0e3e8, @darken-font); +@collab-chat-time-color: darken(#e0e3e8, @darken-font); +@collab-chat-time-font-weight: bold; +@collab-chat-time-text-shadow: none; +@collab-chat-time-right: 10px; +@collab-chat-time-top: 10px; +@collab-chat-input-color: darken(#e0e3e8, @darken-font); +@collab-chat-input-background: darken(#303130, @darken-font); +@collab-chat-input-border-color: darken(#1c1c1c, @darken-font); +@collab-chat-input-box-shadow: none; +@collab-chat-input-font-smoothing: false; +@collab-chat-input-selection-color: darken(#b5d5ff, @darken-font); +@collab-chat-input-cursor-color: darken(#e0e3e8, @darken-font); + +// Bubble +@bubble-border: 1px solid #DEDEDE; +@bubble-border-radius: 8px; +@bubble-gradient: linear-gradient(center bottom, #FFF 0%, #FFF 100%); +@bubble-padding: 10px 15px; +@bubble-color: #333; +@bubble-margin-top: 0; +@bubble-box-shadow: 0px 0px 10px rgba(0,0,0,0.09); +@bubble-font-weight: normal; +@bubble-with-noise: false; +@bubble-close-image: "/static/plugins/c9.ide.layout.classic/images/close_tab_btn_flat_light.png"; +@bubble-close-image-width: 42px; +@bubble-close-image-height: 28px; +@bubble-close-hover: -14px 0; +@bubble-close-active: -28px 0; + +// Time Slider +@time-slider-background: darken(#FFF, @darken-chrome); +@time-slider-box-shadow: none; +@time-slider-border-bottom: 0; +@time-slider-font-family: @general-font-family; +@time-slider-font-size: 12px; +@time-slider-color: darken(#AAA, @darken-chrome); +@time-slider-timer-color: darken(#e0e3e8, @darken-chrome); +@time-slider-saved-color: darken(#e0e3e8, @darken-chrome); +@time-slider-info-top: 14px; +@time-slider-info-left: 70px; +@time-slider-button-cursor: pointer; + +@time-slider-play-left: 20px; +@time-slider-play-top: 16px; +@time-slider-play-width: 33px; +@time-slider-play-height: 33px; +@time-slider-play-border-div: false; +@time-slider-play-border-radius: 40px; +@time-slider-play-border: 0; +@time-slider-play-gradient: linear-gradient(top, #757574, #757574); +@time-slider-play-box-shadow: none; +@time-slider-play-icon-image: "@{image-path}/play_flat_dark.png"; +@time-slider-play-icon-pause-image: "@{image-path}/pause_flat_dark.png"; +@time-slider-play-icon-image-width: 5px; +@time-slider-play-icon-image-height: 8px; +@time-slider-play-icon-background-position: 50% 50%; +@time-slider-play-icon-box-shadow: none; + +@time-slider-play-hover-background: darken(#8B8B8B, @darken-chrome); +@time-slider-play-active-box-shadow: none; +@time-slider-play-active-icon-box-shadow: none; +@time-slider-play-active-icon-background: darken(#767676, @darken-chrome); + +@time-slider-bar-margin-left: 70px; +@time-slider-bar-margin-right: 145px; +@time-slider-bar-background: darken(#1d1d1d, @darken-chrome); +@time-slider-bar-border-radius: 4px; +@time-slider-bar-box-shadow: none; +@time-slider-bar-progress-gradient: linear-gradient(bottom, #98c878 0%, #98c878 100%); +@time-slider-bar-progress-border-top: 0; +@time-slider-bar-progress-box-shadow: none; +@time-slider-bar-progress-height: 6px; +@time-slider-bar-star-needle: false; +@time-slider-bar-star-width: 6px; +@time-slider-bar-star-height: 6px; +@time-slider-bar-star-top: 16px; +@time-slider-bar-star-background: darken(#eeb792, @darken-chrome); +@time-slider-bar-star-last-background: darken(#98c878, @darken-chrome); +@time-slider-bar-star-box-shadow: none; + +@time-slider-handle-basic: true; +@time-slider-handle-background: white; +@time-slider-handle-width: 12px; +@time-slider-handle-height: 12px; +@time-slider-handle-border-radius: 14px; +@time-slider-handle-box-shadow: none; +@time-slider-handle-border: 1px solid darken(#1c1c1c, @darken-chrome); + +@time-slider-stepper-basic: true; +@time-slider-stepper-border: 0; +@time-slider-stepper-top: 39px; +@time-slider-stepper-width: 16px; +@time-slider-stepper-height: 16px; +@time-slider-stepper-image: "@{image-path}/stepper_buttons_flat_light.png"; +@time-slider-stepper-image-width: 21px; +@time-slider-stepper-image-height: 8px; + +@time-slider-stepper-left-box-shadow: none; +@time-slider-stepper-left-border-radius: 3px; +@time-slider-stepper-left-border-right: 0; +@time-slider-stepper-left-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@time-slider-stepper-left-background-position: 0px 0px; +@time-slider-stepper-left-right: 110px; +@time-slider-stepper-left-icon-margin: 4px 0 0 4px; +@time-slider-stepper-left-hover-icon-margin: 4px 0 0 4px; + +@time-slider-stepper-left-disabled-box-shadow: none; +@time-slider-stepper-left-disabled-gradient: linear-gradient(left, transparent 0%, transparent 100%); +@time-slider-stepper-left-hover-gradient: linear-gradient(top, #e9e9e9 0%, #e9e9e9 100%); +@time-slider-stepper-left-active-box-shadow: none; +@time-slider-stepper-left-active-gradient: @time-slider-stepper-left-hover-gradient; + +@time-slider-stepper-right-box-shadow: none; +@time-slider-stepper-right-border-radius: 3px; +@time-slider-stepper-right-border-left: 0; +@time-slider-stepper-right-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@time-slider-stepper-right-background-position: -12px 0px; +@time-slider-stepper-right-right: 95px; +@time-slider-stepper-right-icon-margin: 4px 0 0 4px; +@time-slider-stepper-right-hover-icon-margin: 4px 0 0 4px; + +@time-slider-stepper-right-disabled-box-shadow: none; +@time-slider-stepper-right-disabled-gradient: linear-gradient(left, transparent 0%, transparent 100%); +@time-slider-stepper-right-hover-gradient: linear-gradient(top, #e9e9e9 0%, #e9e9e9 100%); +@time-slider-stepper-right-active-box-shadow: none; +@time-slider-stepper-right-active-gradient: @time-slider-stepper-left-hover-gradient; + +@time-slider-revert-font-family: @general-font-family; +@time-slider-revert-font-size: 10px; +@time-slider-revert-font-weight: bold; +@time-slider-revert-extra-border: 0; +@time-slider-revert-border: 0; +@time-slider-revert-box-shadow: none; +@time-slider-revert-border-radius: 3px; +@time-slider-revert-gradient: linear-gradient(top, #98c878 0%, #98c878 100%); +@time-slider-revert-color: darken(#252525, @darken-chrome); +@time-slider-revert-text-shadow: none; +@time-slider-revert-top: 38px; +@time-slider-revert-right: 23px; +@time-slider-revert-padding: 2px 1px 0 0; + +@time-slider-revert-disabled-box-shadow: none; +@time-slider-revert-disabled-gradient: linear-gradient(right, #1d1d1d 0%, #1d1d1d 100%); +@time-slider-revert-disabled-color: darken(#CBCBCB, @darken-chrome); +@time-slider-revert-hover-gradient: linear-gradient(top, #A5D288 0%, #A5D288 100%); +@time-slider-revert-active-box-shadow: none; +@time-slider-revert-active-gradient: linear-gradient(top, #98c878 0%, #98c878 100%); +@time-slider-revert-active-padding: @time-slider-revert-padding; + +@time-slider-close-image: "@{image-path}/close_tab_btn_flat_light.png"; +@time-slider-close-image-width: 42px; +@time-slider-close-image-height: 28px; +@time-slider-close-idle-position: 0 0; +@time-slider-close-hover-position: -14px 0; +@time-slider-close-active-position: -28px 0; + +// Pane +@pane-background : darken(#303130, @darken-chrome); +@pane-button-container-height: 32px; +@pane-button-container-inner-height: 27px; +@pane-button-container-padding: 5px 6px 0 23px; + +@pane-button-height: 26px; +@pane-button-font-family: @general-font-family; +@pane-button-font-size: 13px; +@pane-button-background: darken(#3f3f3f, @darken-chrome); //darken(#D6D6D6, @darken-chrome); //darken(#D8D8D8, @darken-chrome); +@pane-button-color: darken(#e0e3e8, @darken-font); +@pane-button-active-color: darken(#e0e3e8, @darken-font); +@pane-button-textshadow: none; +@pane-button-hover-background: darken(#393939, @darken-chrome); +@pane-button-hover-color: darken(rgb(173, 173, 173), @darken-font); +@pane-button-states-image: "tabsave-flat.png"; +@pane-button-states-image-size: 9px; +@pane-button-states-right: -5px; +@pane-button-states-top: 8px; +@pane-button-use-bold-focus: true; +@pane-button-running-image: "@{image-path}/running_flat_light.png"; +@pane-button-running-image-width: 225px; +@pane-button-running-image-height: 15px; +@pane-button-running-width: 15px; +@pane-button-running-height: 15px; +@pane-button-running-right: -10px; +@pane-button-running-top: 6px; +@pane-button-running-animation: rotation 2s infinite steps(16); +@pane-button-save-image: "@{image-path}/tab-save-spinner-active_flat_light.png"; +@pane-button-save-image-width: 336px; +@pane-button-save-image-height: 14px; +@pane-button-save-width: 14px; +@pane-button-save-height: 14px; +@pane-button-save-right: -9px; +@pane-button-save-top: 7px; +@pane-button-save-animation: loading-24-spinner 1.2s steps(24) infinite; +@pane-button-close-image: "@{image-path}/close_tab_btn_flat_light.png"; +@pane-button-close-image-width: 42px; +@pane-button-close-image-height: 28px; + +@pane-buttons-border-bottom-color: darken(@border-highlight-dark, @darken-chrome); +@pane-buttons-border-bottom-highlight: transparent; + +@pane-button-close-background: 0; +@pane-button-close-right: -8px; +@pane-button-close-top: 7px; + +@pane-button-max-width: 97px; +@pane-button-left-width: 36px; +@pane-button-right-width: 38px; +@pane-button-margin-right: -25px; +@pane-button-left: 0 -125px; //-126px; +@pane-button-middle: 0 -1451px; +@pane-button-right: -42px -125px; //-126px; +@pane-button-left-active: 0 -125px; //-126px; +@pane-button-right-active: -42px -125px; //-126px; +@pane-button-mask-left: 0 -95px; //-95px; +@pane-button-mask-right: -42px -95px; //-95px; + +@pane-button-dark-mask-left: 0 -95px; //-95px; +@pane-button-dark-mask-right: -42px -95px; //-95px; + +@pane-button-dark-middle-active: @pane-button-middle; +@pane-button-dark-left-active: @pane-button-left-active; +@pane-button-dark-right-active: @pane-button-right-active; + +@pane-button-shadow-opacity : 0.7; +@pane-button-shadow-middle: 0 -1354px; +@pane-button-shadow-left: 0 -123px; //-124px; +@pane-button-shadow-right: -42px -123px; //-124px; + +@pane-button-active-shadow-opacity : 1; +@pane-button-active-shadow-middle: 0 50px; +@pane-button-active-shadow-left: 0 -122px; //-123px; +@pane-button-active-shadow-right: -42px -122px; //-123px; + +@pane-button-close-hack: -1px; + +@pane-button-title-height: 21px; +@pane-button-title-padding: 1px 0 0 0; +@pane-button-title-margin-right: 13px; +@pane-button-title-margin-left: 0px; + +@pane-button-destroyed-width: 25px; + +@pane-plus-margin: 1px 0 0 14px; +@pane-plus-width: 25px; +@pane-plus-height: 18px; +@pane-plus-icon: @c9-no-repeat; +@pane-plus-icon-image-width: @c9-no-repeat-width; +@pane-plus-icon-image-height: @c9-no-repeat-height; +@pane-plus-icon-width: 15px; +@pane-plus-icon-height: 15px; +@pane-plus-icon-idle-position: -337px -3px; +@pane-plus-icon-hover-position: -337px -23px; +@pane-plus-icon-active-position: -337px -23px; +@pane-plus-icon-margin: 0px 0 0 3px; +@pane-plus-box-border: 1px solid transparent; +@pane-plus-box-shadow: none; +@pane-plus-hover-border-color: transparent; +@pane-plus-hover-box-shadow: none; +@pane-plus-hover-margin: @pane-plus-icon-margin; +@pane-plus-hover-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@pane-plus-active-border-color: transparent; +@pane-plus-active-box-shadow: none; +@pane-plus-active-gradient: linear-gradient(top, transparent 0%, transparent 100%); + +@pane-menu-margin: 5px 0 0 -5px; +@pane-menu-left: 8px; +@pane-menu-top: 9px; +@pane-menu-icon: @c9-no-repeat; +@pane-menu-icon-image-width: @c9-no-repeat-width; +@pane-menu-icon-image-height: @c9-no-repeat-height; +@pane-menu-icon-width: 14px; +@pane-menu-icon-height: 11px; +@pane-menu-icon-position: -377px -5px; +@pane-menu-icon-hover-position: -377px -26px; +@pane-menu-icon-active-position: -377px -45px; +@pane-menu-border-color: transparent; +@pane-menu-box-shadow: none; +@pane-menu-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@pane-menu-hover-border-color: transparent; +@pane-menu-hover-box-shadow: none; +@pane-menu-hover-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@pane-menu-active-border-color: @menu-border-color; +@pane-menu-active-box-shadow: inset 0 1px darken(@menu-background, @darken-chrome); +@pane-menu-active-gradient: linear-gradient(top, @menu-background 0%, @menu-background 100%); +@pane-menu-upward-active-box-shadow: 0 1px darken(rgba(255, 255, 255, 0.6), @darken-chrome), inset 0 -1px darken(rgb(255, 255, 255), @darken-chrome); +@pane-menu-upward-active-gradient: linear-gradient(top, @menu-background 0%, @menu-background 100%); + +@pane-menu-splits-image: "@{image-path}/splits_flat_dark.png"; +@pane-menu-splits-image-width: 138px; +@pane-menu-splits-image-height: 53px; + +@pane-menu-button-margin: 2px 0 0 3px; +@pane-menu-button-width: 30px; +@pane-menu-button-height: 28px; +@pane-menu-button-top: -28px; +@pane-menu-button-up-bottom: -27px; +@pane-menu-button-up-height: 27px; +@pane-menu-button-background-position: -374px -39px; + +// C9btn +@c9btn-icon: "winc9_light.png"; + +// Top Toolbar +@menu-bar-logo: false; +@menu-bar-height: 39px; +@menu-bar-inner-border-top: transparent; +@menu-bar-border-top: 0px solid transparent; +@menu-bar-border-bottom: @border-highlight-dark; + +@menu-bar-child-padding-top: 0; +@menu-bar-child-padding-left: 50px; + +@menu-bar-divider-highlight-dark: transparent; +@menu-bar-divider-highlight: transparent; + +@menu-bar-padding-right: 11px; +@menu-bar-background: @chrome-background; +@menu-bar-minimized-width: 31px; +@menu-bar-minimized-background: @chrome-background; +@menu-bar-minimized-hover-background: darken(#E9E9E9, @darken-chrome); +@menu-bar-minimized-hover-start: darken(rgba(255,255,255,.08), @darken-chrome); +@menu-bar-minimized-hover-stop: darken(rgba(255,255,255,.05), @darken-chrome); + +.menu-button-minimized-before{ + top: 7px; + left: 10px; +} +.menu-button-minimized-after{ + top: -8px; + left: 10px; +} + +@menu-button-minimized-shadow: darken(#949494, @darken-chrome); +@menu-button-minimized-foreground: darken(#ACACAC, @darken-chrome); +@menu-button-minimized-highlight: darken(#ACACAC, @darken-chrome); +@menu-button-minimized-hover-shadow: darken(#777, @darken-chrome); +@menu-button-minimized-hover-foreground: darken(#999, @darken-chrome); +@menu-button-minimized-hover-highlight: darken(#999, @darken-chrome); + +@menu-button-padding: 13px 9px 0 9px; +@menu-button-color: darken(#e0e3e8, @darken-font); +@menu-button-font-family: @general-font-family; +@menu-button-font-size: @general-font-size; +@menu-button-text-shadow: 0px 0px 0px transparent; +@menu-button-hover-color: darken(#e0e3e8, @darken-chrome); +@menu-button-hover-background: darken(#303130, @darken-chrome); +@menu-button-hover-box-shadow: none; +@menu-button-active-background: darken(#494949, @darken-chrome); +@menu-button-active-font-weight: normal; +@menu-button-active-box-shadow: 0px 0px 10px 0px darken(rgba(0, 0, 0, 0.09), @darken-chrome); +@menu-button-active-border: 1px solid darken(#1c1c1c, @darken-chrome); +@menu-button-active-border-width: 0 1px; +@menu-button-active-padding: 13px 8px 0 8px; +@menu-button-disabled-color: darken(#BDBDBD, @darken-chrome); + +@menu-name-button-padding: 13px 9px 0 9px; +@menu-name-button-icon-padding-left: 40px; +@menu-name-button-icon-width: 25px; +@menu-name-button-icon-height: 25px; +@menu-name-button-icon-border-radius: 25px; +@menu-name-button-icon-left: 8px; +@menu-name-button-icon-top: 7px; +@menu-name-button-diff: 1px; + +@runbtn-stopped-image: "@{icon-path}/run_flat_dark.png"; +@runbtn-stopped-image-width: 19px; +@runbtn-stopped-image-height: 57px; +@runbtn-running-image: "@{icon-path}/stop_flat_light.png"; +@runbtn-running-image-width: 21px; +@runbtn-running-image-height: 57px; + +//Menu +@menu-arrow: "submenu_arrow.gif"; +@menu-radio: "radio.gif"; +@menu-check: "check.gif"; +@menu-font-family: @general-font-family; +@menu-font-size: @general-font-size - 1; +@menu-line-height: 14px; +@menu-ver-padding: 7px; +@menu-border-radius: 0 4px 4px 4px; +@menu-color: darken(#e0e3e8, @darken-font); +@menu-text-shadow: none; +@menu-background: @menu-button-active-background; +@menu-border-color: darken(#1d1d1d, @darken-chrome); +@menu-box-shadow: 0px 0px 10px 0px darken(rgba(0, 0, 0, 0.09), @darken-chrome); +@menu-item-padding: 4px 22px 4px 26px; +@menu-item-check-left: 6px; +@menu-item-arrow-right: 11px; +@menu-item-arrow-background: url("@{image-path}/@{menu-arrow}") no-repeat right -15px; +@menu-item-arrow-hover-background: url("@{image-path}/@{menu-arrow}") no-repeat right -15px; +@menu-item-radio-background: url("@{image-path}/@{menu-radio}") no-repeat 0 -16px; +@menu-item-radio-hover-background: url("@{image-path}/@{menu-radio}") no-repeat 0 -16px; +@menu-item-check-background: url("@{image-path}/@{menu-check}") no-repeat 0 -16px; +@menu-item-check-hover-background: url("@{image-path}/@{menu-check}") no-repeat 0 -16px; +@menu-item-hover-background: @selected-focus-background; +@menu-item-hover-color: @selected-focus-color; +@menu-item-disabled-color: darken(#9C9C9C, @darken-chrome); +@menu-divider-top-color: darken(#353535, @darken-chrome); +@menu-divider-bottom-color: transparent; +@menu-divider-margin: 6px 9px; + +// Dialog +@dialog-border-radius: 4px; +@dialog-shadow: none; +@dialog-background-color: darken(@element-border, @darken-chrome); + +@dialog-header-color: darken(#e0e3e8, @darken-chrome); +@dialog-header-height: 52px; +@dialog-header-gradient: linear-gradient(top, #303130 0%, #303130 100%); +@dialog-header-bottom-border: 0; +@dialog-header-box-shadow: none; +@dialog-header-padding: 20px 20px; +@dialog-header-font-family: @general-font-family; +@dialog-header-font-size: 16px; +@dialog-header-font-weight: normal; + +@dialog-content-color: #f1f1f1; +@dialog-content-background: darken(@element-border, @darken-chrome); +@dialog-content-dark-background-color: @dialog-content-background; +@dialog-content-dark-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@dialog-content-dark-border-top: 0; + +@dialog-footer-height: 40px; +@dialog-footer-background: darken(@element-border, @darken-chrome); +@dialog-footer-shadow: none; + +@dialog-button-background-position-hover: -14px 0; +@dialog-button-background-position-active: -28px 0; +@dialog-button-width: 14px; +@dialog-button-height: 14px; +@dialog-button-right: 19px; +@dialog-button-top: 19px; +@dialog-close-url: "close_tab_btn_flat_light.png"; +@dialog-close-width: 42px; +@dialog-close-height: 28px; + +@dialog-buttons-padding: 0 20px 20px; +@dialog-buttons-height: 30px; + +// File Save Dialog +@filesave-inner-padding-left: 20px; +@filesave-inner-padding-top: 10px; +@filesave-inner-padding-right: 20px; +@filesave-inner-padding-bottom: 20px; +@filesave-tree-border: 1px solid darken(#252625, @darken-chrome); + +// Error Dialog +@error-background: rgb(206, 56, 8); +@error-color: white; +@error-font-smoothing: true; +@error-padding: 5px 30px 5px 10px; +@error-box-shadow: none; +@error-close-image: "close_tab_btn_flat_light.png"; +@error-close-idle-position: 0 -14px; +@error-close-hover-position: -14px -14px; +@error-close-active-position: -28px -14px; + +// Disconnect Dialog +@disconnect-background: #D8B112; +@disconnect-color: @error-color; +@disconnect-padding: @error-padding; +@disconnect-box-shadow: @error-box-shadow; + +// Offline Dialog +@offline-gradient: linear-gradient(top, #3d9ac4 0%, #3d9ac4 100%); +@offline-border-bottom: 0; +@offline-height: 50px; +@offline-text-shadow: none; +@offline-padding: 16px 44px; +@offline-font-family: @general-font-family; +@offline-font-size: 16px; +@offline-font-weight: bold; +@offline-font-color: darken(#fff, @darken-chrome); +@offline-icon: none; + +@update-gradient: linear-gradient(top, #3dc469 0%, #3dc469 100%); +@readonly-gradient: linear-gradient(top, #3dc469 0%, #3dc469 100%); +@theme-switch-gradient: linear-gradient(top, #3dc469 0%, #3dc469 100%); + +// Frame +@frame-border-bottom: darken(#1c1c1c, @darken-chrome); +@frame-min-button: "@{theme-image-path}/tree_close_arrow_small_dark_flat_light.png"; +@frame-close-button: "close_tab_btn_flat_light.png"; + +@frame-title-height: 25px; +@frame-title-padding: 4px 3px; +@frame-title-font-size: 12px; +@frame-title-color: darken(#e0e3e8, @darken-chrome); +@frame-title-background: darken(#252525, @darken-chrome); +@frame-title-border-bottom: darken(#1c1c1c, @darken-chrome); +@frame-title-border-top: transparent; +@frame-title-gradient-start: @frame-title-background; +@frame-title-gradient-stop: @frame-title-background; +@frame-title-gradient-hover-start: @frame-title-background; +@frame-title-gradient-hover-stop: @frame-title-background; +@frame-title-gradient-active-start: @frame-title-background; +@frame-title-gradient-active-stop: @frame-title-background; + +// Datagrid +@datagrid-arrow: @tree-arrow; +@datagrid-arrow-focus-selected: @tree-arrow-focus-selected; +@datagrid-spinner: @tree-spinner; +@datagrid-selected-spinner: @tree-focus-spinner; +@datagrid-selected-focus-spinner: @tree-selected-focus-spinner; + +@datagrid-font-family: @general-font-family; +@datagrid-font-size: 12px; +@datagrid-color: darken(#f1f1f1, @darken-chrome); +@datagrid-background: @element-background; +@datagrid-heading-color: darken(#f1f1f1, @darken-chrome); +@datagrid-heading-background: @element-dark-highlight-color; +@datagrid-heading-padding: 6px 4px 5px 7px; +@datagrid-heading-border-color: transparent; +@datagrid-heading-hover-color: darken(#f1f1f1, @darken-chrome); +@datagrid-heading-hover-background: darken(#191919, @darken-chrome); + +@datagrid-selected-color: @selected-color; +@datagrid-selected-background: @selected-background; +@datagrid-selected-focus-color: @selected-focus-color; +@datagrid-selected-focus-background: @selected-focus-background; + +@datagrid-watch-new: darken(#AAA, @darken-chrome); +@datagrid-watch-new-focus: darken(#CDE9FF, @darken-chrome); +@datagrid-watch-new-font-smoothing: true; +@datagrid-watch-error: red; + +@datagrid-row-padding: 5px 0 5px 7px; +@datagrid-row-height: 24px; +@datagrid-row-toggler: -1px 4px -3px -2px; +@datagrid-row-toggler-loading: -4px; + +@datagrid-editor-box-shadow: none; + +// Breakpoints +@breakpoint-list-font-family: @general-font-family; +@breakpoint-list-font-size: 13px; +@breakpoint-list-padding: 8px 10px 10px 30px; +@breakpoint-list-checkbox-left: 7px; +@breakpoint-list-checkbox-top: 10px; +@breakpoint-list-checkbox-width: 23px; +@breakpoint-list-checkbox-height: 20px; +@breakpoint-list-checkbox-image: "checkbox_flat_light.png"; +@breakpoint-list-checkbox-image-width: 22px; +@breakpoint-list-checkbox-image-height: 162px; +@breakpoint-list-color: darken(#e0e3e8, @darken-chrome); +@breakpoint-list-code-color: darken(#1E97BD, @darken-chrome); +@breakpoint-list-code-hover-color: @breakpoint-list-code-color; +@breakpoint-list-item-height: 51px; +@breakpoint-list-item-border-bottom: darken(#1d1d1d, @darken-chrome); +@breakpoint-list-item-border-top: transparent; +@breakpoint-list-item-padding: 1px 10px 0 7px; +@breakpoint-list-item-hover-color: darken(#e0e3e8, @darken-chrome); +@breakpoint-list-item-hover-background: darken(#F6F6F6, @darken-chrome); +@breakpoint-list-item-hover-border-top: transparent; + +// Breakpoint Condition Dialog +@breakpoint-condition-arrow: false; +@breakpoint-condition-color: #FFF; +@breakpoint-condition-width: 280px; +@breakpoint-condition-margin-top: -5px; +@breakpoint-condition-border: 1px solid #73935D; +@breakpoint-condition-border-radius: 3px; +@breakpoint-condition-gradient: linear-gradient(to bottom, #98c878 0%, #98c878 100%); +@breakpoint-condition-font-family: @general-font-family; +@breakpoint-condition-font-size: @general-font-size; +@breakpoint-condition-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3); +@breakpoint-condition-input-box-shadow: none; + +// Live Inspect +@liveinspect-shadow: 0 2px 8px 0px darken(rgba(0, 0, 0, 0.25), @darken-chrome); +@liveinspect-background: darken(#FFFAC5, @darken-chrome); +@liveinspect-border-color: darken(rgba(0, 0, 0, 0.28), @darken-chrome); +@liveinspect-null: darken(rgb(200,200,200), @darken-chrome); + +@liveinspect-dark-shadow: 0 5px 13px 0px darken(rgba(0, 0, 0, 0.7), @darken-chrome); +@liveinspect-dark-background: darken(rgb(42, 43, 35), @darken-chrome); +@liveinspect-dark-border-color: darken(rgba(235, 255, 0, 0.1), @darken-chrome); +@liveinspect-dark-null: darken(rgb(200,200,200), @darken-chrome); + +// Immediate +@immediate-row-border-color: darken(#1c1c1c, @darken-chrome); +@immediate-return: darken(#e0e3e8, @darken-chrome); +@immediate-warn: darken(#C09305, @darken-chrome); +@immediate-error: red; +@immediate-property: darken(#C06EC4, @darken-chrome); +@immediate-null: darken(#868686, @darken-chrome); +@immediate-string: darken(rgb(194, 28, 28), @darken-chrome); +@immediate-number: darken(rgb(0, 163, 255), @darken-chrome); +@immediate-regexp: darken(rgb(194, 28, 28), @darken-chrome); +@immediate-stack: red; +@immediate-stack-link: darken(#585858, @darken-chrome); +@immediate-prompt: darken(#528DBB, @darken-chrome); +@immediate-tree-arrow: "@{theme-image-path}/tree_close_arrow_small_dark_flat_light.png"; +@immediate-font-smoothing: false; + +@immediate-dark-row-border-color: darken(rgb(29, 28, 28), @darken-chrome); +@immediate-dark-return: darken(#252525, @darken-chrome); +@immediate-dark-warn: yellow; +@immediate-dark-error: red; +@immediate-dark-property: darken(#BEDB18, @darken-chrome); +@immediate-dark-null: gray; +@immediate-dark-string: darken(rgb(255, 112, 0), @darken-chrome); +@immediate-dark-number: darken(rgb(0, 163, 255), @darken-chrome); +@immediate-dark-regexp: darken(rgb(255, 112, 0), @darken-chrome); +@immediate-dark-stack: red; +@immediate-dark-stack-link: gray; +@immediate-dark-prompt: darken(rgb(113, 155, 40), @darken-chrome); +@immediate-dark-tree-arrow: "@{theme-image-path}/tree_close_arrow_small_flat_light.png"; +@immediate-dark-font-smoothing: true; + +// Gutter Tooltip +@gutter-tooltip-shadow: @language-tooltip-box-shadow; +@gutter-tooltip-background: @language-tooltip-background; +@gutter-tooltip-border: @language-tooltip-border-color; +@gutter-tooltip-color: darken(#e0e3e8, @darken-chrome); +@gutter-tooltip-font-smoothing: false; + +@gutter-tooltip-dark-shadow: 1px 1px 6px darken(rgba(0, 0, 0, 0.8), @darken-chrome); +@gutter-tooltip-dark-background: darken(#FFF399, @darken-chrome); +@gutter-tooltip-dark-border: black; +@gutter-tooltip-dark-color: darken(#e0e3e8, @darken-chrome); +@gutter-tooltip-dark-font-smoothing: true; + +// Splitter +@splitter-vertical-line-color: darken(#1c1c1c, @darken-chrome); +@splitter-vertical-dark-line-color: darken(#1c1c1c, @darken-chrome); +@splitter-horizontal-line-color: darken(#1c1c1c, @darken-chrome); +@splitter-top-divider-color: darken(#1c1c1c, @darken-chrome); +@splitter-left-divider-color: darken(#1c1c1c, @darken-chrome); +@splitter-highlight: transparent; + +// Spinner +@spinner-color: darken(#e0e3e8, @darken-chrome); +@spinner-plus: "spinner_plus_dark.png"; +@spinner-min: "spinner_min_dark.png"; +@spinner-background: darken(@element-background, @darken-chrome); +@spinner-border-color: darken(@element-background, @darken-chrome); +@spinner-focus-border-color: darken(#1c1c1c, @darken-chrome); +@spinner-focus-box-shadow: none; +@spinner-button-hover-background: darken(rgba(0,0,0,0.1), @darken-chrome); + +// Textarea +@textarea-line-height: 18px; +@textarea-padding: 10px; +@textarea-border-radius: 4px; +@textarea-gradient: linear-gradient(center, @element-background 50%, @element-background 100%); +@textarea-box-shadow: none; +@textarea-font-family: @general-font-family; +@textarea-font-size: 12px; +@textarea-color: #e0e3e8; +@textarea-border: 1px solid #1c1c1c; +@textarea-disabled-border: 1px solid #1c1c1c; +@textarea-disabled-color: #CCC; + +// Button - Default +@button-border-radius: 3px; +@button-padding: 7px 20px 6px; +@button-text-shadow: none; +@button-font-family: @general-font-family; +@button-font-weight: bold; +@button-font-size: 13px; +@button-shadow: none; +@button-focussed-border: 1px solid rgba(0, 0, 0, 0.26); +@button-font-smoothing: true; +@button-cursor: pointer; + +// Grey +@button-grey-color: darken(#fff, @darken-chrome); +@button-grey-text-shadow: none; + +@button-grey-idle-gradient: linear-gradient(bottom, #767676 0%, #767676 100%); +@button-grey-over-gradient: linear-gradient(bottom, #8B8B8B 0%, #8B8B8B 100%); +@button-grey-focus-gradient: linear-gradient(bottom, #767676 0%, #767676 100%); +@button-grey-down-gradient: linear-gradient(bottom, #767676 0%, #767676 100%); +@button-grey-disabled-gradient: linear-gradient(bottom, rgb(218, 218, 218) 0%, rgb(218, 218, 218) 100%); + +@button-grey-idle-border-top: 0; +@button-grey-over-border-top: 0; +@button-grey-focus-border-top: 0; +@button-grey-down-border-top: 0; +@button-grey-disabled-border-top: 0; + +@button-grey-disabled-text-shadow: none; +@button-grey-disabled-color: darken(#747474, @darken-chrome); + +// Green +@button-green-color: @button-grey-color; +@button-green-text-shadow: none; + +@button-green-idle-gradient: linear-gradient(bottom, #6BB33A 0%, #6BB33A 100%); +@button-green-over-gradient: linear-gradient(bottom, #539427 0%, #539427 100%); +@button-green-focus-gradient: linear-gradient(bottom, #6BB33A 0%, #6BB33A 100%); +@button-green-down-gradient: linear-gradient(bottom, #6BB33A 0%, #6BB33A 100%); +@button-green-disabled-gradient: linear-gradient(bottom, rgb(218, 218, 218) 0%, rgb(218, 218, 218) 100%); + +@button-green-idle-border-top: 0; +@button-green-over-border-top: 0; +@button-green-focus-border-top: 0; +@button-green-down-border-top: 0; +@button-green-disabled-border-top: 0; + +@button-green-disabled-text-shadow: none; +@button-green-disabled-color: #747474; + +@button-green2-idle-gradient: linear-gradient(bottom, #088e04 0%, #30a12d 100%); +@button-green2-text-shadow: rgba(0,0,0,0.25) 0px 1px 0px; +@button-green2-down-gradient: linear-gradient(bottom, #30a12d 0%, #088e04 100%); +@button-green2-disabled-gradient: linear-gradient(bottom, #088e04 0%, #30a12d 100%); + +@button-green2-disabled-text-shadow: darken(#3da110, @darken-chrome) 0px 1px 0px; +@button-green2-disabled-color: darken(#037a01, @darken-chrome); + +// Red +@button-red-color: @button-grey-color; +@button-red-text-shadow: none; + +@button-red-idle-gradient: linear-gradient(bottom, #EA4646 0%, #EA4646 100%); +@button-red-over-gradient: linear-gradient(bottom, #CC3C3C 0%, #CC3C3C 100%); +@button-red-focus-gradient: linear-gradient(bottom, #EA4646 0%, #EA4646 100%); +@button-red-down-gradient: linear-gradient(bottom, #EA4646 0%, #EA4646 100%); +@button-red-disabled-gradient: linear-gradient(bottom, #EA4646 0%, #EA4646 100%); + +@button-red-idle-border-top: 0; +@button-red-over-border-top: 0; +@button-red-focus-border-top: 0; +@button-red-down-border-top: 0; +@button-red-disabled-border-top: 0; + +@button-red-disabled-text-shadow: none; +@button-red-disabled-color: maroon; + +// Button - Glossy +@button-glossy-color: @menu-button-color; +@button-glossy-disabled-color: @menu-button-disabled-color; +@button-glossy-disabled-text-shadow: none; + +@button-glossy-hover-border-color: darken(#DBDBDB, @darken-chrome); +@button-glossy-hover-shadow-color: transparent; +@button-glossy-hover-text-shadow: none; +@button-glossy-hover-background-1: darken(#E9E9E9, @darken-chrome); +@button-glossy-hover-background-2: darken(#E9E9E9, @darken-chrome); +@button-glossy-hover-background-3: darken(#E9E9E9, @darken-chrome); +@button-glossy-hover-background-4: darken(#E9E9E9, @darken-chrome); + +@button-glossy-active-border-color: darken(#dbdbdb, @darken-chrome); +@button-glossy-active-shadow-color: transparent; +@button-glossy-active-text-shadow: none; +@button-glossy-active-background-1: lighten(darken(#e7e7e7, @darken-chrome), 5%); +@button-glossy-active-background-2: lighten(darken(#e7e7e7, @darken-chrome), 5%); +@button-glossy-active-background-3: lighten(darken(#e7e7e7, @darken-chrome), 5%); +@button-glossy-active-background-4: lighten(darken(#e7e7e7, @darken-chrome), 5%); + +// Button - Black +@button-black-cursor: pointer; +@button-black-color: darken(#FFF, @darken-chrome); +@button-black-font-smoothing: true; +@button-black-text-shadow: none; +@button-black-font-weight: bold; +@button-black-padding: 2px 11px; +@button-black-border-color: transparent; +@button-black-highlight: transparent; +@button-black-hover-shadow: darken(rgba(255,255,255,.1), @darken-chrome); +@button-black-focus-highlight: none; +@button-black-active-inner-border: transparent; +@button-black-disabled-color: darken(rgba(189, 216, 187, 0.5), @darken-chrome); +@button-black-checked-shadow: none; + +@button-black-background-1: darken(#aeaeae, @darken-chrome); +@button-black-background-2: darken(#aeaeae, @darken-chrome); +@button-black-background-3: darken(#aeaeae, @darken-chrome); +@button-black-background-4: darken(#aeaeae, @darken-chrome); + +@chkRegEx-icon: 50% -540px; +@chkRegEx-hover-icon: 50% -565px; +@chkMatchCase-icon: 50% -590px; +@chkMatchCase-hover-icon: 50% -615px; +@chkWholeWords-icon: 50% -640px; +@chkWholeWords-hover-icon: 50% -665px; +@chkPreserveCase-icon: 50% -690px; +@chkPreserveCase-hover-icon: 50% -715px; +@chkSearchBackwards-icon: 50% -790px; +@chkSearchBackwards-hover-icon: 50% -815px; +@chkWrapAround-icon: 50% -890px; +@chkWrapAround-hover-icon: 50% -915px; +@chkSearchSelection-icon: 50% -840px; +@chkSearchSelection-hover-icon: 50% -865px; +@chkHighlightMatches-icon: 50% -740px; +@chkHighlightMatches-hover-icon: 50% -765px; +@chkConsole-icon: 50% -1235px; +@chkConsole-hover-icon: 50% -1268px; + +// Button - Console +@button-console-hover-border: darken(rgba(0,0,0,0.1), @darken-chrome); +@button-console-hover-background: darken(rgba(255,255,255,0.1), @darken-chrome); +@button-console-active-border: darken(rgba(0,0,0,0.3), @darken-chrome); +@button-console-active-box-shadow: 0 1px 0 darken(rgba(255, 255, 255, 0.62), @darken-chrome), 2px 2px 5px darken(rgba(0, 0, 0, 0.2), @darken-chrome) inset; +@button-console-active-background: darken(rgba(255, 255, 255, 0.4), @darken-chrome); + +@button-console-close: "console_close_btn.png"; +@button-console-close-retina: "console_close_btn@2x.png"; +@button-console-clear: "clear_dark_flat_light.png"; +@button-console-maximize: "maximize.png"; +@button-console-popout: "popout.png"; + +// Button - Toggle +@button-toggle-border: darken(#929292, @darken-chrome); +@button-toggle-background: darken(#E0E0E0, @darken-chrome); +@button-toggle-outset-1: darken(#D3D3D3, @darken-chrome); +@button-toggle-outset-2: darken(#BDBDBD, @darken-chrome); +@button-toggle-outset-3: darken(#B4B4B4, @darken-chrome); +@button-toggle-divider: darken(#8F8F8F, @darken-chrome); +@button-toggle-hover-outset-1: darken(#E3E3E3, @darken-chrome); +@button-toggle-hover-outset-2: darken(#CDCDCD, @darken-chrome); +@button-toggle-hover-outset-3: darken(#C4C4C4, @darken-chrome); + +// Checkbox +@checkbox-font-family: @general-font-family; +@checkbox-font-size: @general-font-size; +@checkbox-label-padding: 4px 3px 2px 8px; + +// Checkbox - Black +@checkbox-black-color: darken(#e0e3e8, @darken-chrome); +@checkbox-black-image: "checkbox_flat_light.png"; +@checkbox-black-image-width: 22px; +@checkbox-black-image-height: 162px; +@checkbox-black-width: 22px; +@checkbox-black-height: 20px; + +// Tree +@tree-arrow: "@{theme-image-path}/tree_close_arrow_small_dark_flat_light.png"; +@tree-arrow-focus-selected: "@{theme-image-path}/tree_close_arrow_small_flat_light.png"; +@tree-symlink: "symlink.png"; +@tree-symlink-y: 5px; +@tree-symlink-x: -3px; +@tree-upload: "tree_upload_icon.png"; +@tree-spinner: "@{image-path}/file-tree-load-spinner_flat_light.gif"; +@tree-spinner-width: 14px; +@tree-spinner-height: 14px; +@tree-focus-spinner: "@{image-path}/file-tree-load-spinner-dark-unfocus_flat_light.gif"; +@tree-selected-focus-spinner: "@{image-path}/file-tree-load-spinner-selected_flat_light.gif"; +@tree-folder-icon: "folder_flat_dark.png"; +@tree-folder-icon-width: 18px; +@tree-folder-icon-height: 14px; + +@tree-row-padding: 1px 1px 1px 1px; +@tree-row-height: 22px; +@tree-first-row-margin-right: 40px; + +@tree-heading-color: darken(#747474, @darken-chrome); +@tree-heading-text-shadow: none; + +@tree-editor-color: darken(#101010, @darken-chrome); +@tree-editor-background: darken(rgb(245, 247, 234), @darken-chrome); +@tree-editor-border-color: darken(#FFF, @darken-chrome); +@tree-editor-height: 17px; +@tree-editor-margin-top: 1px; +@tree-font-smoothing: true; + +@tree-settings-background: -6px -276px; +@tree-settings-top: 14px; +@tree-settings-right: 14px; +@tree-settings-hover-background: -36px -276px; + +@tree-selected-background-alternative: @selected-focus-background; +@tree-selected-color-alternative: @selected-focus-color; +@tree-folder-icon-alternative: @tree-folder-icon; + +@tree-extrainfo-color: #CCC; +@tree-focus-selected-extrainfo-color: #CCC; + +// Open Files +@openfiles-icon-margin: -2px 2px 0 3px; +@openfiles-caption-padding: -3px 2px 0 3px; +@openfiles-close-button: "close_tab_btn_flat_light.png"; +@openfiles-close-idle-position: 0 0; +@openfiles-close-hover-position: -14px 0; +@openfiles-close-margin-top: 0; +@openfiles-row-height: 20px; + +// Textbox +@textbox-close-button: "btnclose_flat_light.png"; + +@textbox-color: darken(#cecece, @darken-chrome); //darken(#e0e3e8, @darken-chrome); +@textbox-background: @element-background; +@textbox-box-shadow: none; +@textbox-border-color: transparent; +@textbox-initial-color: darken(#828282, @darken-chrome); +@textbox-initial-text-shadow: none; +@textbox-disabled-color: darken(#555, @darken-chrome); +@textbox-disabled-background: darken(#303030, @darken-chrome); + +// Textbox - Simple +@tbsimple-border: @textbox-border-color; +@tbsimple-border-radius: 3px; +@tbsimple-gradient: none; +@tbsimple-color: @textbox-color; +@tbsimple-font-family: @general-font-family; +@tbsimple-font-size: 12px; +@tbsimple-box-shadow: none; +@tbsimple-disabled-gradient: none; + +// Preview +@preview-bar-box-shadow: none; +@preview-bar-background-color: darken(#252525, @darken-chrome); +@preview-bar-border-top: 0; +@preview-bar-height: 37px; + +@preview-chooser-arrow: "arrow_down_black.png"; +@preview-chooser-box-shadow: inset 1px 0 darken(#1c1c1c, @darken-chrome); +@preview-chooser-color: darken(#e0e3e8, @darken-chrome); +@preview-chooser-background: darken(#303130, @darken-chrome); +@preview-chooser-over-background: darken(#1d1d1d, @darken-chrome); +@preview-chooser-active-background: darken(#EDEDED, @darken-chrome); +@preview-chooser-font-family: @general-font-family; +@preview-chooser-font-size: 12px; +@preview-chooser-font-weight: normal; + +@preview-icon-close: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-close-width: 23px; +@preview-icon-close-height: 280px; +@preview-icon-close-position: 0 -65px; +@preview-icon-refresh: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-refresh-width: 23px; +@preview-icon-refresh-height: 280px; +@preview-icon-refresh-position: 0 -88px;; +@preview-icon-popout: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-popout-width: 23px; +@preview-icon-popout-height: 280px; +@preview-icon-popout-position: 0 -113px; +@preview-icon-settings: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-settings-width: 23px; +@preview-icon-settings-height: 280px; +@preview-icon-settings-position: -1px -33px; +@preview-icon-goforward: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-goforward-width: 23px; +@preview-icon-goforward-height: 280px; +@preview-icon-goforward-position: 0 -184px; +@preview-icon-goforward-disabled-position: 0 -209px; +@preview-icon-goback: "@{image-path}/c9-preview-repeat_flat_dark.png"; +@preview-icon-goback-width: 23px; +@preview-icon-goback-height: 280px; +@preview-icon-goback-position: 0 -136px; +@preview-icon-goback-disabled-position: 0 -161px; + +// Preferences +@preference-menu-button-padding: 18px; +@preference-menu-button-margin-left: 0; +@preference-menu-button-icon-top: 7px; +@preference-menu-button-icon-height: 25px; + +@preferences-nav-border: 0px solid darken(@element-border, @darken-chrome); +@preferences-nav-background: darken(#303130, @darken-chrome); +@preferences-nav-shadow-color: transparent; +@preferences-nav-main-color: darken(#e0e3e8, @darken-chrome); +@preferences-nav-main-padding: 10px 15px 10px 26px; +@preferences-nav-main-toggle-top: 11px; +@preferences-nav-main-font-smoothing: true; +@preferences-nav-main-border-color: darken(#9E9E9E, @darken-chrome); +@preferences-nav-main-hover-color: darken(#e0e3e8, @darken-chrome); +@preferences-nav-main-hover-background: @selected-background; +@preferences-nav-active-area-background: @preferences-nav-background; +@preferences-nav-main-active-color: @selected-focus-color; +@preferences-nav-main-active-background: darken(@selected-focus-background, @darken-chrome); +@preferences-nav-main-active-text-shadow: none; +@preferences-nav-sub-color: darken(#e0e3e8, @darken-chrome); +@preferences-sub-border-bottom: 0; +@preferences-nav-font-weight: bold; +@preferences-nav-link-color: darken(#8E8E8E, @darken-chrome); +@preferences-nav-link-hover-background: @selected-background; +@preferences-nav-link-active-color: @highlight-color; + +@preferences-text-shadow: none; +@preferences-background: darken(@element-border, @darken-chrome); +@preferences-border-top-color: transparent; +@preferences-border-top-color-light: transparent; +@preferences-border-bottom-color: transparent; +@preferences-header-color: darken(#e0e3e8, @darken-chrome); +@preferences-header-padding: 20px; +@preferences-header-font-size: 16px; +@preferences-header-background: darken(#303130, @darken-chrome);; +@preferences-header-border-top-color: transparent; +@preferences-header-border-bottom-color: @preferences-header-border-top-color; +@preferences-form-border-bottom-color: @preferences-header-border-bottom-color; +@preferences-form-label-color: darken(#e0e3e8, @darken-chrome); +@preferences-form-label-font-smoothing: true; + +@preferences-header-margin: -10px -10px 10px -10px; +@preferences-section-padding: 10px; + +@preferences-datagrid-font-smoothing: true; +@preferences-datagrid-row-height: 24px; +@preferences-datagrid-cell-padding: 4px 0 2px 8px; +@preferences-datagrid-header-background: @datagrid-heading-background; +@preferences-datagrid-header-font-weight: normal; +@preferences-datagrid-header-color: @datagrid-heading-color; +@preferences-datagrid-header-padding: 4px 4px 6px 8px; +@preferences-datagrid-header-border-bottom: 0; +@preferences-datagrid-header-hover-background: @datagrid-heading-hover-background; +@preferences-datagrid-header-hover-color: @datagrid-heading-hover-color; +@preferences-datagrid-background: @datagrid-background; +@preferences-datagrid-border: transparent; +@preferences-datagrid-border-radius: 4px; +@preferences-datagrid-font-family: @general-font-family; +@preferences-datagrid-font-size: @general-font-size; +@preferences-datagrid-color: @datagrid-color; +@preferences-datagrid-box-shadow: none; +@preferences-datagrid-focus-border: transparent; +@preferences-datagrid-group-background: darken(#383838, @darken-chrome); +@preferences-datagrid-group-box-shadow: none; +@preferences-datagrid-group-first-child-box-shadow: none; +@preferences-datagrid-group-toggler-top: -1px; +@preferences-datagrid-group-font-weight: bold; +@preferences-datagrid-highlight-column-color: transparent; + +@preferences-filter-box-background: lightgrey; +@preferences-intro-padding: 12px; +@preferences-intro-title-text-shadow: none; +@preferences-intro-title-padding: 8px 0 6px 47px; +@preferences-intro-color: darken(#e0e3e8, @darken-chrome); +@preferences-intro-icon-left: 8px; +@preferences-intro-icon-top: 7px; +@preferences-intro-icon-width: 26px; +@preferences-intro-icon-height: 26px; +@preferences-intro-text-margin: 0 0 8px 47px; +@preferences-intro-link-color: @highlight-color; +@preferences-intro-hint-color: darken(#7b7b7b, @darken-chrome); +@preferences-intro-hint-text-shadow: none; +@preferences-intro-border-bottom-color: @preferences-form-border-bottom-color; +@preferences-radiobutton-active: darken(#AFAFAF, @darken-chrome); +@preferences-button-height: 22px; +@preferences-dropdown-margin-top: -5px; +@preferences-spinner-margin-top: -5px; +@preferences-ta-margin-top: -11px; +@preferences-checkbox-margin-top: -5px; +@preferences-color-margin-top: -5px; +@preferences-button-margin-top: -4px; +@preferences-textbox-margin-top: -3px; +@preferences-textbox-border-radius: 4px; +@preferences-textbox-padding: 6px 10px; +@preferences-textbox-font-family: @general-font-family; +@preferences-textbox-font-size: @general-font-size; +@preferences-flat: true; + +// Dropdown - Black +@dropdown-black-image: "arrow_down_grey.png"; +@dropdown-black-image-width: 8px; +@dropdown-black-image-height: 5px; +@dropdown-black-background-position: 50% 50%; +@dropdown-black-height: 28px; +@dropdown-black-padding: 8px 0 5px 9px; +@dropdown-black-font-family: @general-font-family; +@dropdown-black-font-size: 13px; +@dropdown-black-button-width: 24px; +@dropdown-black-color: darken(@element-highlight-color, @darken-chrome); +@dropdown-black-selected-color: darken(#D8FC68, @darken-chrome); +@dropdown-black-border-color: transparent; +@dropdown-black-background: darken(@element-background, @darken-chrome); +@dropdown-black-divider-left: darken(@element-border, @darken-chrome); +@dropdown-black-divider-right: transparent; +@dropdown-black-box-shadow: none; +@dropdown-black-container-shadow: none; +@dropdown-black-gradient-start: darken(@element-background, @darken-chrome); +@dropdown-black-gradient-stop: darken(@element-background, @darken-chrome); +@dropdown-black-hover-gradient-start: darken(@element-background-hover, @darken-chrome); +@dropdown-black-hover-gradient-stop: darken(@element-background-hover, @darken-chrome); +@dropdown-black-active-gradient-start: darken(#2d2d2d, @darken-chrome); +@dropdown-black-active-gradient-stop: darken(#2d2d2d, @darken-chrome); + +@dropdown-glossy-list-font-family: @general-font-family; +@dropdown-glossy-list-font-size: 12px; +@dropdown-glossy-list-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.07); +@dropdown-glossy-list-border-radius: 4px; +@dropdown-glossy-list-item-border-radius: 2px; +@dropdown-glossy-list-padding: 5px; + +// Find +@find-bar-background: @chrome-background; +@find-search-count-color: darken(#aaa, @darken-chrome); +@find-next-image: "arrow_left_search.png"; +@find-previous-image: "arrow_right_search.png"; +@find-range-marker-color: rgba(255, 255, 255, 0.6); +@find-divider: false; +@find-textbox-font-family: @general-font-family; +@find-textbox-font-size: @general-font-size; +@find-button-font-family: @general-font-family; +@find-button-font-size: @general-font-size; +@find-button-line-height: 24px; +@find-button-padding: 0 11px; +@find-button-margin-top: 1px; +@find-button-height: 25px; +@find-dropdown-icon-image: "@{image-path}/arrow_down_white.png"; +@find-dropdown-button-border-left: 0; + +@tooltip-label-gradient: linear-gradient(bottom, @chrome-background 0%, @chrome-background 100%); +@tooltip-label-background-color: @chrome-background; +@tooltip-label-border: 1px solid darken(#1c1c1c, @darken-chrome); +@tooltip-label-box-shadow: 0 1px 0 0 rgba(255,255,255,.2) inset; +@tooltip-label-color: darken(#e0e3e8, @darken-chrome); +@tooltip-label-padding: 2px 7px 0 7px; +@tooltip-label-font-size: 11px; +@tooltip-label-font-family: @general-font-family; +@tooltip-label-text-shadow: none; + +@checkbox-holder-gradient: linear-gradient(top, transparent 0%, transparent 100%); +@checkbox-holder-box-shadow: none; +@checkbox-holder-border-color: transparent; +@checkbox-holder-border-radius: 0; +@checkbox-holder-divider-border-left: 1px solid transparent; +@checkbox-holder-divider-box-shadow: none; +@checkbox-holder-box-border-radius: 3px; +@checkbox-holder-box-hover-box-shadow: 0px 1px #1c1c1c inset, 1px 0px #1c1c1c inset, -1px 0px #1c1c1c inset, 0px -1px #1c1c1c inset, 0 0 0 1000px #494949 inset; + +// Label +@label-font-family: @general-font-family; +@label-font-size: @general-font-size; +@label-color: darken(#e0e3e8, @darken-chrome); + +// Goto Line - Dark +@gotoline-background-dark: darken(#353637, @darken-chrome); +@gotoline-box-shadow-dark: 0 0 10px rgba(0, 0, 0, 0.5); +@gotoline-border-dark: 1px solid rgb(36, 36, 36); + +@gotoline-list-background-dark: linear-gradient(center bottom, darken(rgb(71, 71, 71), @darken-chrome) 0%, darken(rgb(71, 71, 71), @darken-chrome) 100%); +@gotoline-list-color-dark: darken(#e7e7e7, @darken-chrome); +@gotoline-list-border-color-dark: darken(#353637, @darken-chrome); +@gotoline-list-border-width-dark: 1px 0 1px 0; +@gotoline-list-border-radius-dark: 2px; +@gotoline-list-selected-background-dark: darken(#5f5f5f, @darken-chrome); + +@gotoline-input-border-color-dark: darken(#fafafa, @darken-chrome); +@gotoline-input-border-width-dark: 1px 0 0 0; +@gotoline-input-border-radius-dark: 2px; +@gotoline-input-box-shadow-dark: none; + +// Goto Line - Light +@gotoline-background: darken(#FFF, @darken-chrome); +@gotoline-box-shadow: 0 0 10px darken(rgba(0, 0, 0, 0.09), @darken-chrome); +@gotoline-border: 1px solid #1c1c1c; +@gotoline-border-radius: 0px 3px 3px 0; + +@gotoline-list-background: linear-gradient(center bottom, darken(#FCFCFC, @darken-chrome) 0%, darken(#FCFCFC, @darken-chrome) 100%); +@gotoline-list-color: darken(#e0e3e8, @darken-chrome); +@gotoline-list-border-color: darken(#F6F6F6, @darken-chrome); +@gotoline-list-border-width: 1px; +@gotoline-list-border-radius: 3px; +@gotoline-list-selected-background: @selected-focus-background; + +@gotoline-input-border-color: darken(#FFF, @darken-chrome); +@gotoline-input-border-width: 1px; +@gotoline-input-border-radius: 2px; +@gotoline-input-box-shadow: none; + +// Complete - light +@language-tooltip-color: darken(#e0e3e8, @darken-chrome); +@language-tooltip-background: darken(#F9F2AD, @darken-chrome); +@language-tooltip-border-color: darken(#E7DE81, @darken-chrome); +@language-tooltip-box-shadow: 0 0 3px darken(rgba(119, 119, 119, 0.23), @darken-chrome); +@language-tooltip-text-shadow: 0; + +@complete-color: darken(#e0e3e8, @darken-chrome); +@complete-background: darken(#FFF, @darken-chrome); +@complete-border-color: darken(#1c1c1c, @darken-chrome); +@complete-inner-border-color: transparent; +@complete-box-shadow: 0 0 7px darken(rgba(119, 119, 119, 0.2), @darken-chrome); + +@complete-match: @highlight-color; +@complete-selected-match: darken(#CFE8FF, @darken-chrome); //@highlight-selected-color; +@complete-selected-match-text-overflow: 0px 1px darken(rgba(0,0,0,0.3), @darken-chrome); +@complete-selected-color: @selected-focus-color; +@complete-selected-background: @selected-focus-background; +@complete-hover-color: @selected-hover-color; +@complete-hover-background: @selected-hover-background; + +@complete-docs-color: @language-tooltip-color; +@complete-docs-background: @language-tooltip-background; +@complete-docs-border-color: @language-tooltip-border-color; + +@complete-activeparamindent: darken(rgba(0, 0, 0, 0), @darken-chrome); +@complete-activeparam: darken(#474747, @darken-chrome); +@complete-paramhelp: darken(#474747, @darken-chrome); + +// Complete - dark +@language-tooltip-dark-color: darken(#D1D1D1, @darken-chrome); +@language-tooltip-dark-background: darken(#636363, @darken-chrome); +@language-tooltip-dark-border-color: darken(rgb(111, 111, 111), @darken-chrome); +@language-tooltip-dark-box-shadow: 0 1px 1px darken(rgba(0,0,0,.4), @darken-chrome); +@language-tooltip-dark-text-shadow: 0 1px 0 darken(rgba(0,0,0,0.21), @darken-chrome); + +@complete-dark-color: darken(#252525, @darken-chrome); +@complete-dark-background: darken(#303130, @darken-chrome); +@complete-dark-border-color: black; +@complete-dark-inner-border-color: darken(rgba(255,255,255,0.06), @darken-chrome); +@complete-dark-box-shadow: 2px 2px 7px darken(rgba(0, 0, 0, 0.8), @darken-chrome); + +@complete-dark-match: darken(#9FB814, @darken-chrome); +@complete-dark-selected-match: darken(rgb(184, 206, 115), @darken-chrome); +@complete-dark-selected-match-text-overflow: 0px 1px darken(rgba(0,0,0,0.3), @darken-chrome); +@complete-dark-selected-color: darken(#252525, @darken-chrome); +@complete-dark-selected-background: darken(#748512, @darken-chrome); +@complete-dark-hover-color: darken(#252525, @darken-chrome); +@complete-dark-hover-background: darken(#252525, @darken-chrome); + +@complete-dark-docs-color: darken(#494949, @darken-chrome); +@complete-dark-docs-background: darken(#636363, @darken-chrome); + +@complete-dark-activeparamindent: darken(rgba(0, 0, 0, 0), @darken-chrome); +@complete-dark-activeparam: darken(#494949, @darken-chrome); +@complete-dark-paramhelp: darken(#494949, @darken-chrome); + +// Complete Icons +@complete-icon-event: "@{image-path}/event_flat_light.png"; +@complete-icon-method: "@{image-path}/method_flat_light.png"; +@complete-icon-method2: "@{image-path}/method2_flat_light.png"; +@complete-icon-package: "@{image-path}/package_flat_light.png"; +@complete-icon-property: "@{image-path}/property_flat_light.png"; +@complete-icon-property2: "@{image-path}/property2_flat_light.png"; + +// Welcome +@welcome-color: #333; +@welcome-background: darken(#193342, @darken-chrome) url("@{image-path}/welcome-cover.png"); +@welcome-top-border: darken(rgba(255,255,255,0.03), @darken-chrome); +@welcome-color: darken(#f1f1f1, @darken-chrome); +@welcome-font-smoothing: true; +@welcome-highlight-color: darken(#9BB11D, @darken-chrome); +@welcome-panel-border-color: darken(rgba(255, 255, 255, 0.09), @darken-chrome); +@welcome-panel-background: darken(rgba(255, 255, 255, 0.08), @darken-chrome); +@welcome-logo-image: "@{image-path}/welcome-logo.png"; +@welcome-logo-image-width: 155px; +@welcome-logo-image-height: 103px; +@welcome-alter-widgets: true; +@welcome-heading-color: @welcome-color; +@welcome-heading-border-bottom: 1px solid rgba(255, 255, 255, 0.39); + +// Output +@output-toolbar-height: 40px; +@output-toolbar-padding: 9px 8px 8px 8px; +@output-toolbar-background: transparent; +@output-toolbar-box-shadow: none; +@output-toolbar-border-color: darken(rgba(138, 153, 169, 0.32), @darken-chrome); + +@output-divider-color: transparent; +@output-divider-width: 10px; +@output-label-color: darken(rgba(204, 204, 204, 1), @darken-chrome); +@output-label-padding: 3px 0 0 4px; +@output-font-smoothing: true; + +@output-textbox-color: darken(#e0e3e8, @darken-chrome); +@output-textbox-background-color: rgba(114, 133, 153, 0.49); +@output-textbox-border-radius: 4px; +@output-textbox-initial-color: darken(transparent, @darken-chrome); //#89929E +@output-textbox-hover-background: @output-textbox-background-color; +@output-textbox-active-background: @output-textbox-background-color; +@output-textbox-active-color: darken(#e0e3e8, @darken-chrome); +@output-textbox-margin-top: 1px; +@output-textbox-padding: 2px 6px 2px 7px; + +@output-button-hover-border-color: @button-glossy-hover-border-color; +@output-button-hover-shadow-color: @button-glossy-hover-shadow-color; +@output-button-hover-background-1: @button-glossy-hover-background-1; +@output-button-hover-background-2: @button-glossy-hover-background-2; +@output-button-hover-background-3: @button-glossy-hover-background-3; +@output-button-hover-background-4: @button-glossy-hover-background-4; + +@output-button-active-border-color: @button-glossy-active-border-color; +@output-button-active-shadow-color: @button-glossy-active-shadow-color; +@output-button-active-background-1: @button-glossy-active-background-1; +@output-button-active-background-2: @button-glossy-active-background-2; +@output-button-active-background-3: @button-glossy-active-background-3; +@output-button-active-background-4: @button-glossy-active-background-4; + +@output-restart-image: "@{icon-path}/restart-icon_flat_light.png"; +@output-restart-image-width: 18px; +@output-restart-image-height: 18px; +@output-bug-image: "@{icon-path}/bug_flat_dark.png"; +@output-bug-image-width: 20px; +@output-bug-image-height: 58px; + +// Commands +@commands-keys-color: darken(#969696, @darken-chrome); +@commands-keys-text-shadow: none; +@commands-keys-font-weight: normal; + +// Share +@share-width: 570px; +@share-height: 613px; +@share-padding: 20px; +@share-container-border: 1px solid darken(#1c1c1c, @darken-chrome); +@share-container-box-shadow: none; +@share-container-border-radius: 3px; +@share-links-padding: 10px 15px 0 15px; +@share-links-margin: 10px 0 10px 0; +@share-invite-padding: 10px; +@share-invite-margin: 10px 0 10px 0; +@share-label-font-family: @general-font-family; +@share-label-font-size: @general-font-size; +@share-label-font-weight: bold; +@share-label-color: darken(#e0e3e8, @darken-chrome); +@share-label-subhead-color: darken(#e0e3e8, @darken-chrome); +@share-label-subhead-width: 119px; +@share-label-subhead-font-weight: normal; +@share-label-subhead-margin-top: 7px; +@share-link-background: darken(#FFF, @darken-chrome); +@share-link-padding: 6px 10px; +@share-link-border: 1px solid darken(#1c1c1c, @darken-chrome); +@share-link-border-radius: 3px; +@share-link-box-shadow: none; +@share-link-color: darken(#e0e3e8, @darken-chrome); +@share-link-width: 271px; +@share-link-margin: 0 0 10px 0; +@share-checkbox-margin: 2px 0 0 10px; +@share-members-border: 1px solid darken(#1c1c1c, @darken-chrome); +@share-members-box-shadow: none; +@share-members-border-radius: 3px; +@share-members-margin: 10px 0 10px 0; +@share-members-hover-background: transparent; +@share-textbox-background-color: @textbox-background; +@share-textbox-box-shadow: @textbox-box-shadow; +@share-textbox-padding: 5px 10px; +@share-textbox-border-color: @textbox-border-color; +@share-textbox-width: 378px; +@share-textbox-margin: 5px 0 0 0; +@share-access-right: 140px; +@share-access-top: 66px; +@share-invite-button-width: 120px; +@share-invite-button-height: 30px; +@share-invite-button-right: 10px; +@share-invite-button-bottom: 39px; +@share-done-button-right: 20px; +@share-done-button-width: 120px; +@share-done-button-bottom: 20px; + +// ImgEditor +@imgeditor-toolbar-padding-top: 3px; +@imgeditor-toolbar-background: darken(#252525, @darken-chrome); +@imgeditor-toolbar-shadow: none; +@imgeditor-toolbar-border-color: darken(#1c1c1c, @darken-chrome); +@imgeditor-toolbar-label-color: darken(#e0e3e8, @darken-chrome); +@imgeditor-background: darken(#E8E8E8, @darken-chrome); +@imgeditor-dropdown-height: 21px; +@imgeditor-dropdown-label-padding: 4px 0px 5px 7px; +@imgeditor-dropdown-button-width: 20px; +@imgeditor-toolbar-divider-margin: 0 5px 0 8px; +@imgeditor-toolbar-label-padding: 1px 2px 0 2px; +@imgeditor-resize-width: 242px; +@imgeditor-resize-height: 238px; +@imgeditor-resize-padding: 20px 20px 0 20px; +@imgeditor-resize-row-height: 30px; +@imgeditor-resize-column-width: 70px; +@imgeditor-resize-divider-margin: 20px 0 20px 0; +@imgeditor-resize-row-margin-bottom: 10px; +@imgeditor-resize-dividers: true; + +// Toolbar +@toolbar-height: 30px; + +@toolbar-button-padding-top: 9px; +@toolbar-button-width: 31px; +@toolbar-button-height: 31px; +@toolbar-button-icon-width: 18px; +@toolbar-button-icon-height: 18px; +@toolbar-button-icon-left: 5px; +@toolbar-button-icon-top: 6px; +@toolbar-button-active-box-shadow: none; + +// Debug Pane +@debug-pane-scroller-top: 32px; +@debug-pane-scroller-bottom: 32px; +@debug-pane-toolbar-bottom-border-top: 1px solid @border-highlight-dark; +@debug-pane-toolbar-bottom-border-bottom: 0; +@debug-pane-toolbar-bottom-button-height: 30px; +@debug-pane-toolbar-bottom-divider-height: 30px; + +@debugger-icon-play: "@{icon-path}/play_flat_dark.png"; +@debugger-icon-play-width: 21px; +@debugger-icon-play-height: 57px; +@debugger-icon-pause: "@{icon-path}/pause_flat_dark.png"; +@debugger-icon-pause-width: 21px; +@debugger-icon-pause-height: 57px; +@debugger-icon-step: "@{icon-path}/step_flat_dark.png"; +@debugger-icon-step-width: 21px; +@debugger-icon-step-height: 57px; +@debugger-icon-stepinto: "@{icon-path}/stepinto_flat_dark.png"; +@debugger-icon-stepinto-width: 21px; +@debugger-icon-stepinto-height: 57px; +@debugger-icon-stepback: "@{icon-path}/stepback_flat_dark.png"; +@debugger-icon-stepback-width: 21px; +@debugger-icon-stepback-height: 57px; +@debugger-icon-exception_break: "@{icon-path}/exception_break_flat_dark.png"; +@debugger-icon-exception_break-width: 21px; +@debugger-icon-exception_break-height: 57px; +@debugger-icon-scripts: "@{icon-path}/scripts_flat_light.png"; +@debugger-icon-scripts-width: 21px; +@debugger-icon-scripts-height: 57px; +@debugger-icon-toggle_breakpoints1: "@{icon-path}/toggle_breakpoints1_flat_dark.png"; +@debugger-icon-toggle_breakpoints1-width: 21px; +@debugger-icon-toggle_breakpoints1-height: 76px; +@debugger-icon-toggle_breakpoints2: "@{icon-path}/toggle_breakpoints2_flat_dark.png"; +@debugger-icon-toggle_breakpoints2-width: 21px; +@debugger-icon-toggle_breakpoints2-height: 76px; +@debugger-icon-remove_breakpoints: "@{icon-path}/remove_breakpoints_flat_dark.png"; +@debugger-icon-remove_breakpoints-width: 21px; +@debugger-icon-remove_breakpoints-height: 76px; +@debugger-icon-generic-variable: "@{icon-path}/debugger/genericvariable_obj_flat_light.png"; +@debugger-icon-generic-variable-width: 16px; +@debugger-icon-generic-variable-height: 16px; + +// Upload +@upload-win-flat: true; +@upload-win-width: 480px; +@upload-win-target-margin: 26px 0 20px 0; +@upload-win-target-font-size: @general-font-size; +@upload-win-target-color: darken(#e0e3e8, @darken-chrome); +@upload-win-buttons-height: 30px; +@upload-win-buttons-margin: 0 0 20px 0; + +@upload-frame-box-shadow: none; +@upload-frame-border-top: 1px solid #1c1c1c; +@upload-frame-item-color: #e0e3e8; + +// Mount +@mount-container-padding: 5px 0 0 0; +@mount-loading-background: rgba(0, 0, 0, 0.17); +@mount-loading-color: #e0e3e8; + +// Installer +@installer-font-smoothing: true; +@installer-background: transparent; +@installer-border-top: 0; +@installer-box-shadow: none; +@installer-color: #333; +@installer-text-shadow: none; +@installer-font-family: @general-font-family; + +@installer-log-color: #e0e3e8; +@installer-log-gradient: linear-gradient(top, #DFEFF9 0%, #DFEFF9 100%); +@installer-log-border: 0; +@installer-log-border-color: white; +@installer-log-border-radius: 3px; +@installer-log-box-shadow: none; +@installer-log-checkbox-color: #e0e3e8; +@installer-log-progress-color: #e0e3e8; + +// Notification +@notify-close-image: "@{image-path}/close_tab_btn_flat_light.png"; +@notify-close-image-width: 42px; +@notify-close-image-height: 28px; +@notify-close-image-idle: 0 -14px; +@notify-close-image-hover: -14px -14px; +@notify-close-image-active: -28px -14px; + +// Terminal Message +@terminal-message-gradient: linear-gradient(to bottom, #FFF 0%, #FFF 100%); +@terminal-message-border: 1px solid #1c1c1c; +@terminal-message-border-radius: 3px; +@terminal-message-color: #e0e3e8; +@terminal-message-font-family: @general-font-family; +@terminal-message-font-size: 12px; +@terminal-message-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.09); +@terminal-message-padding: 10px; +@terminal-message-link-color: #568C11; +@terminal-message-button-gradient: linear-gradient(to bottom, #767676 0%, #767676 100%); +@terminal-message-button-text-shadow: none; +@terminal-message-button-border-top: 0; +@terminal-message-button-hover-gradient: @button-grey-over-gradient; +@terminal-message-button-active-gradient: @button-grey-down-gradient; +@terminal-message-close-image: "@{image-path}/close_tab_btn_flat_light.png"; +@terminal-message-close-image-width: 42px; +@terminal-message-close-image-height: 28px; +@terminal-message-close-idle: 0 0; +@terminal-message-close-hover: -14px 0; +@terminal-message-close-active: -28px 0; + +// Stats +@upgrade-color: #333; +@upgrade-progress-highlight-color: rgb(171, 211, 74); +@upgrade-progress-background-color: rgb(226, 226, 226); + +@stats-button-width: 100px; +@stats-button-margin-left: 0; +@stats-button-padding: 2px 5px 2px 7px; +@stats-button-border-left: 1px solid #e0e0e0; +@stats-button-border-right: 1px solid #e0e0e0; +@stats-button-box-shadow: none; +@stats-button-color: #666666; +@stats-button-hover-background: #E9E9E9; +@stats-button-active-background: white; +@stats-button-active-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.09); + +@stats-button-item-padding: 4px 0 0 0; +@stats-button-item-font-size: 7px; +@stats-button-progress-highlight-color: #D3D3D3; +@stats-button-progress-highlight-hover-color: #98c878; +@stats-button-progress-highlight-limit-color: #f06767; +@stats-button-progress-background-color: #E8E8E8; +@stats-button-progress-background-hover-color: rgb(223, 223, 223); +@stats-button-progress-height: 9px; +@stats-button-progress-margin-top: -2px; + +@stats-menu-padding: 20px; +@stats-menu-width: 302px; +@stats-menu-graph-label-text-transform: uppercase; +@stats-menu-graph-border: 1px solid #DEDEDE; +@stats-menu-graph-box-shadow: none; +@stats-menu-graph-background: #FCFCFC; +@stats-menu-graph-color: #8ED6FF; +@stats-menu-info-background: #F9F9F9; +@stats-menu-info-border: 0; +@stats-menu-info-box-shadow: none; + +@coverage-button-font-size: 25px; + +@detail-label-color: #333333; +@detail-label-background: #F6F6F6; +@detail-label-margin: 1px 0 0 67px; +@detail-label-border-bottom: none; +@detail-label-box-shadow: none; + +@detail-label-hash-border: 1px solid #DDDE33; +@detail-label-hash-color: #333; +@detail-label-hash-background: #f9f796; + +@log-hash-color: #333; +@log-hash-background: rgb(249, 247, 150); +@log-hash-border: 1px solid #DDDE33; + +@diff-toolbar-buttons-background: #F9F9F9; +@diff-toolbar-buttons-border: 1px solid @border-highlight-dark; + +@form-bar-padding: 10px 50px 10px 10px; +@form-bar-background: @menu-button-active-background; +@form-bar-border-bottom: 1px solid black; +@form-bar-box-shadow: 0 1px @border-highlight; + +@panel-settings-changes-top: 46px; + +/*******/ + +@element-background: #303030; +@element-border: #3f3f3f; +@element-chrome-highlight: #dadada; +@element-chrome-text-color: #767676; +@element-highlight-color: #c0dabe; +@element-dark-highlight-color: #252525; +@element-background-hover: #282828; \ No newline at end of file diff --git a/plugins/c9.ide.layout.classic/themes/default-flat-light.less b/plugins/c9.ide.layout.classic/themes/default-flat-light.less index cba9923c..bc630707 100644 --- a/plugins/c9.ide.layout.classic/themes/default-flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/default-flat-light.less @@ -391,11 +391,11 @@ @pane-button-right: -42px -125px; //-126px; @pane-button-left-active: 0 -125px; //-126px; @pane-button-right-active: -42px -125px; //-126px; -@pane-button-mask-left: 0 -96px; //-95px; -@pane-button-mask-right: -42px -96px; //-95px; +@pane-button-mask-left: 0 -95px; //-95px; +@pane-button-mask-right: -42px -95px; //-95px; -@pane-button-dark-mask-left: 0 -94px; //-95px; -@pane-button-dark-mask-right: -42px -94px; //-95px; +@pane-button-dark-mask-left: 0 -95px; //-95px; +@pane-button-dark-mask-right: -42px -95px; //-95px; @pane-button-dark-middle-active: @pane-button-middle; @pane-button-dark-left-active: @pane-button-left-active; @@ -594,6 +594,7 @@ @dialog-header-font-size: 16px; @dialog-header-font-weight: normal; +@dialog-content-color: #222; @dialog-content-background: darken(#FEFEFE, @darken-chrome); @dialog-content-dark-background-color: @dialog-content-background; @dialog-content-dark-gradient: linear-gradient(top, transparent 0%, transparent 100%); @@ -1127,7 +1128,7 @@ @preference-menu-button-icon-top: 7px; @preference-menu-button-icon-height: 25px; -@preferences-nav-border-color: darken(#DEDEDE, @darken-chrome); +@preferences-nav-border: 1px solid darken(#DEDEDE, @darken-chrome); @preferences-nav-background: darken(#FBFBFB, @darken-chrome); @preferences-nav-shadow-color: transparent; @preferences-nav-main-color: darken(#333, @darken-chrome); @@ -1192,7 +1193,7 @@ @preferences-datagrid-highlight-column-color: transparent; @preferences-filter-box-background: lightgrey; -@preferences-intro-padding: 12px 12px 32px 12px; +@preferences-intro-padding: 12px; @preferences-intro-title-text-shadow: none; @preferences-intro-title-padding: 8px 0 6px 47px; @preferences-intro-color: darken(#333, @darken-chrome); diff --git a/plugins/c9.ide.layout.classic/themes/default-light-gray.less b/plugins/c9.ide.layout.classic/themes/default-light-gray.less index c5572bef..2c5ba4dc 100644 --- a/plugins/c9.ide.layout.classic/themes/default-light-gray.less +++ b/plugins/c9.ide.layout.classic/themes/default-light-gray.less @@ -594,6 +594,7 @@ @dialog-header-font-size: 14px; @dialog-header-font-weight: bold; +@dialog-content-color: #222; @dialog-content-background: darken(#dfdfe0, @darken-chrome) url("@{image-path}/modalbg.png") repeat 0 0; @dialog-content-dark-background-color: darken(#303130, @darken-chrome); @dialog-content-dark-gradient: linear-gradient(top,rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.11) 8px, rgba(0, 0, 0, 0.01) 13px, transparent 15px); @@ -1127,7 +1128,7 @@ @preference-menu-button-icon-top: 0; @preference-menu-button-icon-height: auto; -@preferences-nav-border-color: darken(#C0C0C0, @darken-chrome); +@preferences-nav-border: 1px solid darken(#C0C0C0, @darken-chrome); @preferences-nav-background: darken(#E0E0E0, @darken-chrome); @preferences-nav-shadow-color: darken(rgba(255, 255, 255, 0.03), @darken-chrome); @preferences-nav-main-color: darken(#666, @darken-chrome); diff --git a/plugins/c9.ide.layout.classic/themes/default-light.less b/plugins/c9.ide.layout.classic/themes/default-light.less index cf27da42..b6c73957 100644 --- a/plugins/c9.ide.layout.classic/themes/default-light.less +++ b/plugins/c9.ide.layout.classic/themes/default-light.less @@ -594,6 +594,7 @@ @dialog-header-font-size: 14px; @dialog-header-font-weight: bold; +@dialog-content-color: #222; @dialog-content-background: darken(#dfdfe0, @darken-chrome) url("@{image-path}/modalbg.png") repeat 0 0; @dialog-content-dark-background-color: darken(#303130, @darken-chrome); @dialog-content-dark-gradient: linear-gradient(top,rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.11) 8px, rgba(0, 0, 0, 0.01) 13px, transparent 15px); @@ -1127,7 +1128,7 @@ @preference-menu-button-icon-top: 0; @preference-menu-button-icon-height: auto; -@preferences-nav-border-color: darken(#C0C0C0, @darken-chrome); +@preferences-nav-border: 1px solid darken(#C0C0C0, @darken-chrome); @preferences-nav-background: darken(#E0E0E0, @darken-chrome); @preferences-nav-shadow-color: darken(rgba(255, 255, 255, 0.03), @darken-chrome); @preferences-nav-main-color: darken(#666, @darken-chrome); diff --git a/plugins/c9.ide.layout.classic/themes/flat-dark.less b/plugins/c9.ide.layout.classic/themes/flat-dark.less new file mode 100644 index 00000000..be6a89e9 --- /dev/null +++ b/plugins/c9.ide.layout.classic/themes/flat-dark.less @@ -0,0 +1,224 @@ +@import "plugins/c9.ide.layout.classic/themes/flat-light.less"; + +.bartools .c9-toolbarbutton-glossyOver{ + background: #E6E6E6; +} + +.bartools .c9-toolbarbutton-glossymenuDown{ + background-color: #ffffff; + box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.29); + border: 1px solid #dedede; +} + +.output .toolbar .c9-toolbarbutton-glossyOver{ + border: 1px solid transparent !important; + background: rgba(255,255,255, 0.1) !important; +} +.output .toolbar .c9-toolbarbutton-glossyDown{ + border: 1px solid transparent !important; + background: rgba(255,255,255, 0.14) !important; +} + +.searchresults .item{ + padding : 3px 3px 3px 5px; +} + +.envcontainer { + box-shadow: 1px 1px 6px 0px rgba(0, 0, 0, 0.08); +} + +.blackdg .ace_wrapper { + background: white; +} + +.keybindings .blackdg .ace_wrapper { + background-color: rgb(239, 239, 239); +} +.console>.hbox>.btn_consoleOver{ + background: #E6E6E6; +} +.console>.hbox>.btn_consoleDown { + background: #E6E6E6; +} +.c9-toolbarbutton-glossyDisabled.light .c9-icon{ + opacity: 0.6; +} +.rbcontainer.themepicker.rbcontainerSelected div:after { + border: 3px solid #D8D8D8; +} + +.ace_scroller.ace_scroll-left > .scroll_shadow { + box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.2) inset !important; +} + +.bar-preferences .blackdg .ace_tree-editor{ + color: #333; + background: rgb(239, 239, 239); +} + +.c9-toolbarbutton-glossy.saving .c9-label, .c9-toolbarbutton-glossy.saved .c9-label { + background-position: 0 -523px; + color: rgb(158, 158, 158); +} +.cbcontainerFocus span { + border: 1px dotted #BBB; +} + +.grouped_checkbox_holder.mount{ + background: #FAFAFA; + border: 1px solid #DEDEDE; +} +.grouped_checkbox_holder.mount .cbcontainerDown, +.grouped_checkbox_holder.mount .cbcontainerChecked { + background: #63acff; +} +.grouped_checkbox_holder.mount .cbcontainer span{ + color: #333 !important; +} + +.has_apf .grouped_checkbox_holder.mount .cbcontainerOver:not(.cbcontainerChecked), +.has_apf .grouped_checkbox_holder.mount .cbcontainerFocus:not(.cbcontainerChecked){ + background: #F0F0F0; +} + +.has_apf .grouped_checkbox_holder.mount .cbcontainerDown span, +.has_apf .grouped_checkbox_holder.mount .cbcontainerChecked span{ + color: white !important; +} + +.language_highlight_occurrence_other, +.language_highlight_occurrence_main { + border-color: #ADADAD; +} + +.bk-window.relative, .bk-window2.relative{ + box-shadow: 0 0 30px rgba(0,0,0,0.2) !important; +} + +.ace_tree.ace_tree_focus .selected .extrainfo{ + color: #FFFFFF; + .font-smoothing(true); +} + +.loading-spinner { + .image-2x("/static/@{pane-button-save-image}", @pane-button-save-image-width, @pane-button-save-image-height); + .animation(~"loading-24-spinner 1.2s steps(24) infinite")!important; +} + +.ace_tree .tree-row .checkbox{ + outline: 1px solid rgba(0, 0, 0, 0.16); + background: white; +} +.ace_tree .tree-row .checkbox.checked{ + background-position: -2px -2px; +} +.ace_tree .tree-row .checkbox.half-checked{ + background-color: #DDDDDD; + background-position: -2px -2px; +} +.top-test-panel{ + border-bottom: 1px solid @border-highlight; +} + +.top-test-panel{ + border-bottom: 1px solid @border-highlight-dark; +} + +.runner-form-header{ + border-bottom: 1px solid @border-highlight-dark; +} + +.dgLikeContaier { + background-color: @element-background; + border: 1px solid @element-background; + box-shadow: none; +} + +.cboffline{ + background: @element-background; + border: 1px solid @element-background; +} +.cboffline:after{ + background: @element-chrome-highlight; + border: 1px solid @element-chrome-highlight; +} +.cbofflineChecked{ + background: @element-background; + border-color: @element-background; +} +.cbofflineChecked:after{ + border-color: @selected-focus-background; + background-color: @selected-focus-background; +} +.cboffline:hover{ + background: @element-background-hover; +} + +.spinner{ + border: 1px solid @element-background; + background: @element-background; +} + +.spinner .buttons .minus{ + font-size: 16px; + padding: 4px 9px; + color: #767676; + border-right: 1px solid @element-border; +} +.spinner .buttons .plus{ + font-size: 15px; + padding: 4px 7px; + color: #767676; + border-left: 1px solid @element-border; +} +.spinner .buttons .minus:hover{ + background: @element-background-hover; + color: #f07272; +} +.spinner .buttons .plus:hover{ + background: @element-background-hover; + color: #98c878; +} + +.searchbox .ace_editor{ + .font-smoothing(true); +} + +.searchbox .ace-tm .ace_marker-layer .ace_selected-word { + display: none; +} +.searchbox .ace-tm .ace_marker-layer .ace_selection { + background: rgb(119, 130, 49); +} +.searchbox .ace-tm .ace_cursor { + color: @textbox-color; +} + +.bar-preferences .taFocus, +.bar-preferences .ta:hover, +.taFocus, .ta:hover, +.searchbox .sbtb_middle:hover, +.searchboxFocus .sbtb_middle, +.bar-preferences .tbsimpleFocus, +.tbsimpleFocus, +.tbsimple:hover{ + background: @element-background-hover; + border-color: transparent; +} + +.panel-bar .searchbox .sbtb_middle{ + background: #232323; +} + +.panel-bar .searchbox .sbtb_middle:hover, +.panel-bar .searchboxFocus .sbtb_middle { + background: #202020; +} + +.has_apf .bar-preferences .blackdg{ + border: 0; +} + +@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) { + +} \ No newline at end of file diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index f0377679..351b97ee 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -488,14 +488,14 @@ body .runner-form-header{ background-position : 0 -126px; } .dark.session_btn.curbtn .tab_middle:before { - -webkit-mask-position : 0 -94px; + -webkit-mask-position : 0 -95px; } .dark.session_btn.curbtn .tab_middle:after, .session_btn.curbtn .tab_middle:after { background-position : -42px -126px; } .dark.session_btn.curbtn .tab_middle:after { - -webkit-mask-position : -42px -94px; + -webkit-mask-position : -42px -95px; } .session_btn.curbtn .tab_shadow:before { background-position : 0 -123px; diff --git a/plugins/c9.ide.login/login.js b/plugins/c9.ide.login/login.js index 817480a5..2f78e138 100644 --- a/plugins/c9.ide.login/login.js +++ b/plugins/c9.ide.login/login.js @@ -137,7 +137,7 @@ define(function(require, exports, module) { function signout() { vfsEndpoint.clearCache(); - auth.logout(function() { location.href = ideBaseUrl; }); + auth.logout(ideBaseUrl); } function onReLogin() { @@ -147,9 +147,7 @@ define(function(require, exports, module) { "Please hit OK to reload the IDE.", function() { vfsEndpoint.clearCache(); - auth.logout(function() { - document.location.reload(); - }); + auth.logout(); }); } } diff --git a/plugins/c9.ide.plugins/debug.js b/plugins/c9.ide.plugins/debug.js index a22de97a..7521580a 100644 --- a/plugins/c9.ide.plugins/debug.js +++ b/plugins/c9.ide.plugins/debug.js @@ -42,7 +42,7 @@ define(function(require, exports, module) { var plugins = []; var ENABLED = c9.location.indexOf("debug=2") > -1; - var HASSDK = experimental.addExperiment("sdk=0", "SDK/Load Custom Plugins");; + var HASSDK = experimental.addExperiment("sdk", false, "SDK/Load Custom Plugins");; var reParts = /^(builders|keymaps|modes|outline|runners|snippets|themes)\/(.*)/; var reModule = /(?:_highlight_rules|_test|_worker|_fold|_behaviou?r)\.js$/; @@ -183,6 +183,9 @@ define(function(require, exports, module) { cfg.staticPrefix = host + join(base, name); cfg.apikey = "0000000000000000000000000000="; + // Set version for package manager + cfg.version = options.version; + config.push(cfg); plugins.push(name + "/" + path); }); diff --git a/plugins/c9.ide.plugins/installer.js b/plugins/c9.ide.plugins/installer.js index bf5d0e61..5e166437 100644 --- a/plugins/c9.ide.plugins/installer.js +++ b/plugins/c9.ide.plugins/installer.js @@ -27,7 +27,7 @@ define(function(require, exports, module) { var plugin = new Plugin("Ajax.org", main.consumes); var emit = plugin.getEmitter(); - var HASSDK = experimental.addExperiment("sdk=0", "SDK/Load Custom Plugins"); + var HASSDK = experimental.addExperiment("sdk", false, "SDK/Load Custom Plugins"); var installing; diff --git a/plugins/c9.ide.plugins/loader.js b/plugins/c9.ide.plugins/loader.js index 6e768f3d..8d4e8f25 100644 --- a/plugins/c9.ide.plugins/loader.js +++ b/plugins/c9.ide.plugins/loader.js @@ -28,8 +28,8 @@ define(function(require, exports, module) { var plugin = new Plugin("Ajax.org", main.consumes); // var emit = plugin.getEmitter(); - var ENABLED = experimental.addExperiment("plugins=0", "SDK/Load Plugins From Workspace"); - var HASSDK = experimental.addExperiment("sdk=0", "SDK/Load Custom Plugins"); + var ENABLED = experimental.addExperiment("plugins", false, "SDK/Load Plugins From Workspace"); + var HASSDK = experimental.addExperiment("sdk", false, "SDK/Load Custom Plugins"); var plugins = options.plugins; var loadFromDisk = options.loadFromDisk diff --git a/plugins/c9.ide.plugins/manager.js b/plugins/c9.ide.plugins/manager.js index f3cdade3..7f88679c 100644 --- a/plugins/c9.ide.plugins/manager.js +++ b/plugins/c9.ide.plugins/manager.js @@ -96,17 +96,19 @@ define(function(require, exports, module) { /***** Initialization *****/ + var ENABLED = c9.location.indexOf("debug=2") > -1 + || experimental.addExperiment("plugin-manager", false, "SDK/Plugin Manager"); + var plugin = new PreferencePanel("Ajax.org", main.consumes, { caption: "Plugin Manager", className: "plugins", form: false, noscroll: true, - index: 200 + index: 200, + visible: ENABLED, }); // var emit = plugin.getEmitter(); - var HASSDK = experimental.addExperiment("sdk=1", "SDK/Load Custom Plugins"); - var model, datagrid, filterbox; var btnUninstall, btnReport, btnReadme, btnCloud9, btnReload; @@ -115,7 +117,7 @@ define(function(require, exports, module) { if (loaded) return false; loaded = true; - if (!HASSDK) return; + if (!ENABLED) return; // @TODO enable/disable plugins -> move to ext diff --git a/plugins/c9.ide.plugins/packages.js b/plugins/c9.ide.plugins/packages.js index a4663e70..310865d1 100644 --- a/plugins/c9.ide.plugins/packages.js +++ b/plugins/c9.ide.plugins/packages.js @@ -31,7 +31,7 @@ define(function(require, exports, module) { var emit = handle.getEmitter(); emit.setMaxListeners(1000); - var HASSDK = experimental.addExperiment("sdk=0", "SDK/Load Custom Plugins"); + var HASSDK = experimental.addExperiment("sdk", false, "SDK/Load Custom Plugins"); function focusOpenPackages(){ var pages = tabs.getTabs(); diff --git a/plugins/c9.ide.preferences/experimental.js b/plugins/c9.ide.preferences/experimental.js index 15d233b0..ceed8501 100644 --- a/plugins/c9.ide.preferences/experimental.js +++ b/plugins/c9.ide.preferences/experimental.js @@ -1,17 +1,16 @@ define(function(require, exports, module) { main.consumes = [ - "PreferencePanel", "ui", "dialog.confirm", "settings", - "preferences", "c9" + "PreferencePanel", "ui", "dialog.alert", "settings", "c9" ]; main.provides = ["preferences.experimental"]; return main; function main(options, imports, register) { var PreferencePanel = imports.PreferencePanel; - var prefs = imports.preferences; var settings = imports.settings; var ui = imports.ui; var c9 = imports.c9; + var alert = imports["dialog.alert"].show; /***** Initialization *****/ @@ -23,7 +22,7 @@ define(function(require, exports, module) { var emit = plugin.getEmitter(); emit.setMaxListeners(1000); - var intro; + var intro, hasAlerted; var loaded = false; function load() { @@ -37,7 +36,6 @@ define(function(require, exports, module) { title: "Introduction", position: 1, node: intro = new ui.bar({ - height: 102, "class" : "intro", style: "padding:12px;position:relative;" }) @@ -52,7 +50,7 @@ define(function(require, exports, module) { intro.$int.innerHTML = '

Experimental Features (reload to apply changes)

Cloud9 is continuously in ' + 'development. New features in alpha or beta are first hidden ' - + 'and can be enabled via this page. Use at your own risk

'; + + 'and can be enabled via this page. Use at your own risk.

'; } /***** Methods *****/ @@ -60,31 +58,37 @@ define(function(require, exports, module) { // =0 means the value should be set to 0 to disable otherwise it is enabled // =1 means the value should be set to 1 to enable otherwise it is disabled var found = {}; - function addExperiment(query, name){ - var key = query.split("="); - var defValue = Number(key[1]); key = key[0]; - var uniqueId = key.replace(/\//g, "-"); + function addExperiment(name, defaultValue, caption){ + var uniqueId = name.replace(/\//g, "-"); - var parts = name.split("/"); + var parts = caption.split("/"); var current, obj = { "Experimental": current = {} }; for (var i = 0; i < parts.length; i++) { current[parts[i]] = current = {}; } current.type = "checkbox"; current.setting = "state/experiments/@" + uniqueId; + current.onchange = function(e){ + if (!hasAlerted) { + alert("Refresh Needed", + "Please Refresh Cloud9 To Activate This Change", + "To see the effect of this change, please refresh Cloud9."); + hasAlerted = true; + } + }; - if (!found[name]) + if (!found[caption]) plugin.add(obj, plugin); - found[name] = true; + found[caption] = true; - settings.setDefaults("state/experiments", [[uniqueId, !defValue]]); + settings.setDefaults("state/experiments", [[uniqueId, Number(defaultValue)]]); // return value from url if present, otherwise return the setting - var idx = c9.location.indexOf(key + "="); + var idx = c9.location.indexOf(name + "="); if (idx !== -1) { - if (c9.location.indexOf(key + "=0") != -1) + if (c9.location.indexOf(name + "=0") != -1) return false; - if (c9.location.indexOf(key + "=1") != -1) + if (c9.location.indexOf(name + "=1") != -1) return true; } @@ -116,7 +120,15 @@ define(function(require, exports, module) { ], /** + * Define a new experimental feature. * + * @param {String} name The internal name of this experiment, e.g. foo + * + * @param {Boolean} defaultValue The default state of this experiment when not configure + * + * @param {String} caption The name of this setting in the UI, e.g. SDK/Plugin Manager + * + * @return {Boolean} true if this experiment is currently enabled */ addExperiment: addExperiment }); diff --git a/plugins/c9.ide.preferences/general.js b/plugins/c9.ide.preferences/general.js index 18114a70..d2293bb5 100644 --- a/plugins/c9.ide.preferences/general.js +++ b/plugins/c9.ide.preferences/general.js @@ -35,7 +35,6 @@ define(function(require, exports, module) { title: "Introduction", position: 1, node: intro = new ui.bar({ - height: 102, "class" : "intro", style: "padding:12px;position:relative;" }) diff --git a/plugins/c9.ide.preferences/preferencepanel.js b/plugins/c9.ide.preferences/preferencepanel.js index b3be9ed0..1aae2292 100644 --- a/plugins/c9.ide.preferences/preferencepanel.js +++ b/plugins/c9.ide.preferences/preferencepanel.js @@ -18,6 +18,7 @@ define(function(require, module, exports) { var caption = options.caption; var noscroll = options.noscroll; var className = options.className || ""; + var visible = options.visible == null || options.visible; var index = options.index || 100; var headings = {}; var subHeadings = {}; @@ -240,6 +241,8 @@ define(function(require, module, exports) { /***** LifeCycle *****/ plugin.on("load", function(){ + if (!visible) return; + navHtml = prefs.addNavigation(caption, index, null, plugin); navHtml.addEventListener("mousedown", function(){ prefs.activate(plugin); diff --git a/plugins/c9.ide.preferences/preferences.css b/plugins/c9.ide.preferences/preferences.css index 74ccdc48..abfc9992 100644 --- a/plugins/c9.ide.preferences/preferences.css +++ b/plugins/c9.ide.preferences/preferences.css @@ -7,7 +7,7 @@ .bar-preferences .navigation{ padding : 15px 0 0 0; - border-right : 1px solid @preferences-nav-border-color; + border-right : @preferences-nav-border; background: @preferences-nav-background; .box-shadow(~"0 1px 0 0 @{preferences-nav-shadow-color} inset"); diff --git a/plugins/c9.ide.preferences/project.js b/plugins/c9.ide.preferences/project.js index bc28a828..20380af9 100644 --- a/plugins/c9.ide.preferences/project.js +++ b/plugins/c9.ide.preferences/project.js @@ -33,7 +33,6 @@ define(function(require, exports, module) { title: "Introduction", position: 1, node: intro = new ui.bar({ - height: 102, "class" : "intro", style: "padding:12px;position:relative;" }) diff --git a/plugins/c9.ide.terminal/aceterm/hover_link.js b/plugins/c9.ide.terminal/aceterm/hover_link.js index d38f554b..2296476e 100644 --- a/plugins/c9.ide.terminal/aceterm/hover_link.js +++ b/plugins/c9.ide.terminal/aceterm/hover_link.js @@ -100,6 +100,9 @@ var HoverLink = function(editor) { }; this.onClick = function(e) { + if (!this.editor.isFocused()) + return; + if (this.link && this.isOpen) { // && this.link.isFocused if (this.editor.selection.isEmpty()) { this.editor.selection.setSelectionRange(this.range); @@ -298,10 +301,10 @@ var HoverLink = function(editor) { match.value = value.replace(/['">)}\].,;:]+$/, ""); } else if (/^[ab]?\//.test(value) && /^([+\-]{3}|diff)/.test(line)) { // diff - match.type = "path"; - match.basePath = ""; - match.start++; - match.value = value.substr(2); + match.type = "path"; + match.basePath = ""; + match.start++; + match.value = value.substr(2); } else if (prompt.command === "git") { // git status var prefix = line.substr(0, match.start); @@ -378,6 +381,9 @@ var HoverLink = function(editor) { }; this.onMouseMove = function(e) { + if (e.shiftKey || e.ctrlKey || e.metaKey || !this.editor.isFocused()) + return this.clear(); + if (this.editor.$mouseHandler.isMousePressed) { if (!this.editor.selection.isEmpty()) this.clear(); diff --git a/plugins/c9.ide.terminal/link_handler.js b/plugins/c9.ide.terminal/link_handler.js index fb744d5c..4543a31f 100644 --- a/plugins/c9.ide.terminal/link_handler.js +++ b/plugins/c9.ide.terminal/link_handler.js @@ -30,7 +30,7 @@ define(function(require, exports, module) { var BASEPATH = options.previewUrl; var plugin = new Plugin("Ajax.org", main.consumes); - var menu, lastLink; + var menuPath, lastLink; var reHome = new RegExp("^" + util.escapeRegExp(c9.home)); @@ -38,17 +38,17 @@ define(function(require, exports, module) { terminal.on("create", function(e) { var ace = e.editor.ace; - if (!ace) - return; + if (!ace) return; + ace.hoverLink = new HoverLink(ace); ace.hoverLink.on("open", showMenu); - }); + }, plugin); - function createMenu(e) { - if (menu) + function createMenu() { + if (menuPath) return; - var submenu = new Menu({ + var submenu = new Menu({ items: [ new MenuItem({ value: "path", caption: "Copy Path" }), new MenuItem({ value: "directory", caption: "Copy Directory" }), @@ -71,9 +71,6 @@ define(function(require, exports, module) { ? "Unable to access via preview" : BASEPATH + info.path }); } - // else if (e.value == "github") { - - // } } }, plugin); @@ -92,10 +89,9 @@ define(function(require, exports, module) { new MenuItem({ caption: "Copy Special", submenu: submenu }), new Divider(), new MenuItem({ value: "reveal", caption: "Reveal in File Tree" }) - // new MenuItem({ caption: "Open in GitHub" }), ]; - menu = new Menu({ + menuPath = new Menu({ items: menuItems, onitemclick: function(e) { var info = buildPath(lastLink, true); @@ -121,91 +117,116 @@ define(function(require, exports, module) { } }, plugin); } + + var menuLink; + function createLinkMenu(){ + menuLink = new Menu({ + items: [ + new MenuItem({ value: "open", caption: "Open" }), + new MenuItem({ value: "open-in-preview", caption: "Open In Preview" }), + new MenuItem({ value: "copy", caption: "Copy" }), + ], + onitemclick: function(e) { + if (e.value == "open") + openLink(lastLink.value); + if (e.value == "open-in-preview") + openLink(lastLink.value, true); + else if (e.value == "copy") + commands.exec("copy", null, { data: lastLink.value }); + } + }, plugin); + } /***** Methods *****/ function showMenu(e) { - if (e.type == "link" && (tabManager.focussedTab || 0).editorType) - return open(e); if (e.action == "open") return open(e); - createMenu(e); - lastLink = e; - menu.once("show", function(){ - var isGit = e && e.command === "git"; - var items = menu.items; - for (var i = 0; i < 6; i++) { - items[i].aml.visible = -1; - items[i][isGit ? "show" : "hide"](); - } - }); + var menu; + if (e.type == "link" && (tabManager.focussedTab || 0).editorType) { + createLinkMenu(); + menu = menuLink; + } + else { + createMenu(); + menuPath.once("show", function(){ + var isGit = e && e.command === "git"; + var items = menuPath.items; + for (var i = 0; i < 6; i++) { + items[i].aml.visible = -1; + items[i][isGit ? "show" : "hide"](); + } + }); + + var ace = e.editor; + menuPath.once("hide", function(){ + ace.selection.clearSelection(); + }); + + menu = menuPath; + } menu.show(e.x, e.y); - - var ace = e.editor; - menu.once("hide", function(){ - ace.selection.clearSelection(); - }); } - function open(e, cb) { - if (typeof e == "string") - e = {type: "path", value: e}; - - if (e.type == "link") { - var href = e.value; - if (!/(https?|ftp|file):/.test(href)) { - href = "http://" + href; - } - href = href.replace(/(^https?:\/\/)(0.0.0.0|localhost)(?=:|\/|$)/, function(_, protocol, host) { - host = c9.hostname || window.location.host; - return protocol + host.replace(/:\d+/, ""); - }); - if (e.metaKey || e.ctrlKey) - window.open(href); - else - commands.exec("preview", null, { path: href }); - } else if (e.type == "path") { - var info = buildPath(e); - var path = info.path; - - var m = /:(\d*)(?::(\d*))?$/.exec(path); - var jump = {}; - if (m) { - if (m[1]) - jump.row = parseInt(m[1], 10) - 1; - if (m[2]) - jump.column = parseInt(m[2], 10); - path = path.slice(0, m.index); - } - - // Make sure home dir is marked correctly - path = path.replace(reHome, "~"); - if (path[0] != "/") path = "/" + path; - - fs.stat(path, function(err, stat) { - if (err) { - return commands.exec("navigate", null, { keyword: path }); - } - if (stat.linkStat) - stat = stat.linkStat; - if (/directory/.test(stat.mime)) { - return tabbehavior.revealtab({path: path}); - } - tabManager.open({ - path: path, - focus: true, - document: { - ace: { - jump: jump - } - } - }, cb); - }); + function openLink(href, inPreview){ + if (!/^(https?|ftp|file):/.test(href)) { + href = "http://" + href; } + href = href.replace(/(^https?:\/\/)(0.0.0.0|localhost)(?=:|\/|$)/, function(_, protocol, host) { + host = c9.hostname || window.location.host; + return protocol + host.replace(/:\d+/, ""); + }); + + if (inPreview) + commands.exec("preview", null, { path: href }); + else + window.open(href); + } + + function open(e) { + if (e.type == "link") + return openLink(e.value); + + var info = buildPath(e); + var path = info.path; + + var m = /:(\d*)(?::(\d*))?$/.exec(path); + var jump = {}; + if (m) { + if (m[1]) + jump.row = parseInt(m[1], 10) - 1; + if (m[2]) + jump.column = parseInt(m[2], 10); + path = path.slice(0, m.index); + } + + // Make sure home dir is marked correctly + path = path.replace(reHome, "~"); + if (path[0] != "/") path = "/" + path; + + fs.stat(path, function(err, stat) { + if (err) { + return commands.exec("navigate", null, { keyword: path }); + } + if (stat.linkStat) + stat = stat.linkStat; + if (/directory/.test(stat.mime)) { + return tabbehavior.revealtab({path: path}); + } + tabManager.open({ + path: path, + focus: true, + document: { + ace: { + jump: jump + } + } + }, function(){}); + }); } function buildPath(e) { diff --git a/plugins/c9.ide.terminal/style.css b/plugins/c9.ide.terminal/style.css index 6df296a9..fae52a81 100644 --- a/plugins/c9.ide.terminal/style.css +++ b/plugins/c9.ide.terminal/style.css @@ -33,10 +33,12 @@ color: #fff; outline: none; } -.c9terminal .c9terminalcontainer.dark .terminal .reverse-video { +.c9terminal .c9terminalcontainer.dark .terminal .reverse-video, +.c9terminal .c9terminalcontainer.flat-dark .terminal .reverse-video{ outline : 1px solid rgba(255,255,255,0.4); } -.c9terminalFocus .c9terminalcontainer.dark .terminal .reverse-video { +.c9terminalFocus .c9terminalcontainer.dark .terminal .reverse-video, +.c9terminalFocus .c9terminalcontainer.flat-dark .terminal .reverse-video { outline: none; background-color: #f0f0f0; color: #000; diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js index f1cf0408..0e7fd763 100644 --- a/plugins/c9.ide.terminal/terminal.js +++ b/plugins/c9.ide.terminal/terminal.js @@ -59,6 +59,7 @@ define(function(require, exports, module) { var defaults = { "flat-light" : ["#eaf0f7", "#000000", "#bed1e3", false], + "flat-dark" : ["#153649", "#FFFFFF", "#515D77", true], "light" : ["rgb(248, 248, 231)", "#000000", "rgb(137, 193, 253)", false], "light-gray" : ["rgb(248, 248, 231)", "#000000", "rgb(137, 193, 253)", false], "dark" : ["#153649", "#FFFFFF", "#515D77", true], @@ -914,11 +915,19 @@ define(function(require, exports, module) { function setTabColor(){ var bg = settings.get("user/terminal/@backgroundColor"); var shade = util.shadeColor(bg, 0.75); - doc.tab.backgroundColor = shade.isLight ? bg : shade.color; + var skinName = settings.get("user/general/@skin"); + var isLight = ~skinName.indexOf("flat") || shade.isLight; + doc.tab.backgroundColor = isLight ? bg : shade.color; - if (shade.isLight) { - doc.tab.classList.remove("dark"); - container.className = "c9terminalcontainer"; + if (isLight) { + if (~skinName.indexOf("flat") && !shade.isLight) { + doc.tab.classList.add("dark"); + container.className = "c9terminalcontainer flat-dark"; + } + else { + doc.tab.classList.remove("dark"); + container.className = "c9terminalcontainer"; + } } else { doc.tab.classList.add("dark"); diff --git a/plugins/c9.ide.tree/style.css b/plugins/c9.ide.tree/style.css index 7137f666..7d23332f 100644 --- a/plugins/c9.ide.tree/style.css +++ b/plugins/c9.ide.tree/style.css @@ -20,7 +20,7 @@ color : @selected-color; } -.filetree .tree-row.projectRoot, .filetree .tree-row:first-child { +.filetree .tree-row.projectRoot:first-child { margin-right: @tree-first-row-margin-right; } diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js index 788068a8..477b0540 100644 --- a/plugins/c9.ide.tree/tree.js +++ b/plugins/c9.ide.tree/tree.js @@ -277,6 +277,7 @@ define(function(require, exports, module) { btnTreeSettings.setAttribute("submenu", mnuFilesSettings); tree.renderer.on("scrollbarVisibilityChanged", updateScrollBarSize); tree.renderer.on("resize", updateScrollBarSize); + tree.renderer.scrollBarV.$minWidth = 10; function updateScrollBarSize() { var scrollBarV = tree.renderer.scrollBarV; var w = scrollBarV.isVisible ? scrollBarV.getWidth() : 0; diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index 0ab3e6f8..959e0d45 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -190,8 +190,11 @@ define(function(require, exports, module) { ? createBind(options.path) : (options.defaultValue || ""), values: options.values, - skin: "cboffline" - // width: "55" + skin: "cboffline", + onafterchange: function(e) { + if (options.onchange) + options.onchange({ value: e.value }); + } }) ]; break; @@ -499,8 +502,8 @@ define(function(require, exports, module) { htmlNode = htmlNode.$int; } // if we have apf node, make sure apf child-parent links do not get broken - if (htmlNode.host && container.host) { - htmlNode.host.insertBefore(container.host, beforeNode && beforeNode.host); + if (htmlNode.host) { + htmlNode.host.insertBefore(container, beforeNode && beforeNode.host); } else { htmlNode.insertBefore(container.$ext, beforeNode || null); } diff --git a/plugins/c9.ide.ui/lib/flexbox.js b/plugins/c9.ide.ui/lib/flexbox.js index f092e5f0..0280092b 100644 --- a/plugins/c9.ide.ui/lib/flexbox.js +++ b/plugins/c9.ide.ui/lib/flexbox.js @@ -406,6 +406,7 @@ apf.vbox = function(struct, tagName) { this.$altExt.appendChild(this.$ext); this.$altExt.style.boxSizing = "border-box"; this.$altExt.style.display = apf.CSS_DISPLAY_FLEX; + this.$altExt.style.flexDirection = this.parentNode.$vbox ? "column" : "row"; this.$altExt.style[apf.CSSPREFIX + "BoxOrient"] = "vertical"; this.$ext.style[apf.CSS_FLEX_PROP] = 1; var size = this.parentNode.$vbox ? "height" : "width"; diff --git a/plugins/c9.ide.watcher/watcher.js b/plugins/c9.ide.watcher/watcher.js index 3e754f4b..471cc838 100644 --- a/plugins/c9.ide.watcher/watcher.js +++ b/plugins/c9.ide.watcher/watcher.js @@ -188,6 +188,7 @@ define(function(require, exports, module) { function fireWatcherEvent(eventSuffix) { if (event == "error") { + if (eventSuffix != ".all") return; // console.error("[watchers] received error for", path, err, stat); } else if (event == "delete") { diff --git a/plugins/c9.static/cdn.cli.js b/plugins/c9.static/cdn.cli.js index e200cdf9..d0e33fa0 100644 --- a/plugins/c9.static/cdn.cli.js +++ b/plugins/c9.static/cdn.cli.js @@ -41,7 +41,7 @@ define(function(require, exports, module) { } var skins = options.withSkins; if (skins === true || skins === "all") - skins = ["dark", "light", "dark-gray", "light-gray", "flat-light"]; + skins = ["dark", "light", "dark-gray", "light-gray", "flat-light", "flat-dark"]; else skins = skins ? skins.split(/,\s*/) : []; diff --git a/plugins/c9.vfs.client/vfs.listener.js b/plugins/c9.vfs.client/vfs.listener.js new file mode 100644 index 00000000..5aae4c2f --- /dev/null +++ b/plugins/c9.vfs.client/vfs.listener.js @@ -0,0 +1,58 @@ +/** + * Listens to pub sub events from the VFS server and reconnects VFS as neccessary + */ +define(function(require, exports, module) { + "use strict"; + + main.consumes = [ + "Plugin", "pubsub", "vfs", "metrics", "vfs.endpoint" + ]; + main.provides = ["vfs.listener"]; + return main; + + function main(options, imports, register) { + var Plugin = imports.Plugin; + var pubsub = imports.pubsub; + var vfs = imports.vfs; + var vfsEndpoint = imports["vfs.endpoint"]; + var metrics = imports.metrics; + + /***** Initialization *****/ + + var plugin = new Plugin("Ajax.org", main.consumes); + + var loaded = false; + function load() { + if (loaded) return false; + loaded = true; + + pubsub.on("message", function(m) { + if (m.type !== "workspace") return; + + if (m.action == "state_changed") { + metrics.increment("vfs.state_changed", 1, true); + + vfsEndpoint.clearCache(); + vfs.reconnect(); + } + }); + } + + /***** Lifecycle *****/ + + plugin.on("load", function() { + load(); + }); + plugin.on("unload", function() { + loaded = false; + }); + + /***** Register and define API *****/ + + plugin.freezePublicAPI({}); + + register(null, { + "vfs.listener": plugin + }); + } +}); \ No newline at end of file diff --git a/plugins/c9.vfs.client/vfs_client.js b/plugins/c9.vfs.client/vfs_client.js index f03bb749..9e11a4d0 100644 --- a/plugins/c9.vfs.client/vfs_client.js +++ b/plugins/c9.vfs.client/vfs_client.js @@ -55,7 +55,6 @@ define(function(require, exports, module) { errorDialog.vfs = plugin; var buffer = []; - var withInstall = options.withInstall; var dashboardUrl = options.dashboardUrl; var region, vfsBaseUrl, homeUrl, projectUrl, pingUrl, serviceUrl; var eioOptions, connection, consumer, vfs; @@ -95,9 +94,7 @@ define(function(require, exports, module) { connection.on("disconnect", onDisconnect); connection.on("connect", onConnect); - reconnect(function(err) { - connection.connect(); - }); + reconnectNow(); function connectEngine() { if (auth.accessToken) { @@ -204,6 +201,12 @@ define(function(require, exports, module) { + (isfile ? "&isfile=1" : "")); } + function reconnectNow() { + reconnect(function(_err) { + connection.connect(); + }); + } + function reconnect(callback) { connection.socket.setSocket(null); @@ -294,10 +297,7 @@ define(function(require, exports, module) { function callback(shouldReconnect) { if (shouldReconnect) { vfsEndpoint.clearCache(); - reconnect(function(err) { - if (err) return console.log(err); - connection.connect(); - }); + reconnectNow(); return; } @@ -384,6 +384,7 @@ define(function(require, exports, module) { rest: rest, download: download, url: vfsUrl, + reconnect: reconnectNow, // File management resolve: vfsCall.bind(null, "resolve"), diff --git a/plugins/c9.vfs.standalone/www/test.html b/plugins/c9.vfs.standalone/www/test.html index 422fbb8a..82cf54fd 100644 --- a/plugins/c9.vfs.standalone/www/test.html +++ b/plugins/c9.vfs.standalone/www/test.html @@ -108,15 +108,26 @@ var tests = []; var stats = this.stats; + mocha.lastReport = null; mocha.report = { stats: stats, tests: tests }; + mocha.getReport = function() { + return { + stats: JSON.parse(JSON.stringify(stats)), + tests: tests.map(clean) + }; + }; runner.on('test end', function(test) { stats.percent = stats.tests / runner.total * 100 | 0; - tests.push(clean(test)); + tests.push(test); }); runner.on('end', function() { - console.log(JSON.stringify(mocha.report, null, 4)); + // tests might generate errors after they finished running + // e.g. using on instead of once can call done second time during app unload + // so we save the report at the time when test runner ended. + mocha.lastReport = mocha.getReport(); + console.log(mocha.report); }); function parseError(err) { @@ -252,7 +263,7 @@ } function getReport() { - return mocha.report; + return mocha.lastReport; } function safeDisconnect(cb) { @@ -293,19 +304,30 @@ c9Test.last = test; mocha.suite.suites.length = 0; - var app = window.app; - if (app && app.services && app.services.ext) - app.services.ext.unloadAllPlugins(); + function unloadApp() { + var app = window.app; + window.app = null; + try { + if (app && app.services && app.services.ext) + app.services.ext.unloadAllPlugins(); + } catch(e) { + callback && callback(e, getReport()); + return e; + } + } + + if (unloadApp()) return; setupDom(test); cleanupRequireModules(); lastDone = function(err, res) { lastDone = null; + if (!onload.remain && unloadApp()) return; callback && callback(err, res || getReport()); }; safeDisconnect(function() { - app = null; + window.app = null; if (typeof test == "function") { test(); if (!running) onload(); diff --git a/plugins/c9.vfs.standalone/www/test.js b/plugins/c9.vfs.standalone/www/test.js index 425e995e..feb439d0 100644 --- a/plugins/c9.vfs.standalone/www/test.js +++ b/plugins/c9.vfs.standalone/www/test.js @@ -8,6 +8,7 @@ require([ "lib/architect/architect" ], function (chai, skin, events, theme, architect) { "use strict"; + chai.Assertion.includeStack = true; // enable stack trace in errors var expect = chai.expect; var EventEmitter = events.EventEmitter; diff --git a/settings/standalone.js b/settings/standalone.js index b36f47b0..b93377d8 100644 --- a/settings/standalone.js +++ b/settings/standalone.js @@ -15,8 +15,9 @@ module.exports = function(manifest, installPath) { var sdk = !manifest.sdk; var win32 = process.platform == "win32"; - if (win32 && process.env.HOME === undefined) { - process.env.HOME = process.env.HOMEDRIVE + process.env.HOMEPATH; + if (win32) { + if (process.env.HOME === undefined) + process.env.HOME = process.env.HOMEDRIVE + process.env.HOMEPATH; if (!/msys\/bin|Git\/bin/.test(process.env.PATH)) process.env.PATH = path.join(process.env.HOME, ".c9", "msys/bin") + ";" + process.env.PATH; }