diff --git a/static/css/fonts/icomoon.eot b/static/css/fonts/icomoon.eot
index 1a3ccea..ea91e38 100644
Binary files a/static/css/fonts/icomoon.eot and b/static/css/fonts/icomoon.eot differ
diff --git a/static/css/fonts/icomoon.svg b/static/css/fonts/icomoon.svg
index 5f45e48..f18bbd3 100644
--- a/static/css/fonts/icomoon.svg
+++ b/static/css/fonts/icomoon.svg
@@ -3,27 +3,50 @@
\ No newline at end of file
diff --git a/static/css/fonts/icomoon.ttf b/static/css/fonts/icomoon.ttf
index 512376e..d04686d 100644
Binary files a/static/css/fonts/icomoon.ttf and b/static/css/fonts/icomoon.ttf differ
diff --git a/static/css/fonts/icomoon.woff b/static/css/fonts/icomoon.woff
index 4d690a7..43f093b 100644
Binary files a/static/css/fonts/icomoon.woff and b/static/css/fonts/icomoon.woff differ
diff --git a/static/css/themes/black.css b/static/css/themes/black.css
index ca0c2e0..cf0c49e 100644
--- a/static/css/themes/black.css
+++ b/static/css/themes/black.css
@@ -32,10 +32,10 @@
.font-ico {
color: rgba(255, 255, 255, 0.5);
- text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.57);
}
-.font-ico:hover {
+.font-ico:hover,
+.frame li:hover .font-ico {
color: #e1e1e1;
}
@@ -50,18 +50,21 @@
text-shadow: #292a2b 0px 1px 0px;
}
-.menu > ul > li > span:hover {
- background-color: #333333;
- box-shadow: 1px -1px 0 0 #000000, -1px 0 0 0 #000000, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
- color: #d4d4d4;
-}
-
+.menu > ul > li > span:hover,
.menu > ul > li > span.selected {
background-color: #494949;
color: #d4d4d4;
box-shadow: 1px 0 0 0 #000000 inset, 1px 0 0 0 #000000, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
}
+#buildRun {
+ background-color: #494949;
+ box-shadow: 1px 0 0 0 #000000 inset, 1px 0 0 0 #000000, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
+ color: #6DB14C;
+ padding: 1px 5px;
+ border-radius: 3px;
+}
+
.frame {
color: #f1f1f1;
border: 1px solid #00040a;
diff --git a/static/css/themes/default.css b/static/css/themes/default.css
index 2cda064..54b3291 100644
--- a/static/css/themes/default.css
+++ b/static/css/themes/default.css
@@ -32,7 +32,8 @@
color: #666;
}
-.font-ico:hover {
+.font-ico:hover,
+.frame li:hover .font-ico {
color: #333;
}
@@ -47,17 +48,19 @@
text-shadow: 0px 1px 0px #efefef;
}
-.menu > ul > li > span:hover {
+.menu > ul > li > span:hover,
+.menu > ul > li > span.selected {
background-color: #cfcfcf;
- box-shadow: 1px -1px 0 0 #b6b6b6, -1px 0 0 0 #b6b6b6, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
+ box-shadow: 1px 0 0 0 #b6b6b6 inset, 1px 0 0 0 #b6b6b6, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
color: #393939;
}
-.menu > ul > li > span.selected {
- background-color: #3875D7;
- color: #FFF;
+#buildRun {
+ background-color: #cfcfcf;
box-shadow: 1px 0 0 0 #b6b6b6 inset, 1px 0 0 0 #b6b6b6, 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
+ color: #6DB14C;
+ padding: 1px 5px;
+ border-radius: 3px;
}
.frame {
@@ -70,7 +73,6 @@
.zeroclipboard-is-hover {
background-color: #3875D7;
color: #FFF;
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.frame li.disabled:hover {
diff --git a/static/css/wide.css b/static/css/wide.css
index df2d63a..1adf224 100644
--- a/static/css/wide.css
+++ b/static/css/wide.css
@@ -36,42 +36,130 @@
line-height: 20px;
}
-.ico-play:before {
+.ico-moveup:before {
+ content: "\f148";
+}
+
+.ico-movedown:before {
+ content: "\f149";
+}
+
+.ico-keyboard:before {
+ content: "\f11c";
+}
+
+.ico-findfiles:before {
+ content: "\e603";
+}
+
+.ico-find:before {
+ content: "\e602";
+}
+
+.ico-editor:before {
+ content: "\e604";
+}
+
+.ico-tree:before {
+ content: "\e600";
+}
+
+.ico-build:before {
+ content: "\e601";
+}
+
+.ico-notification:before {
+ content: "\e607";
+}
+
+.ico-report:before {
content: "\e605";
}
+.ico-comment:before {
+ content: "\e620";
+}
+
+.ico-goline:before {
+ content: "\e61e";
+}
+
+.ico-info:before {
+ content: "\e61d";
+}
+
+.ico-signup:before {
+ content: "\e606";
+}
+
+.ico-signout:before {
+ content: "\e618";
+}
+
+.ico-redo:before {
+ content: "\e615";
+}
+
+.ico-undo:before {
+ content: "\e60e";
+}
+
+.ico-about:before {
+ content: "\e60d";
+}
+
+.ico-import:before {
+ content: "\f0ee";
+}
+
+.ico-export:before {
+ content: "\f0ed";
+}
+
+.ico-refresh:before {
+ content: "\f021";
+}
+
+.ico-remove:before {
+ content: "\e60b";
+}
+
.ico-save:before {
content: "\f0c7";
}
.ico-max:before {
- content: "\f096";
+ content: "\e609";
}
.ico-format:before {
- content: "\e60b";
+ content: "\e612";
}
.ico-buildrun:before {
- content: "\e607";
-}
-
-.ico-stop:before {
- content: "\e608";
-}
-
-.ico-restore:before {
content: "\e60c";
}
+.ico-stop:before {
+ content: "\e60f";
+}
+
+.ico-restore:before {
+ content: "\e613";
+}
+
+.toolbars .ico-restore:before {
+ content: "\e60a";
+}
+
.ico-min:before {
- content: "\e60d";
+ content: "\e614";
position: absolute;
right: 5px;
}
.ico-close:before {
- content: "\e60a";
+ content: "\e611";
}
/* end ico */
@@ -89,9 +177,10 @@
cursor: pointer;
}
-.frame li.disabled {
+.frame li.disabled,
+.frame li.disabled .font-ico,
+.frame li.disabled:hover .font-ico {
color: #999;
- text-shadow: 0 0 0 !important;
}
.frame a {
@@ -103,6 +192,19 @@
.frame a:hover {
color: #FFF;
}
+
+.frame .space {
+ display: inline-block;
+ width: 20px;
+ height: 15px;
+}
+
+.frame .font-ico {
+ margin-right: 5px;
+ width: 15px;
+ display: inline-block;
+ text-align: center;
+}
/* end frame */
/* start tabs */
diff --git a/static/js/editors.js b/static/js/editors.js
index 40a8b61..2f199a7 100644
--- a/static/js/editors.js
+++ b/static/js/editors.js
@@ -193,7 +193,6 @@ var editors = {
'find', 'find-next', 'find-previous', 'replace', 'replace-all',
'format', 'autocomplete', 'jump-to-decl', 'expr-info', 'find-usages', 'toggle-comment',
'edit']);
- $(".toolbars").hide();
}
if (!nextId) {
@@ -697,7 +696,6 @@ var editors = {
},
// 新建一个编辑器 Tab,如果已经存在 Tab 则切换到该 Tab.
newEditor: function (data, cursor) {
- $(".toolbars").show();
var id = wide.curNode.tId;
editors.tabs.add({
diff --git a/static/js/tabs.js b/static/js/tabs.js
index f5ff09c..36c31ec 100644
--- a/static/js/tabs.js
+++ b/static/js/tabs.js
@@ -74,7 +74,7 @@ $.extend(Tabs.prototype, {
$tabs = this.obj._$tabs;
$tabs.append('
'
- + data.title + '
');
+ + data.title + ' ');
$tabsPanel.append('' + data.content
+ '
');
diff --git a/static/js/tree.js b/static/js/tree.js
index f9328fc..7efe271 100644
--- a/static/js/tree.js
+++ b/static/js/tree.js
@@ -252,9 +252,9 @@ var tree = {
}).show();
} else { // 右击了目录
if (wide.curNode.removable) {
- $dirRMenu.find(".remove, .rename").removeClass("disabled");
+ $dirRMenu.find(".remove").removeClass("disabled");
} else {
- $dirRMenu.find(".remove, .rename").addClass("disabled");
+ $dirRMenu.find(".remove").addClass("disabled");
}
if (wide.curNode.creatable) {
diff --git a/views/index.html b/views/index.html
index 533aa2b..b2533f1 100644
--- a/views/index.html
+++ b/views/index.html
@@ -42,14 +42,17 @@
-
+
{{.i18n.save_all_files}}
Shift-Ctrl-S
-
+
{{.i18n.close_all_files}}
-
+
{{.i18n.exit}}
@@ -61,54 +64,64 @@
-
+
{{.i18n.undo}}
Ctrl-Z
-
+
{{.i18n.redo}}
Ctrl-Y
-
+
{{.i18n.select_all}}
Ctrl-A
-
+
{{.i18n.select_identifier}}
Shift-Alt-J
-
+
{{.i18n.goto_line}}
Ctrl-L
-
+
{{.i18n.delete_line}}
Ctrl-E
-
+
{{.i18n.copy_lines_up}}
Shift-Ctrl-Up
-
+
{{.i18n.copy_lines_down}}
Shift-Ctrl-Down
-
+
{{.i18n.move_lines_up}}
Shift-Alt-Up
-
+
{{.i18n.move_lines_down}}
Shift-Alt-Down
@@ -121,33 +134,39 @@
-
+
{{.i18n.format}}
Ctrl-Shift-F
-
+
{{.i18n.autocomplete}}
Ctrl-\
-
+
{{.i18n.jump_to_decl}}
Ctrl-B
-
+
{{.i18n.show_expr_info}}
Ctrl-I
-
+
{{.i18n.find_usages}}
Alt-F7
@@ -159,37 +178,44 @@
-
+
{{.i18n.goto_file}}
Shift-Alt-O
-
+
{{.i18n.find_in_files}}
Ctrl-F
-
+ onclick="if (!$(this).hasClass('disabled')){wide.curEditor.execCommand('find'); }">
+
{{.i18n.find}}
Ctrl-F
-
+ onclick="if (!$(this).hasClass('disabled')){wide.curEditor.execCommand('findNext'); }">
+
{{.i18n.find_next}}
Ctrl-G
-
+ onclick="if (!$(this).hasClass('disabled')){wide.curEditor.execCommand('findPrev'); }">
+
{{.i18n.find_previous}}
Shift-Ctrl-G
-
+ onclick="if (!$(this).hasClass('disabled')){wide.curEditor.execCommand('replace'); }">
+
{{.i18n.replace}}
Shift-Ctrl-F
-
+ onclick="if (!$(this).hasClass('disabled')){wide.curEditor.execCommand('replaceAll'); }">
+
{{.i18n.replace_all}}
Shift-Ctrl-R
@@ -201,22 +227,27 @@
-
+
{{.i18n.focus_editor}}
Ctrl-0
-
+
{{.i18n.focus_file_tree}}
Ctrl-1
-
+
{{.i18n.focus_output}}
Ctrl-4
-
+
{{.i18n.focus_search}}
Ctrl-5
-
+
{{.i18n.focus_notification}}
Ctrl-6
@@ -228,22 +259,27 @@
-
+
{{.i18n.build}}
F5
-
+
{{.i18n.build_n_run}}
F6
-
+
{{.i18n.test}}
-
+
{{.i18n.goget}}
-
+
{{.i18n.goinstall}}
@@ -266,6 +302,7 @@
@@ -279,26 +316,32 @@
-
+
{{.i18n.wide_doc}}
-
+
{{.i18n.report_issues}}
-
+
{{.i18n.keyboard_shortcuts}}
-
+
{{.i18n.start_page}}
-
+
{{.i18n.about}}
+
@@ -316,24 +359,44 @@
@@ -341,10 +404,7 @@