From 056251df1fd163471f84dd413e43b780a43e7551 Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:00:27 +0200 Subject: [PATCH] Removed key and color of tags --- src/Helpers/Colors.cs | 37 ------------------------------------- src/Pages/Wallets.razor | 2 +- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 src/Helpers/Colors.cs diff --git a/src/Helpers/Colors.cs b/src/Helpers/Colors.cs deleted file mode 100644 index cdb7c680..00000000 --- a/src/Helpers/Colors.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace NodeGuard.Helpers; - -using System; - -public class Colors -{ - private static readonly List CommonColors = new List - { - "#FF6666", // Light Red - "#66FF66", // Light Green - "#6666FF", // Light Blue - "#FFFF66", // Light Yellow - "#66FFFF", // Light Cyan - "#FF66FF", // Light Magenta - "#FFB366", // Light Orange - "#B366FF", // Light Purple - "#D2B48C", // Tan (Light Brown) - "#FFB6C1", // Light Pink - "#CCFF66", // Light Lime - "#66CC99", // Light Teal - "#E6E6FA", // Lavender - "#D9D9D9", // Light Gray - "#F0F0F0", // Very Light Gray (Almost White) - "#CCCCFF", // Light Blue-Gray - "#FF9999", // Light Maroon - "#99CCFF", // Light Navy - "#CCFFCC", // Light Olive - "#C0C0C0" // Silver - }; - - public static string GetColor(int index) - { - // Ensure the index is within the range of available colors - var colorIndex = Math.Abs(index) % CommonColors.Count; - return CommonColors[colorIndex]; - } -} diff --git a/src/Pages/Wallets.razor b/src/Pages/Wallets.razor index 3af8d1d9..91bc3aef 100644 --- a/src/Pages/Wallets.razor +++ b/src/Pages/Wallets.razor @@ -589,7 +589,7 @@ { foreach (var data in tags.Select((tag, i) => new {tag, i})) { - @data.tag.Key:@data.tag.Value + @data.tag.Value } }