Style, small fixes, Windows single file
This commit is contained in:
@@ -237,6 +237,7 @@ namespace FileTime.ConsoleUI.App.UI
|
||||
Console.SetCursorPosition(startX, startY + currentY++);
|
||||
|
||||
_coloredRenderer.Write($"{{0,-{elementWidth}}}", _paddingLeft + "<empty>" + _paddingRight);
|
||||
printedItemsCount++;
|
||||
}
|
||||
|
||||
var padding = new string(' ', elementWidth);
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace FileTime.ConsoleUI.App.UI
|
||||
ElementBackground = new BasicColor(Console.BackgroundColor);
|
||||
ElementForeground = new BasicColor(Console.ForegroundColor);
|
||||
ElementSpecialForeground = new BasicColor(ConsoleColor.DarkGreen);
|
||||
SelectedItemForeground = new BasicColor(ConsoleColor.DarkCyan);
|
||||
SelectedItemForeground = new BasicColor(ConsoleColor.DarkYellow);
|
||||
|
||||
ErrorColor = new BasicColor(ConsoleColor.Red);
|
||||
AccentForeground = new BasicColor(ConsoleColor.Green);
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace FileTime.ConsoleUI
|
||||
private static ServiceProvider CreateServiceProvider()
|
||||
{
|
||||
return new ServiceCollection()
|
||||
.AddLogging((builder) => builder.AddConsole().AddDebug())
|
||||
.AddLogging(/* (builder) => builder.AddConsole().AddDebug() */)
|
||||
.AddSingleton<Application>()
|
||||
.AddSingleton<IStyles>(new Styles(IsAnsiColorSupported()))
|
||||
.AddSingleton<IColoredConsoleRenderer, ColoredConsoleRenderer>()
|
||||
|
||||
@@ -48,7 +48,6 @@ namespace FileTime.Providers.Local
|
||||
var pathParts = (IsCaseInsensitive ? path.ToLower() : path).TrimStart(Constants.SeparatorChar).Split(Constants.SeparatorChar);
|
||||
var rootContainer = RootContainers.FirstOrDefault(c => NormalizePath(c.Name) == NormalizePath(pathParts[0]));
|
||||
|
||||
_logger.LogError("No root container found with name '{0}'", path[0]);
|
||||
if (rootContainer == null)
|
||||
{
|
||||
_logger.LogWarning("No root container found with name '{0}'", path[0]);
|
||||
|
||||
Reference in New Issue
Block a user