2
0
Nicolas Cannnasse 8 жил өмнө
parent
commit
341aa61c9b

+ 6 - 0
bin/hide.js

@@ -11410,6 +11410,12 @@ hide_view_FileTree.prototype = $extend(hide_ui_View.prototype,{
 			}
 			}
 		}
 		}
 	}
 	}
+	,getTitle: function() {
+		if(this.state.root == "") {
+			return "Resources";
+		}
+		return this.state.root.split("/").pop();
+	}
 	,onDisplay: function(e) {
 	,onDisplay: function(e) {
 		var _gthis = this;
 		var _gthis = this;
 		if(this.state.opened == null) {
 		if(this.state.opened == null) {

+ 5 - 0
bin/style.css

@@ -53,3 +53,8 @@ a {
 div.lm_close_tab { top : 0px !important; right : 0px !important; width : 20px !important; height : 18px !important; }
 div.lm_close_tab { top : 0px !important; right : 0px !important; width : 20px !important; height : 18px !important; }
 div.lm_close_tab:hover { opacity : 0.7 !important; }
 div.lm_close_tab:hover { opacity : 0.7 !important; }
 
 
+/* JSTree fixes */
+
+.jstree-icon {
+	color : #888 !important;
+}

+ 6 - 0
hide/view/FileTree.hx

@@ -12,6 +12,12 @@ class FileTree extends hide.ui.View<{ root : String, opened : Array<String> }> {
 		return file.indexOf(".") < 0 ? null : EXTENSIONS.get(file.split(".").pop().toLowerCase());
 		return file.indexOf(".") < 0 ? null : EXTENSIONS.get(file.split(".").pop().toLowerCase());
 	}
 	}
 
 
+	override function getTitle() {
+		if( state.root == "" )
+			return "Resources";
+		return state.root.split("/").pop();
+	}
+
 	override function onDisplay( e : Element ) {
 	override function onDisplay( e : Element ) {
 
 
 		if( state.opened == null ) state.opened = [];
 		if( state.opened == null ) state.opened = [];