From 03f8e7359e15c7d1820332b2a6126a62495ebb77 Mon Sep 17 00:00:00 2001 From: Milad Raeisi Date: Wed, 11 Sep 2024 16:03:26 +0400 Subject: [PATCH] Refactor CSS variables to use existing color variables for consistency and maintainability across root and dark themes. --- src/Angor/Client/Components/Icon.razor | 2 +- src/Angor/Client/Pages/Browse.razor | 2 +- src/Angor/Client/Pages/Founder.razor | 2 +- src/Angor/Client/Pages/Invest.razor | 12 +- src/Angor/Client/Pages/Penalties.razor | 2 +- src/Angor/Client/Pages/Settings.razor | 14 +- src/Angor/Client/Pages/Signatures.razor | 2 +- src/Angor/Client/Pages/View.razor | 2 +- src/Angor/Client/Pages/Wallet.razor | 44 +- .../Client/Shared/NotificationComponent.razor | 2 +- src/Angor/Client/wwwroot/assets/css/app.css | 833 +++-- .../Client/wwwroot/assets/css/dashboard.css | 2858 ++++++++--------- .../wwwroot/assets/icons/angor-logo.svg | 6 +- .../Client/wwwroot/assets/icons/copy.svg | 4 +- .../Client/wwwroot/assets/icons/github.svg | 2 +- .../Client/wwwroot/assets/icons/primary.svg | 2 +- .../Client/wwwroot/assets/icons/receive.svg | 10 +- .../Client/wwwroot/assets/icons/refresh.svg | 4 +- .../Client/wwwroot/assets/icons/send.svg | 10 +- src/Angor/Client/wwwroot/assets/icons/set.svg | 2 +- 20 files changed, 1901 insertions(+), 1914 deletions(-) diff --git a/src/Angor/Client/Components/Icon.razor b/src/Angor/Client/Components/Icon.razor index 315f6ec3..547a628d 100644 --- a/src/Angor/Client/Components/Icon.razor +++ b/src/Angor/Client/Components/Icon.razor @@ -3,7 +3,7 @@ [Parameter] public string IconName { get; set; } [Parameter] public int Width { get; set; } = 32; [Parameter] public int Height { get; set; } = 32; - [Parameter] public string Color { get; set; } = "var(--bs-primary)"; + [Parameter] public string Color { get; set; } = "var(--angor-primary)"; private string svgContent; protected override async Task OnParametersSetAsync() diff --git a/src/Angor/Client/Pages/Browse.razor b/src/Angor/Client/Pages/Browse.razor index 900e35cc..4683095a 100644 --- a/src/Angor/Client/Pages/Browse.razor +++ b/src/Angor/Client/Pages/Browse.razor @@ -66,7 +66,7 @@
- + No projects found.
diff --git a/src/Angor/Client/Pages/Founder.razor b/src/Angor/Client/Pages/Founder.razor index 670d3e36..0b8f5839 100644 --- a/src/Angor/Client/Pages/Founder.razor +++ b/src/Angor/Client/Pages/Founder.razor @@ -53,7 +53,7 @@
- + No projects found.
diff --git a/src/Angor/Client/Pages/Invest.razor b/src/Angor/Client/Pages/Invest.razor index 4df12406..e41d0ea9 100644 --- a/src/Angor/Client/Pages/Invest.razor +++ b/src/Angor/Client/Pages/Invest.razor @@ -67,7 +67,7 @@
- + You already invested. @@ -84,7 +84,7 @@
- + You are the founder. @@ -101,7 +101,7 @@
- + The project was not found. @@ -180,7 +180,9 @@ @if (showCreateModal) { - @@ -217,7 +217,7 @@ @@ -245,7 +245,7 @@
@@ -293,7 +293,7 @@ @@ -359,7 +359,7 @@
@if (showWipeallModal) { diff --git a/src/Angor/Client/Pages/Signatures.razor b/src/Angor/Client/Pages/Signatures.razor index d94e7b0a..373fc319 100644 --- a/src/Angor/Client/Pages/Signatures.razor +++ b/src/Angor/Client/Pages/Signatures.razor @@ -59,7 +59,7 @@
- + No pending signatures yet...
diff --git a/src/Angor/Client/Pages/View.razor b/src/Angor/Client/Pages/View.razor index f3033267..ee8ff572 100644 --- a/src/Angor/Client/Pages/View.razor +++ b/src/Angor/Client/Pages/View.razor @@ -41,7 +41,7 @@
- + @error
diff --git a/src/Angor/Client/Pages/Wallet.razor b/src/Angor/Client/Pages/Wallet.razor index 2f66096f..1542ac43 100644 --- a/src/Angor/Client/Pages/Wallet.razor +++ b/src/Angor/Client/Pages/Wallet.razor @@ -59,7 +59,7 @@
- + No Wallet Found
@@ -118,7 +118,7 @@
+
@@ -620,21 +632,7 @@ else @addressInfo.Address - @{ - // Attempt to get the fiat value from the dictionary - if (fiatValues.TryGetValue(addressInfo.Address, out var fiatValue)) - { - - } - else - { - // Handle missing fiat value - Loading... - } - } + @Money.Satoshis(total).ToUnit(MoneyUnit.BTC) @network.CoinTicker @addressInfo.HdPath @count diff --git a/src/Angor/Client/Shared/NotificationComponent.razor b/src/Angor/Client/Shared/NotificationComponent.razor index 7eab4ef0..8e026005 100644 --- a/src/Angor/Client/Shared/NotificationComponent.razor +++ b/src/Angor/Client/Shared/NotificationComponent.razor @@ -49,7 +49,7 @@ Error - +