Skip to content

Commit 10493b8

Browse files
committed
Rename directory icon to folder icon
1 parent 2de4353 commit 10493b8

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

shellfx-demo/src/main/java/com/techsenger/shellfx/demo/styles/NodeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static Label createSection(String title) {
6161
}
6262

6363
static Button createIconButton(String styleClass) {
64-
var b = new Button(null, new FontIconView(DialogIcons.DIRECTORY));
64+
var b = new Button(null, new FontIconView(DialogIcons.FOLDER));
6565
b.getStyleClass().add(StyleClasses.ICON_BUTTON);
6666
if (styleClass != null) {
6767
b.getStyleClass().add(styleClass);

shellfx-dialogs/src/main/java/com/techsenger/shellfx/dialogs/file/FileChooserDialogFxView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected void updateItem(T item, boolean empty) {
236236
private AppearanceSettings settings;
237237

238238
private Function<T, FontIcon<?>> iconProvider =
239-
(f) -> f.isDirectory() ? DialogIcons.DIRECTORY : DialogIcons.FILE;
239+
(f) -> f.isDirectory() ? DialogIcons.FOLDER : DialogIcons.FILE;
240240

241241
public FileChooserDialogFxView() {
242242
super();

shellfx-dialogs/src/main/java/com/techsenger/shellfx/dialogs/file/FileChooserDialogPresenter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ void onLocationsOpened() {
387387
var segment = segments.get(i);
388388
var segmentUri = UriUtils.resolvePath(previousUri, segment);
389389
var directoryLocation = new Location(
390-
DialogIcons.DIRECTORY,
390+
DialogIcons.FOLDER,
391391
segment,
392392
i + 1,
393393
storage,
@@ -646,7 +646,7 @@ private void updateLocation() {
646646
location = createLocation(storage);
647647
} else {
648648
location = new Location(
649-
DialogIcons.DIRECTORY,
649+
DialogIcons.FOLDER,
650650
segments.get(segments.size() - 1),
651651
segments.size(),
652652
storage,

shellfx-dialogs/src/main/java/com/techsenger/shellfx/dialogs/style/DialogIcons.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public interface DialogIcons {
4646

4747
StyleFontIcon SAVE_AS = new StyleFontIcon("save-as-icon");
4848

49-
StyleFontIcon DIRECTORY = new StyleFontIcon("directory-icon");
49+
StyleFontIcon FOLDER = new StyleFontIcon("folder-icon");
5050

5151
StyleFontIcon FILE = new StyleFontIcon("file-icon");
5252
}

shellfx-icons/src/main/resources/com/techsenger/shellfx/icons/dialogs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
-fx-icon-code: 986364; /* content-save-edit-outline */
6767
}
6868

69-
.font-icon-view.directory-icon {
69+
.font-icon-view.folder-icon {
7070
-fx-icon-code: 983627; /* folder */
7171
}
7272

0 commit comments

Comments
 (0)