Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update XML

  • Loading branch information...
commit e60e9c60a0f39c74a8fec07432086446599a0afe 1 parent 4bb90cc
@gjtorikian gjtorikian authored
View
BIN  plugins-client/ext.main/style/icons/file_tree/file_tree.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
52 plugins-client/ext.main/style/skins.xml
@@ -12137,9 +12137,9 @@
font-size : 11px;
display:block;
position:relative;
- overflow:hidden;
+ overflow:visible;
height:16px;
- padding:1px 0 0 23px;
+ padding:1px 0 0 20px;
text-decoration:none;
white-space: nowrap;
}
@@ -12285,6 +12285,54 @@
.filemgr-tree .syncing_added, .filemgr-tree .syncing_added.selected{
opacity : 0.5;
}
+
+ /* Single sprite for tree file icons; if you ever add a new one, make sure it's 16px by 16px !!! */
+
+ .filemgr-tree div.page_white_wrench div.label-content label,
+ .filemgr-tree div.page_white_text div.label-content label,
+ .filemgr-tree div.page_white_ruby div.label-content label,
+ .filemgr-tree div.page_white_picture div.label-content label,
+ .filemgr-tree div.page_white_php div.label-content label,
+ .filemgr-tree div.page_white_h div.label-content label,
+ .filemgr-tree div.page_white_go div.label-content label,
+ .filemgr-tree div.page_white_flash div.label-content label,
+ .filemgr-tree div.page_white_cup div.label-content label,
+ .filemgr-tree div.page_white_csharp div.label-content label,
+ .filemgr-tree div.page_white_cplusplus div.label-content label,
+ .filemgr-tree div.page_white_coldfusion div.label-content label,
+ .filemgr-tree div.page_white_code_red div.label-content label,
+ .filemgr-tree div.page_white_code div.label-content label,
+ .filemgr-tree div.page_white_c div.label-content label,
+ .filemgr-tree div.page_white_actionscript div.label-content label,
+ .filemgr-tree div.page_white_acrobat div.label-content label,
+ .filemgr-tree div.page_white div.label-content label,
+ .filemgr-tree div.image div.label-content label,
+ .filemgr-tree div.html div.label-content label,
+ .filemgr-tree div.folder div.label-content label,
+ .filemgr-tree div.css div.label-content label{background-image:url('icons/file_tree/file_tree.png');background-repeat:no-repeat}
+ .filemgr-tree div.page_white_wrench div.label-content label{background-position:0px 0px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_text div.label-content label{background-position:-16px 0px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_ruby div.label-content label{background-position:0px -16px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_picture div.label-content label{background-position:-16px -16px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_php div.label-content label{background-position:-32px 0px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_h div.label-content label{background-position:-32px -16px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_go div.label-content label{background-position:0px -32px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_flash div.label-content label{background-position:-16px -32px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_cup div.label-content label{background-position:-32px -32px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_csharp div.label-content label{background-position:-48px 0px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_cplusplus div.label-content label{background-position:-48px -16px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_coldfusion div.label-content label{background-position:-48px -32px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_code_red div.label-content label{background-position:0px -48px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_code div.label-content label{background-position:-16px -48px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_c div.label-content label{background-position:-32px -48px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_actionscript div.label-content label{background-position:-48px -48px;width:16px;height:16px;}
+ .filemgr-tree div.page_white_acrobat div.label-content label{background-position:-64px 0px;width:16px;height:16px;}
+ .filemgr-tree div.page_white div.label-content label{background-position:-64px -16px;width:16px;height:16px;}
+ .filemgr-tree div.image div.label-content label{background-position:-64px -32px;width:16px;height:16px;}
+ .filemgr-tree div.html div.label-content label{background-position:-64px -48px;width:16px;height:16px;}
+ .filemgr-tree div.folder div.label-content label{background-position:0px -64px;width:16px;height:16px;}
+ .filemgr-tree div.css div.label-content label{background-position:-16px -64px;width:16px;height:16px;}
+
]]></a:style>
<a:style condition="apf.isChrome || apf.isSafari"><![CDATA[
.filemgr-tree .item LABEL .caption {
View
54 plugins-client/ext.newresource/newresource.xml
@@ -19,14 +19,20 @@
margin = "10 10 10 10"
caption = "[@caption]"
icon = "[@icon]"
- class = "noscrollbar"
+ class = "noscrollbar newFileTemplate"
scrollbar = "sbShared 12 12 55"
each = "item"
- eachvalue = "[@value]"
- style = "overflow:hidden"
+ eachvalue = "[@name]"
+ style = "overflow:hidden; background: white; border: 1px white"
+ skin = "tree"
onafterchoose = "
btnFileTemplateSave.dispatchEvent('click');
- " />
+ ">
+ <a:each match="[item]">
+ <a:caption value="[@caption]" />
+ <a:css match="[item]" value="{require('core/util').getFileIcon(%[.])}" />
+ </a:each>
+ </a:list>
<a:hbox pack="end" padding="7" edge="10">
<a:button id="btnFileTemplateSave" width="80" default="2"
class="btn-green" skin="btn-default-css3" caption="Create"
@@ -45,9 +51,9 @@
<a:model id="mdlFileTemplates">
<templates>
- <item value="txt" icon="page_white_text.png" caption="Text file"><![CDATA[]]></item>
- <item value="js" icon="page_white_code.png" caption="JavaScript file"><![CDATA[]]></item>
- <item value="js" icon="page_white_code.png" caption="Unit Test"><![CDATA["use strict";
+ <item name=".txt" icon="file_tree/file_tree.png" css="page_white_text" caption="Text file"><![CDATA[]]></item>
+ <item name=".js" icon="file_tree/file_tree.png" css="page_white_code" caption="JavaScript file"><![CDATA[]]></item>
+ <item name=".js" icon="file_tree/file_tree.png" css="page_white_code" caption="Unit Test"><![CDATA["use strict";
require("./support/paths");
var assert = require("assert");
@@ -64,9 +70,9 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
}]]></item>
- <item value="stest" icon="page_white_code.png" caption="Selenium Test"><![CDATA[{}]]></item>
- <item value="coffee" icon="page_white_code.png" caption="CoffeeScript file"><![CDATA[]]></item>
- <item value="html" icon="html.png" caption="HTML file"><![CDATA[<!DOCTYPE html>
+ <item name=".stest" icon="file_tree/file_tree.png" css="page_white_code" caption="Selenium Test"><![CDATA[{}]]></item>
+ <item name=".coffee" icon="file_tree/file_tree.png" css="page_white_code" caption="CoffeeScript file"><![CDATA[]]></item>
+ <item name=".html" icon="file_tree/file_tree.png" css="html" caption="HTML file"><![CDATA[<!DOCTYPE html>
<html>
<head>
<title> </title>
@@ -76,24 +82,24 @@ if (typeof module !== "undefined" && module === require.main) {
</body>
</html>
]]></item>
- <item value="xml" icon="page_white_code_red.png" caption="XML file"><![CDATA[]]></item>
- <item value="xq" icon="page_white_code.png" caption="XQuery file"><![CDATA[xquery version "1.0";
+ <item name=".xml" icon="file_tree/file_tree.png" css="page_white_code_red" caption="XML file"><![CDATA[]]></item>
+ <item name=".xq" icon="file_tree/file_tree.png" css="page_white_code" caption="XQuery file"><![CDATA[xquery version "1.0";
let $message := "Hello World!"
return <results>
<message>{$message}</message>
</results>]]></item>
- <item value="css" icon="css.png" caption="CSS file"><![CDATA[]]></item>
- <item value="scss" icon="css.png" caption="SCSS file"><![CDATA[]]></item>
- <item value="svg" icon="page_white_picture.png" caption="SVG file"><![CDATA[]]></item>
- <item value="py" icon="script_code.png" caption="Python file"><![CDATA[]]></item>
- <item value="php" icon="page_white_php.png" caption="PHP file"><![CDATA[<?php
+ <item name=".css" icon="file_tree/file_tree.png" css="css" caption="CSS file"><![CDATA[]]></item>
+ <item name=".scss" icon="file_tree/file_tree.png" css="css" caption="SCSS file"><![CDATA[]]></item>
+ <item name=".svg" icon="file_tree/file_tree.png" css="page_white_picture" caption="SVG file"><![CDATA[]]></item>
+ <item name=".py" icon="file_tree/file_tree.png" css="page_white_code" caption="Python file"><![CDATA[]]></item>
+ <item name=".php" icon="file_tree/file_tree.png" css="page_white_php" caption="PHP file"><![CDATA[<?php
?>]]></item>
- <item value="rb" icon="page_white_ruby.png" caption="Ruby file"><![CDATA[]]></item>
- <item value="mli" icon="page_white_code.png" caption="OCaml file"><![CDATA[]]></item>
- <item value="clj" icon="page_white_code.png" caption="Clojure file"><![CDATA[]]></item>
- <item value="md" icon="page_white_text.png" caption="Markdown"><![CDATA[]]></item>
- <item value="js" icon="page_white_code.png" caption="Express file"><![CDATA[// *******************************************************
+ <item name=".rb" icon="file_tree/file_tree.png" css="page_white_ruby" caption="Ruby file"><![CDATA[]]></item>
+ <item name=".mli" icon="file_tree/file_tree.png" css="page_white_code" caption="OCaml file"><![CDATA[]]></item>
+ <item name=".clj" icon="file_tree/file_tree.png" css="page_white_code" caption="Clojure file"><![CDATA[]]></item>
+ <item name=".md" icon="file_tree/file_tree.png" css="page_white_text" caption="Markdown"><![CDATA[]]></item>
+ <item name=".js" icon="file_tree/file_tree.png" css="page_white_code" caption="Express file"><![CDATA[// *******************************************************
// expressjs template
//
// assumes: npm install express
@@ -125,7 +131,7 @@ app.configure('production', function(){
});
// *******************************************************
]]></item>
- <item value="js" icon="page_white_code.png" caption="Node.js web server"><![CDATA[var http = require('http');
+ <item name=".js" icon="file_tree/file_tree.png" css="page_white_code" caption="Node.js web server"><![CDATA[var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World from Cloud9\n');
@@ -134,4 +140,4 @@ http.createServer(function (req, res) {
</item>
</templates>
</a:model>
-</a:application>
+</a:application>
View
4 plugins-client/ext.openfiles/openfiles.xml
@@ -45,8 +45,8 @@
skin = "tree">
<a:each match="[file]" sort="[@name]" sort-method="filesort">
<a:caption match="[@name]" value="{([../@changed] == 1 ? '*' : '') + [.] + (cbShowFiles.checked ? ' - ' + [../@path].split('/').slice(-2).join('/') : '')}" />
- <a:icon match="[folder|project]" value="folder.png" />
- <a:icon match="[file]" value="{require('core/util').getFileIcon(%[.])}" />
+ <a:css match="[project|file|folder]" value="{require('core/util').getFileIcon(%[.])}" />
+ <a:icon match="[project|file|folder]" value="{require('core/ide').staticPrefix}/ext/main/style/icons/file_tree/file_tree.png" />
</a:each>
<a:remove match="[file|folder]" />
</a:list>
View
7 plugins-client/ext.save/save.xml
@@ -101,12 +101,7 @@
match = "[folder]"
get = "{location.host &amp;&amp; davProject.readdir([@path])}" />
<a:caption match="[@name]" />
- <a:icon
- match = "[folder]"
- value = "folder.png" />
- <a:icon
- match = "[file]"
- value = "{require('core/util').getFileIcon(%[.])}" />
+ <a:css match="[project|file|folder]" value="{require('core/util').getFileIcon(%[.])}" />
<a:css match="[file]" value="file_item"></a:css>
</a:each>
<a:add type="folder" get="{davProject.mkdir([@path], 'New Folder')}" />
View
3  plugins-client/ext.tree/tree.xml
@@ -38,11 +38,10 @@
<a:each match="[project|file|folder]" sort="[@name]" sort-method="filesort">
<a:insert match="[folder]" get="{davProject.readdir(%[.].getAttribute('path'))}" />
<a:caption match="[@name]" value="{([../@changed] == 1 ? '*' : '') + [.]}" />
- <a:icon match="[folder|project]" value="folder.png" />
<a:selectable match="[folder|file[not(@type='fileupload')]]" />
<a:icon match="[file[@type='fileupload']]" value="file-tree-load-spinner.gif" />
<a:css match="[file[@type='fileupload']]" value="fileupload" />
- <a:icon match="[file]" value="{require('core/util').getFileIcon(%[.])}" />
+ <a:css match="[project|file|folder]" value="{require('core/util').getFileIcon(%[.])}" />
</a:each>
<a:add type="folder" get="{davProject.mkdir(%[.].getAttribute('path'), 'New Folder')}" />
Please sign in to comment.
Something went wrong with that request. Please try again.