fix: remove hardcoded dark theme colors from all .ui files for light theme support

This commit is contained in:
yumoqing 2026-05-28 16:14:01 +08:00
parent cdd812f935
commit 79a04be92b
8 changed files with 6 additions and 70 deletions

View File

@ -2,8 +2,7 @@
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"bgcolor": "#0B1120"
"height": "100%"
},
"subwidgets": [
{
@ -17,7 +16,6 @@
{
"widgettype": "Title2",
"options": {
"color": "#F1F5F9",
"fontWeight": "700",
"otext": "数据概览",
"i18n": true
@ -30,8 +28,7 @@
"widgettype": "Text",
"options": {
"text": "最后更新: {{get_today_usage(request) and request._run_ns.curDateString() or ''}}",
"fontSize": "13px",
"color": "#64748B"
"fontSize": "13px"
}
}
]
@ -132,10 +129,8 @@
"widgettype": "VBox",
"options": {
"width": "60%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155"
"padding": "20px"
},
"subwidgets": [
{
@ -149,7 +144,6 @@
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"otext": "Top 3 模型(今日调用)",
"i18n": true
@ -162,8 +156,6 @@
"widgettype": "Button",
"options": {
"label": "刷新",
"bgcolor": "#334155",
"color": "#94A3B8",
"border": "none",
"borderRadius": "6px",
"padding": "4px 12px",
@ -196,16 +188,13 @@
"widgettype": "VBox",
"options": {
"width": "40%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155"
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px",
"otext": "快捷入口",
@ -222,10 +211,8 @@
{
"widgettype": "Button",
"options": {
"bgcolor": "#1E293B",
"padding": "16px",
"borderRadius": "8px",
"border": "1px solid #475569",
"textAlign": "center"
},
"binds": [
@ -256,7 +243,6 @@
{
"widgettype": "Text",
"options": {
"color": "#FFFFFF",
"fontWeight": "600",
"fontSize": "13px",
"marginTop": "8px",
@ -271,10 +257,8 @@
{
"widgettype": "Button",
"options": {
"bgcolor": "#1E293B",
"padding": "16px",
"borderRadius": "8px",
"border": "1px solid #475569",
"textAlign": "center"
},
"binds": [
@ -305,7 +289,6 @@
{
"widgettype": "Text",
"options": {
"color": "#FFFFFF",
"fontWeight": "600",
"fontSize": "13px",
"marginTop": "8px",
@ -320,7 +303,6 @@
{
"widgettype": "Button",
"options": {
"bgcolor": "#334155",
"padding": "16px",
"borderRadius": "8px",
"border": "none",
@ -354,7 +336,6 @@
{
"widgettype": "Text",
"options": {
"color": "#E2E8F0",
"fontSize": "13px",
"marginTop": "8px",
"otext": "知识库",
@ -368,7 +349,6 @@
{
"widgettype": "Button",
"options": {
"bgcolor": "#334155",
"padding": "16px",
"borderRadius": "8px",
"border": "none",
@ -402,7 +382,6 @@
{
"widgettype": "Text",
"options": {
"color": "#E2E8F0",
"fontSize": "13px",
"marginTop": "8px",
"otext": "异常记录",
@ -423,17 +402,14 @@
"widgettype": "VBox",
"options": {
"width": "100%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155",
"marginTop": "20px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px",
"otext": "用户消费排行Top 5",
@ -454,17 +430,14 @@
"widgettype": "VBox",
"options": {
"width": "100%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155",
"marginTop": "20px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px",
"otext": "用户调用排行Top 5",
@ -493,16 +466,13 @@
"widgettype": "VBox",
"options": {
"width": "50%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155"
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px",
"otext": "供应商交易排行(金额 Top 5",
@ -523,16 +493,13 @@
"widgettype": "VBox",
"options": {
"width": "50%",
"bgcolor": "#1E293B",
"borderRadius": "12px",
"padding": "20px",
"border": "1px solid #334155"
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px",
"otext": "供应商调用排行(数量 Top 5",

View File

@ -1,10 +1,8 @@
{
"widgettype": "VBox",
"options": {
"bgcolor": "#1E293B",
"padding": "20px",
"borderRadius": "12px",
"border": "1px solid #334155",
"flex": "1",
"minHeight": "110px"
},
@ -35,7 +33,6 @@
"text": "{{get_active_users_today(request)}}",
"fontSize": "32px",
"fontWeight": "700",
"color": "#F1F5F9",
"lineHeight": "1.1"
}
},
@ -43,7 +40,6 @@
"widgettype": "Text",
"options": {
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px",
"otext": "今日活跃用户",
"i18n": true

View File

@ -1,10 +1,8 @@
{
"widgettype": "VBox",
"options": {
"bgcolor": "#1E293B",
"padding": "20px",
"borderRadius": "12px",
"border": "1px solid #334155",
"flex": "1",
"minHeight": "110px"
},
@ -35,7 +33,6 @@
"text": "{{get_accounting_errors(request)}}",
"fontSize": "32px",
"fontWeight": "700",
"color": "#EF4444",
"lineHeight": "1.1"
}
},
@ -43,7 +40,6 @@
"widgettype": "Text",
"options": {
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px",
"otext": "记账异常",
"i18n": true

View File

@ -1,10 +1,8 @@
{
"widgettype": "VBox",
"options": {
"bgcolor": "#1E293B",
"padding": "20px",
"borderRadius": "12px",
"border": "1px solid #334155",
"flex": "1",
"minHeight": "110px",
"cursor": "pointer"
@ -36,7 +34,6 @@
"text": "{{get_today_usage(request)}}",
"fontSize": "32px",
"fontWeight": "700",
"color": "#F1F5F9",
"lineHeight": "1.1"
}
},
@ -44,7 +41,6 @@
"widgettype": "Text",
"options": {
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px",
"otext": "今日调用笔数",
"i18n": true

View File

@ -1,10 +1,8 @@
{
"widgettype": "VBox",
"options": {
"bgcolor": "#1E293B",
"padding": "20px",
"borderRadius": "12px",
"border": "1px solid #334155",
"flex": "1",
"minHeight": "110px"
},
@ -35,7 +33,6 @@
"text": "{{get_total_users(request)}}",
"fontSize": "32px",
"fontWeight": "700",
"color": "#F1F5F9",
"lineHeight": "1.1"
}
},
@ -43,7 +40,6 @@
"widgettype": "Text",
"options": {
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px",
"otext": "用户总数",
"i18n": true

View File

@ -12,7 +12,6 @@
"width": "100%",
"padding": "12px 0",
{% if not loop.first %}
"borderTop": "1px solid #334155",
{% endif %}
"alignItems": "center"
},
@ -22,7 +21,6 @@
"options": {
"text": "{{loop.index}}",
"width": "30px",
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center"
}
@ -32,7 +30,6 @@
"options": {
"text": "{{p.provider_name}}",
"flex": "1",
"color": "#F1F5F9",
"fontSize": "14px",
"fontWeight": "500"
}
@ -42,7 +39,6 @@
"options": {
"text": "{{p.cnt}} 笔",
"width": "80px",
"color": "#94A3B8",
"fontSize": "13px",
"textAlign": "right"
}
@ -68,7 +64,6 @@
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",
"padding": "20px 0"

View File

@ -12,7 +12,6 @@
"width": "100%",
"padding": "12px 0",
{% if not loop.first %}
"borderTop": "1px solid #334155",
{% endif %}
"alignItems": "center"
},
@ -22,7 +21,6 @@
"options": {
"text": "{{loop.index}}",
"width": "30px",
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center"
}
@ -32,7 +30,6 @@
"options": {
"text": "{{p.provider_name}}",
"flex": "1",
"color": "#F1F5F9",
"fontSize": "14px",
"fontWeight": "500"
}
@ -42,7 +39,6 @@
"options": {
"text": "{{p.cnt}} 笔",
"width": "80px",
"color": "#60A5FA",
"fontSize": "14px",
"fontWeight": "600",
"textAlign": "right"
@ -68,7 +64,6 @@
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",
"padding": "20px 0"

View File

@ -12,7 +12,6 @@
"width": "100%",
"padding": "12px 0",
{% if not loop.first %}
"borderTop": "1px solid #334155",
{% endif %}
"alignItems": "center"
},
@ -22,7 +21,6 @@
"options": {
"text": "{{loop.index}}",
"width": "30px",
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center"
}
@ -32,7 +30,6 @@
"options": {
"text": "{{u.user_name}}",
"flex": "1",
"color": "#F1F5F9",
"fontSize": "14px",
"fontWeight": "500"
}
@ -42,7 +39,6 @@
"options": {
"text": "{{u.cnt}} 笔",
"width": "80px",
"color": "#60A5FA",
"fontSize": "14px",
"fontWeight": "600",
"textAlign": "right"
@ -68,7 +64,6 @@
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",
"padding": "20px 0"