15c19303ff
- Lower-left sidebar cards are now individual shortcuts: tapping the identity chip opens identity settings, tapping the node card jumps straight to the Node menu (was: both opened generic settings). - Pay screen gains a scan-to-pay QR puck top-right that opens the camera and prefills the recipient while keeping the typed amount (reuses the Home scan + SendFlow::request_scan/prefill_amount path). - Replace the USD-only "fiat preview" with a configurable "Pairing": Off / USD / EUR / GBP / JPY / CNY / Bitcoin / Sats (default USD). price.rs now fetches GRIN against any vs_currency (sats price vs btc, ×1e8) and caches per code; a Settings → Pairing sub-page picks it; the Pay, send, and balance previews all route through one pairing_preview() helper. - Hide the Yellow theme from the picker (cycle is Dark ↔ Light now); the ThemeKind::Yellow tokens stay defined — it's beta, not removed. Verified live on :2 (Default wallet): node card → Node menu; identity chip → identity settings; QR puck renders top-right of Pay; Pairing → Sats shows "≈ 1,912 sats" for 50ツ over a live BTC rate, resets to USD; theme cycles Dark↔Light, never Yellow. 34 lib tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
23 lines
700 B
Rust
23 lines
700 B
Rust
// Copyright 2025 The Grim Developers
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
mod client;
|
|
pub use client::*;
|
|
|
|
mod release;
|
|
pub use release::*;
|
|
|
|
mod price;
|
|
pub use price::grin_rate;
|