private string FancyEntryWithFileFlag(CatalogEntry entry) { bool isFile = IsFile(entry.codePrefix, out string path, out bool isImage); //Color bg = isFile ? (isImage ? Color.DodgerBlue : Color.OrangeRed) : Color.FromArgb(12, 12, 12); return(entry.FancifyEntry(isFile, -3) + (isFile ? PC.Format($"{{{(isImage ? 0 : -2)}}}", " <\u25A0>") : "")); }
public string FancifyEntry(bool over = false, int number = 0) { PastelConsole PC = new PastelConsole(ColourPalette.MarineFields); return(PC.Format($"{{-2}} {{{(over?number:Math.Max(codePrefix.Depth - 1,0))}}}", codePrefix, name ?? String.Empty)); }