Colours are now taken from a .properties file
[jvcard.git] / src / be / nikiroo / jvcard / tui / panes / FileList.java
index dfc3b73114cf3ffda2f2989d74841a1e602a9e69..a59311b86819b1a7983eefb25539d037ac12abf3 100644 (file)
@@ -23,9 +23,6 @@ public class FileList extends MainContentList {
        private List<Card> cards;
 
        public FileList(List<File> files) {
-               super(UiColors.Element.CONTACT_LINE,
-                               UiColors.Element.CONTACT_LINE_SELECTED);
-
                setFiles(files);
        }
 
@@ -72,6 +69,8 @@ public class FileList extends MainContentList {
 
                String name = files.get(index).getName();
 
+               name = StringUtils.sanitize(name, UiColors.getInstance().isUnicode());
+
                count = " " + StringUtils.padString(count, SIZE_COL_1) + " ";
                name = " "
                                + StringUtils.padString(name, width - SIZE_COL_1
@@ -127,9 +126,4 @@ public class FileList extends MainContentList {
 
                return actions;
        }
-
-       @Override
-       public Mode getMode() {
-               return Mode.FILE_LIST;
-       }
 }