diff --git a/main/resources/Main-view.css b/main/resources/Main-view.css new file mode 100644 index 0000000000000000000000000000000000000000..69b27c942ddfaa5837d36bc35bb0da6127302174 --- /dev/null +++ b/main/resources/Main-view.css @@ -0,0 +1,8 @@ +.table-view .column-header{ + -fx-background-color: linear-gradient(to top,#33ccff,#ffffff); + -fx-border-width: 0 1 0 0; + -fx-border-color: grey; +} +.table-view .column-header .label{ + -fx-alignment: center-left; +} \ No newline at end of file diff --git a/main/resources/Main-view.fxml b/main/resources/Main-view.fxml index e6135e96abf551464d67f334c61bb548c806dbc7..7548faa396d293a0a8eae497c33018d5ab1fd331 100644 --- a/main/resources/Main-view.fxml +++ b/main/resources/Main-view.fxml @@ -21,7 +21,7 @@ - + @@ -112,14 +112,14 @@ - + - + - - - - + + + + diff --git a/main/src/controller/FileController.java b/main/src/controller/FileController.java index 1c091a073dcf764c1533a7e154d1a759aab2d554..53b2bb819260d087553a3bf03f789e2254c13d1c 100644 --- a/main/src/controller/FileController.java +++ b/main/src/controller/FileController.java @@ -37,7 +37,8 @@ public class FileController { void initialize() { contentField.setText(currentFile.getContent()); if (currentFile.isReadOnly()) { - contentField.setDisable(true); +// contentField.setDisable(true); + contentField.setEditable(false); } } diff --git a/main/src/controller/MainController.java b/main/src/controller/MainController.java index a811dbb90bbfa1c17be66bb5d54a8a64e0872127..0aa5acab6f164aba1b2b8acc36a14d2a21291010 100644 --- a/main/src/controller/MainController.java +++ b/main/src/controller/MainController.java @@ -199,6 +199,8 @@ public class MainController { initTable(); writeDisk(); + // writeDisk(); + pathText.setText("C:\\"); TreeViewIterator.tmpFileExplorer = fileExplorer; TreeViewIterator.tmpPathText = pathText; updatePieChart(diskChart); diff --git a/main/src/controller/RenameController.java b/main/src/controller/RenameController.java index 3a258ad6200e43342b3f2d7d094e768e0c30b3cc..de3b6619d52b335e176c6b9d23bf1fbd307b8cf5 100644 --- a/main/src/controller/RenameController.java +++ b/main/src/controller/RenameController.java @@ -61,8 +61,6 @@ public class RenameController { TreeViewIterator treeViewIterator = new TreeViewIterator(); treeViewIterator.Clear(); treeViewIterator.iterator(tmpFileView); -// String pathName = getAbsPath(currentFile); -// tmpPathText.setText(pathName); Stage stage = (Stage) renameField.getScene().getWindow(); stage.close(); writeDisk();