From 9e2737e6736f9dd582d083c6d6fd669a28a99316 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jun 2026 19:39:50 -0700 Subject: Add dark mode; gift amount unit toggle; multi-input gifts - Dark mode: theme variables + a footer "Dark mode/Light mode" toggle, persisted and applied pre-paint via a small head script (defaults to the OS preference). Hardcoded surfaces moved to CSS variables. - Gift amount: the unit label is now the clickable sats/BTC toggle, and the amount is parsed in the selected unit. - Gifts can now span multiple coins: createGift selects several confirmed coins (first input SIGHASH_SINGLE to lock the change, the rest SIGHASH_NONE), so a gift larger than any single coin works. Claim/preview sum all inputs and size the fee by input count. Verified end-to-end. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/i18n.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index 18d579a..28fb827 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -233,6 +233,8 @@ const STR = { relaysLabel: 'Relays', relaysHint: 'One wss:// URL per line.', language: 'Language', + darkMode: 'Dark mode', + lightMode: 'Light mode', offlineBanner: "Can't reach the network — working offline. Import a snapshot on the Settings tab to load coins.", retry: 'Retry', copied: 'Copied to clipboard', -- cgit v1.2.3