From 92bdf093566ac454b5e56f932ac5dca8b6766147 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Apr 2026 14:41:44 +1000 Subject: [PATCH] fix: account summary card text colour and size on dark theme view_live_mt5_eas.py: - Secondary text colour changed from #555/#666 to #A0A8B8 (silver grey) for readability on dark theme - Font size bumped from 11-12px to 13px across all card labels: Updated timestamp, Balance/Current, Recovery, Loss streak, Stagnation, Today P&L, prop account progress bar labels --- view_live_mt5_eas.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/view_live_mt5_eas.py b/view_live_mt5_eas.py index dd17689..efde949 100644 --- a/view_live_mt5_eas.py +++ b/view_live_mt5_eas.py @@ -436,7 +436,7 @@ cache/ last_report = "—" else: last_report = "No cache" - c5.markdown(f'
{last_report}
', + c5.markdown(f'
{last_report}
', unsafe_allow_html=True) if c6.button("🗑", key=f"rm_{ac['account']}"): remaining = [a for a in acc_cfgs if a["account"] != ac["account"]] @@ -647,13 +647,13 @@ cache/ ) if ea_stopped else "" prop_bars = ( '
' - f'
Profit {pnl_pct:+.2f}% / {pt:.0f}%
' + f'
Profit {pnl_pct:+.2f}% / {pt:.0f}%
' f'
' f'
' - f'
Max loss {min(max(-pnl_pct,0),ml):.2f}% / {ml:.0f}%
' + f'
Max loss {min(max(-pnl_pct,0),ml):.2f}% / {ml:.0f}%
' f'
' f'
' - f'
Daily loss {today_pct:.2f}% / {dl:.0f}%
' + f'
Daily loss {today_pct:.2f}% / {dl:.0f}%
' f'
' f'
' f'{stopped_banner}' @@ -667,14 +667,14 @@ cache/ f'{d["label"]}' f'{acc_type}' '
' - f'
Updated: {fetched_str}
' + f'
Updated: {fetched_str}
' f'
{current_pnl:+,.2f} ({pnl_pct:+.2f}%)
' - f'
Balance: ${balance:,.0f} → Current: ${current_bal:,.2f}
' + f'
Balance: ${balance:,.0f} → Current: ${current_bal:,.2f}
' f'
' - f'
Recovery: {recovery}
' - f'
Loss streak: {streak}
' - f'
Stagnation: {stag_days}d
' - f'
Today: =0 else "#E05555"}">{today_pnl:+.2f} ({today_pct:+.2f}%)
' + f'
Recovery: {recovery}
' + f'
Loss streak: {streak}
' + f'
Stagnation: {stag_days}d
' + f'
Today: =0 else "#E05555"}">{today_pnl:+.2f} ({today_pct:+.2f}%)
' '
' f'{prop_bars}' '' @@ -1249,7 +1249,7 @@ def _cell_html(day_num: int, row, is_today: bool, unit: str, balance: float) -> f'' f'
' - f'
{day_num}
' + f'
{day_num}
' f'{content}
' ) @@ -1333,7 +1333,7 @@ def _render_week_grid(year, week_num, day_map, today, unit, balance): date_hdr = "".join( f'' f'{["Mon","Tue","Wed","Thu","Fri"][i]}
' - f'{days[i].strftime("%d %b")}' + f'{days[i].strftime("%d %b")}' for i in range(5) ) body = f"{cells}"