fix(instance): light-theme P/L colors, AI review panels, bot stats
Restore plan floating P/L and st-done greens; fix panel-item and stats-split-col in light mode; observe journal lists; bump theme assets to v3. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+108
-1
@@ -312,10 +312,34 @@ html[data-theme="light"] .plan-card-title,
|
||||
html[data-theme="light"] .sr-panel-title,
|
||||
html[data-theme="light"] .sr-summary .sr-sym,
|
||||
html[data-theme="light"] .sr-detail-grid .val,
|
||||
html[data-theme="light"] .plan-cell .val {
|
||||
html[data-theme="light"] .plan-cell .val:not(.pnl-profit):not(.pnl-loss) {
|
||||
color: #142232 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .plan-cell .val.pnl-profit,
|
||||
html[data-theme="light"] .pnl-profit {
|
||||
color: #087a50 !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .plan-cell .val.pnl-loss,
|
||||
html[data-theme="light"] .pnl-loss {
|
||||
color: #c03030 !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .plan-dca-table td.st-done,
|
||||
html[data-theme="light"] .plan-dca-table .st-done,
|
||||
html[data-theme="light"] .sr-dca-table .st-done {
|
||||
color: #087a50 !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .plan-dca-table .st-pending,
|
||||
html[data-theme="light"] .sr-dca-table .st-pending {
|
||||
color: #6a7588 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .strategy-records-tip,
|
||||
html[data-theme="light"] .plan-card-meta,
|
||||
html[data-theme="light"] .plan-cell .lbl,
|
||||
@@ -419,3 +443,86 @@ html[data-theme="light"] .strategy-trading-grid .card,
|
||||
html[data-theme="light"] .dual-panel-grid .card {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
/* ── AI 复盘(panel-list / ai-result)── */
|
||||
html[data-theme="light"] .panel-item {
|
||||
background: #fff !important;
|
||||
border-color: #b8c8d8 !important;
|
||||
color: #1a2838 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .panel-item strong {
|
||||
color: #142232 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .panel-item .entry {
|
||||
border-bottom-color: #d0dae4 !important;
|
||||
color: #1a2838 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .panel-item .entry div {
|
||||
color: #4a6078 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result {
|
||||
background: #f6f9fc !important;
|
||||
border-color: #b8c8d8 !important;
|
||||
color: #1a2838 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md p,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review p {
|
||||
color: #1a2838 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md strong,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review strong {
|
||||
color: #142232 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md h2,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review h2 {
|
||||
color: #142232 !important;
|
||||
border-bottom-color: #d0dae4 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md h3,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review h3 {
|
||||
color: #006e9a !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md code,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review code {
|
||||
background: #eef3f8 !important;
|
||||
color: #142232 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .ai-result-md .md-raw-block-title,
|
||||
html[data-theme="light"] .detail-modal .panel-body.md-review .md-raw-block-title {
|
||||
color: #4a6078 !important;
|
||||
border-top-color: #d0dae4 !important;
|
||||
}
|
||||
|
||||
/* ── Gate Bot 统计分栏(机器人 / 趋势回调)── */
|
||||
html[data-theme="light"] .stats-split-col {
|
||||
background: #fff !important;
|
||||
border-color: #b8c8d8 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .stats-split-head {
|
||||
color: #142232 !important;
|
||||
border-bottom-color: #d0dae4 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .stats-split-col .stat-item {
|
||||
background: #f6f9fc !important;
|
||||
border-color: #d0dae4 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .stats-split-col .stat-item .label {
|
||||
color: #4a6078 !important;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .stats-split-col .stat-item .value {
|
||||
color: #142232 !important;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,15 @@
|
||||
"#8fc8ff": "#006e9a",
|
||||
"#6ab8ff": "#006e9a",
|
||||
"#6eb5ff": "#006e9a",
|
||||
"#101522": "#ffffff",
|
||||
"#121726": "#ffffff",
|
||||
"#141423": "#ffffff",
|
||||
"#24243b": "#b8c8d8",
|
||||
"#252a45": "#b8c8d8",
|
||||
"#252538": "#eef3f8",
|
||||
"#1a1a29": "#f6f9fc",
|
||||
"#2e2e45": "#b8c8d8",
|
||||
"#2b2b43": "#d0dae4",
|
||||
"#151a2a": "#eef3f8",
|
||||
"#141a2a": "#ffffff",
|
||||
"#141923": "#ffffff",
|
||||
@@ -196,9 +204,22 @@
|
||||
} else {
|
||||
apply(getStandalone());
|
||||
}
|
||||
function observeDynamicLists() {
|
||||
["journal-list", "review-list"].forEach((id) => {
|
||||
const el = document.getElementById(id);
|
||||
if (!el || el.dataset.instThemeObserved === "1") return;
|
||||
el.dataset.instThemeObserved = "1";
|
||||
new MutationObserver(() => syncInlineStyles(get())).observe(el, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const onReady = () => {
|
||||
initToggleUI();
|
||||
syncInlineStyles(get());
|
||||
observeDynamicLists();
|
||||
};
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", onReady);
|
||||
|
||||
Reference in New Issue
Block a user