// DragonX Wallet - ImGui Edition // Copyright 2024-2026 The Hush Developers // Released under the GPLv3 #pragma once #include "../../data/wallet_state.h" #include "../material/draw_helpers.h" // GlassPanelSpec #include "imgui.h" namespace dragonx { class App; namespace ui { // Renders the mining "Earnings" card (Today | Yesterday | All Time | Est. Daily). Extracted // verbatim from the monolithic mining tab; the immediate-mode layout context (draw list, fonts, // scale/spacing, the glass-panel spec, and the parent's pool-mode flag) is passed in so the // rendering flows in sequence exactly as before. void RenderMiningEarnings(App* app, const WalletState& state, const MiningInfo& mining, ImDrawList* dl, ImFont* capFont, ImFont* sub1, ImFont* ovFont, float dp, float vs, float gap, float pad, bool isMiningActive, bool poolMode, float availWidth, const material::GlassPanelSpec& glassSpec, float sHdr, float gapOver); } // namespace ui } // namespace dragonx