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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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