fix(instance): light-theme journal AI buttons and mood checkboxes
Fix secondary button contrast, exclude checkboxes from dark input fill, style mood-grid; bump theme assets to v4. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
<meta name="apple-mobile-web-app-title" content="监控">
|
<meta name="apple-mobile-web-app-title" content="监控">
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
||||||
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body data-page="{{ page }}">
|
<body data-page="{{ page }}">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 关键位放大</title>
|
<title>{{ exchange_display }} | 关键位放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
#chart{width:100%;height:100%}
|
#chart{width:100%;height:100%}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>登录 · {{ exchange_display }}</title>
|
<title>登录 · {{ exchange_display }}</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<div class="login-theme-bar">
|
<div class="login-theme-bar">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 实盘下单放大</title>
|
<title>{{ exchange_display }} | 实盘下单放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
.empty{padding:18px;color:#95a2c2}
|
.empty{padding:18px;color:#95a2c2}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
<meta name="apple-mobile-web-app-title" content="监控">
|
<meta name="apple-mobile-web-app-title" content="监控">
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
||||||
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body data-page="{{ page }}">
|
<body data-page="{{ page }}">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 关键位放大</title>
|
<title>{{ exchange_display }} | 关键位放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
#chart{width:100%;height:100%}
|
#chart{width:100%;height:100%}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>登录 · {{ exchange_display }}</title>
|
<title>登录 · {{ exchange_display }}</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<div class="login-theme-bar">
|
<div class="login-theme-bar">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 实盘下单放大</title>
|
<title>{{ exchange_display }} | 实盘下单放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
.empty{padding:18px;color:#95a2c2}
|
.empty{padding:18px;color:#95a2c2}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
<meta name="apple-mobile-web-app-title" content="监控">
|
<meta name="apple-mobile-web-app-title" content="监控">
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
.stats-split-row{grid-template-columns:1fr}
|
.stats-split-row{grid-template-columns:1fr}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 关键位放大</title>
|
<title>{{ exchange_display }} | 关键位放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
#chart{width:100%;height:100%}
|
#chart{width:100%;height:100%}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>登录 · {{ exchange_display }}</title>
|
<title>登录 · {{ exchange_display }}</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<div class="login-theme-bar">
|
<div class="login-theme-bar">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>{{ exchange_display }} | 实盘下单放大</title>
|
<title>{{ exchange_display }} | 实盘下单放大</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
.empty{padding:18px;color:#95a2c2}
|
.empty{padding:18px;color:#95a2c2}
|
||||||
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
.exchange-tag{font-size:.72rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:4px 10px;border-radius:999px;margin-left:8px}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
<meta name="apple-mobile-web-app-title" content="监控">
|
<meta name="apple-mobile-web-app-title" content="监控">
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
.stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px}
|
||||||
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
.stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body data-page="{{ page }}">
|
<body data-page="{{ page }}">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>关键位放大 | K线查看</title>
|
<title>关键位放大 | K线查看</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
#chart-wrap{height:580px;background:#0f1320;border:1px solid #2a3150;border-radius:10px;padding:8px}
|
#chart-wrap{height:580px;background:#0f1320;border:1px solid #2a3150;border-radius:10px;padding:8px}
|
||||||
#chart{width:100%;height:100%}
|
#chart{width:100%;height:100%}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>系统登录</title>
|
<title>系统登录</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<div class="login-theme-bar">
|
<div class="login-theme-bar">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
|
|
||||||
<title>实盘下单放大 | 100根K线</title>
|
<title>实盘下单放大 | 100根K线</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
#chart{width:100%;height:100%}
|
#chart{width:100%;height:100%}
|
||||||
.empty{padding:18px;color:#95a2c2}
|
.empty{padding:18px;color:#95a2c2}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""为四所 templates 注入 instance_theme 脚本/样式与切换按钮。"""
|
"""涓哄洓鎵€ templates 娉ㄥ叆 instance_theme 鑴氭湰/鏍峰紡涓庡垏鎹㈡寜閽€?""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -8,16 +8,16 @@ ROOT = Path(__file__).resolve().parents[1]
|
|||||||
EXCHANGES = ("crypto_monitor_binance", "crypto_monitor_okx", "crypto_monitor_gate", "crypto_monitor_gate_bot")
|
EXCHANGES = ("crypto_monitor_binance", "crypto_monitor_okx", "crypto_monitor_gate", "crypto_monitor_gate_bot")
|
||||||
FILES = ("index.html", "login.html", "key_focus_v2.html", "order_focus_v2.html")
|
FILES = ("index.html", "login.html", "key_focus_v2.html", "order_focus_v2.html")
|
||||||
|
|
||||||
SCRIPT_TAG = ' <script src="/static/instance_theme.js?v=3"></script>\n'
|
SCRIPT_TAG = ' <script src="/static/instance_theme.js?v=4"></script>\n'
|
||||||
CSS_LINK = ' <link rel="stylesheet" href="/static/instance_theme.css?v=3">\n'
|
CSS_LINK = ' <link rel="stylesheet" href="/static/instance_theme.css?v=4">\n'
|
||||||
|
|
||||||
THEME_TOGGLE = """ <div class="theme-toggle instance-theme-toggle" role="group" aria-label="界面主题">
|
THEME_TOGGLE = """ <div class="theme-toggle instance-theme-toggle" role="group" aria-label="鐣岄潰涓婚">
|
||||||
<button type="button" class="theme-toggle-btn is-active" data-theme-value="dark" aria-pressed="true" title="暗色主题">
|
<button type="button" class="theme-toggle-btn is-active" data-theme-value="dark" aria-pressed="true" title="鏆楄壊涓婚">
|
||||||
<svg class="theme-icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true">
|
<svg class="theme-icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true">
|
||||||
<path fill="currentColor" d="M12.1 3a9 9 0 1 0 8.9 11 6.5 6.5 0 1 1-8.9-11z"/>
|
<path fill="currentColor" d="M12.1 3a9 9 0 1 0 8.9 11 6.5 6.5 0 1 1-8.9-11z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="theme-toggle-btn" data-theme-value="light" aria-pressed="false" title="亮色主题">
|
<button type="button" class="theme-toggle-btn" data-theme-value="light" aria-pressed="false" title="浜壊涓婚">
|
||||||
<svg class="theme-icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
|
<svg class="theme-icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
|
||||||
<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
|
<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -26,12 +26,12 @@ THEME_TOGGLE = """ <div class="theme-toggle instance-theme-toggle" role="
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
INDEX_HEADER_OLD = """ <div class="header">
|
INDEX_HEADER_OLD = """ <div class="header">
|
||||||
<h1>加密货币|交易监控 + AI复盘一体化</h1>
|
<h1>鍔犲瘑璐у竵锝滀氦鏄撶洃鎺?+ AI澶嶇洏涓€浣撳寲</h1>
|
||||||
<div class="exchange-tag">{{ exchange_display }}</div>
|
<div class="exchange-tag">{{ exchange_display }}</div>
|
||||||
</div>"""
|
</div>"""
|
||||||
|
|
||||||
INDEX_HEADER_NEW = """ <div class="header">
|
INDEX_HEADER_NEW = """ <div class="header">
|
||||||
<h1>加密货币|交易监控 + AI复盘一体化</h1>
|
<h1>鍔犲瘑璐у竵锝滀氦鏄撶洃鎺?+ AI澶嶇洏涓€浣撳寲</h1>
|
||||||
<div class="header-row">
|
<div class="header-row">
|
||||||
<div class="exchange-tag">{{ exchange_display }}</div>
|
<div class="exchange-tag">{{ exchange_display }}</div>
|
||||||
""" + THEME_TOGGLE + """ </div>
|
""" + THEME_TOGGLE + """ </div>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ html[data-theme="light"] .card h2 {
|
|||||||
color: #142232 !important;
|
color: #142232 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme="light"] input,
|
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
|
||||||
html[data-theme="light"] select,
|
html[data-theme="light"] select,
|
||||||
html[data-theme="light"] textarea {
|
html[data-theme="light"] textarea {
|
||||||
background: #f6f9fc !important;
|
background: #f6f9fc !important;
|
||||||
@@ -57,6 +57,43 @@ html[data-theme="light"] textarea {
|
|||||||
border-color: #b8c8d8 !important;
|
border-color: #b8c8d8 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html[data-theme="light"] input[type="checkbox"],
|
||||||
|
html[data-theme="light"] input[type="radio"] {
|
||||||
|
accent-color: #007aa8;
|
||||||
|
background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme="light"] .mood-grid {
|
||||||
|
color: #1a2838 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme="light"] .mood-grid label {
|
||||||
|
color: #1a2838 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 复盘区次要按钮(内联 #1f3a5a):浅底深字,避免白字看不见 */
|
||||||
|
html[data-theme="light"] .journal-card .form-row button[type="button"],
|
||||||
|
html[data-theme="light"] .review-card .form-row button[type="button"][onclick*="export"],
|
||||||
|
html[data-theme="light"] .review-card-fs-btn,
|
||||||
|
html[data-theme="light"] .ai-result-toolbar .btn-fs {
|
||||||
|
background: #e8eef5 !important;
|
||||||
|
background-image: none !important;
|
||||||
|
color: #006e9a !important;
|
||||||
|
border: 1px solid rgba(0, 95, 140, 0.28) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme="light"] .journal-card button[type="submit"],
|
||||||
|
html[data-theme="light"] .review-card .form-row button[onclick="genDaily()"],
|
||||||
|
html[data-theme="light"] .review-card .form-row button[onclick="genWeekly()"] {
|
||||||
|
background: linear-gradient(90deg, #007aa8, #5b4fc7) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
html[data-theme="light"] .flash {
|
html[data-theme="light"] .flash {
|
||||||
background: rgba(0, 110, 154, 0.1) !important;
|
background: rgba(0, 110, 154, 0.1) !important;
|
||||||
color: #006e9a !important;
|
color: #006e9a !important;
|
||||||
|
|||||||
@@ -117,10 +117,14 @@
|
|||||||
function remapInlineStyle(style, theme) {
|
function remapInlineStyle(style, theme) {
|
||||||
if (!style) return style;
|
if (!style) return style;
|
||||||
if (theme !== "light") return style;
|
if (theme !== "light") return style;
|
||||||
|
const hadSecondaryBtnBg = /#1f3a5a/i.test(style);
|
||||||
let out = style;
|
let out = style;
|
||||||
for (const [from, to] of Object.entries(INLINE_HEX_LIGHT)) {
|
for (const [from, to] of Object.entries(INLINE_HEX_LIGHT)) {
|
||||||
out = out.replace(new RegExp(from.replace("#", "\\#"), "gi"), to);
|
out = out.replace(new RegExp(from.replace("#", "\\#"), "gi"), to);
|
||||||
}
|
}
|
||||||
|
if (hadSecondaryBtnBg && !/color\s*:/i.test(style)) {
|
||||||
|
out = `${out.replace(/;+\s*$/, "")};color:#006e9a`;
|
||||||
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN" data-theme="dark">
|
<html lang="zh-CN" data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script src="/static/instance_theme.js?v=3"></script>
|
<script src="/static/instance_theme.js?v=4"></script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>顺势加仓 · {{ exchange_display }}</title>
|
<title>顺势加仓 · {{ exchange_display }}</title>
|
||||||
<style>
|
<style>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
table{width:100%;border-collapse:collapse;font-size:.82rem}
|
table{width:100%;border-collapse:collapse;font-size:.82rem}
|
||||||
th,td{border-bottom:1px solid #2a3150;padding:6px 8px;text-align:left}
|
th,td{border-bottom:1px solid #2a3150;padding:6px 8px;text-align:left}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=3">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=4">
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user