From 09b1e535e41c53e19a7215b89b66d663d75f0ebb Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Nov 2026 17:08:09 +0800 Subject: [PATCH] fix(user-center): use the reference colour sprites on the balance and points cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both asset cards opened with the same solid `fa-money-bill` glyph, so the wallet and the points card showed an identical icon and neither matched the reference, which pairs a blue wallet mark with the balance card and an orange coin mark with the points card. The theme already ships both sprites — the header wallet popover and the user center sidebar resolve to `jiosvg-money-color-2` and `jiosvg-points-color` through the same helper. Only these two cards were still on Font Awesome. Swapping them keeps one icon family across the user center; the existing `em12 mr6` sizing carries over unchanged because `svg` is 1em tall. The wallet/points icon contract test now pins both keys and fails if either card falls back to `fa-money-bill` or `fa-coins`. Verification: rendered both cards through a PHP stub and screenshotted them against the real theme stylesheet — the blue wallet and orange coin render at the same optical size as the labels. 861 widget/navigation tests pass. --- .../user-center-renderers/credits-balance.php | 2 +- .../user-center-renderers/credits-wallet.php | 2 +- .../user-center-sidebar-icons-contract.test.cjs | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/inc/helpers/user-center-renderers/credits-balance.php b/inc/helpers/user-center-renderers/credits-balance.php index 77db8631..138396da 100644 --- a/inc/helpers/user-center-renderers/credits-balance.php +++ b/inc/helpers/user-center-renderers/credits-balance.php @@ -32,7 +32,7 @@ $points_signin_label = sprintf(__('签到领%s', 'jio'), $currency);
- +
diff --git a/inc/helpers/user-center-renderers/credits-wallet.php b/inc/helpers/user-center-renderers/credits-wallet.php index 0d1c1b01..36b0e33d 100644 --- a/inc/helpers/user-center-renderers/credits-wallet.php +++ b/inc/helpers/user-center-renderers/credits-wallet.php @@ -66,7 +66,7 @@ $mark = (string) ($charge_view['currency_mark'] ?? '元');
- +