Move markup to resources in list-encodings command.

This commit is contained in:
2025-08-18 14:55:54 +01:00
parent d346b32905
commit 00581f7bd2
2 changed files with 4 additions and 5 deletions

View File

@@ -513,7 +513,7 @@ In you are unsure, please press N to not continue.</value>
<value>No partitions found, not searching for filesystems</value> <value>No partitions found, not searching for filesystems</value>
</data> </data>
<data name="Title_Name" xml:space="preserve"> <data name="Title_Name" xml:space="preserve">
<value>Name</value> <value>[bold][darkgreen]Name[/][/]</value>
</data> </data>
<data name="Title_Type" xml:space="preserve"> <data name="Title_Type" xml:space="preserve">
<value>Type</value> <value>Type</value>
@@ -528,7 +528,7 @@ In you are unsure, please press N to not continue.</value>
<value>{0} sectors, {1} bytes</value> <value>{0} sectors, {1} bytes</value>
</data> </data>
<data name="Title_Description" xml:space="preserve"> <data name="Title_Description" xml:space="preserve">
<value>Description</value> <value>[bold][slateblue1]Description[/][/]</value>
</data> </data>
<data name="Identifying_filesystems" xml:space="preserve"> <data name="Identifying_filesystems" xml:space="preserve">
<value>Identifying filesystems...</value> <value>Identifying filesystems...</value>

View File

@@ -36,7 +36,6 @@ using Aaru.CommonTypes.Enums;
using Aaru.Core; using Aaru.Core;
using Aaru.Localization; using Aaru.Localization;
using Aaru.Logging; using Aaru.Logging;
using Serilog;
using Spectre.Console; using Spectre.Console;
using Spectre.Console.Cli; using Spectre.Console.Cli;
@@ -74,8 +73,8 @@ sealed class ListEncodingsCommand : Command<ListEncodingsCommand.Settings>
})); }));
Table table = new(); Table table = new();
table.AddColumn(new TableColumn(new Markup($"[bold][darkgreen]{UI.Title_Name}[/][/]").Centered())); table.AddColumn(new TableColumn(new Markup(UI.Title_Name).Centered()));
table.AddColumn(new TableColumn(new Markup($"[bold][slateblue1]{UI.Title_Description}[/][/]").Centered())); table.AddColumn(new TableColumn(new Markup(UI.Title_Description).Centered()));
table.Border(TableBorder.Rounded); table.Border(TableBorder.Rounded);
table.BorderColor(Color.Yellow); table.BorderColor(Color.Yellow);