fix: remove hardcoded dark theme colors from index.ui and show_llms pages

- Remove bgcolor/color/border hardcoded dark theme values from index.ui
- Use css:'card' class instead of inline bgcolor for navigation cards
- Remove conflicting bgcolor:#def0f0 from show_llms/show_llms_by_providers/show_same_catelog_llm
- Let system theme (bricks.css/shell_theme.css) handle styling
This commit is contained in:
yumoqing 2026-05-27 11:31:13 +08:00
parent a4e3411584
commit 59d3c406ab
4 changed files with 14 additions and 32 deletions

View File

@ -3,8 +3,7 @@
"options": { "options": {
"width": "100%", "width": "100%",
"height": "100%", "height": "100%",
"padding": "0", "padding": "0"
"bgcolor": "#0B1120"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -20,7 +19,6 @@
"widgettype": "Title2", "widgettype": "Title2",
"options": { "options": {
"text": "LLM 模型管理", "text": "LLM 模型管理",
"color": "#F1F5F9",
"fontWeight": "700" "fontWeight": "700"
} }
}, },
@ -31,8 +29,7 @@
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "模型配置、目录分类与调用监控", "text": "模型配置、目录分类与调用监控",
"fontSize": "14px", "fontSize": "14px"
"color": "#64748B"
} }
} }
] ]
@ -48,10 +45,8 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"bgcolor": "#1E293B", "css": "card",
"padding": "16px 24px", "padding": "16px 24px",
"borderRadius": "8px",
"border": "1px solid #334155",
"cursor": "pointer" "cursor": "pointer"
}, },
"binds": [ "binds": [
@ -71,7 +66,6 @@
"widgettype": "Title5", "widgettype": "Title5",
"options": { "options": {
"text": "模型类型管理", "text": "模型类型管理",
"color": "#F1F5F9",
"fontWeight": "600" "fontWeight": "600"
} }
}, },
@ -79,8 +73,7 @@
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "管理模型的分类目录和类型定义", "text": "管理模型的分类目录和类型定义",
"fontSize": "12px", "fontSize": "12px"
"color": "#94A3B8"
} }
} }
] ]
@ -88,10 +81,8 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"bgcolor": "#1E293B", "css": "card",
"padding": "16px 24px", "padding": "16px 24px",
"borderRadius": "8px",
"border": "1px solid #334155",
"cursor": "pointer" "cursor": "pointer"
}, },
"binds": [ "binds": [
@ -111,7 +102,6 @@
"widgettype": "Title5", "widgettype": "Title5",
"options": { "options": {
"text": "模型配置", "text": "模型配置",
"color": "#F1F5F9",
"fontWeight": "600" "fontWeight": "600"
} }
}, },
@ -119,8 +109,7 @@
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "管理 LLM 模型的API配置与供应商映射", "text": "管理 LLM 模型的API配置与供应商映射",
"fontSize": "12px", "fontSize": "12px"
"color": "#94A3B8"
} }
} }
] ]
@ -128,10 +117,8 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"bgcolor": "#1E293B", "css": "card",
"padding": "16px 24px", "padding": "16px 24px",
"borderRadius": "8px",
"border": "1px solid #334155",
"cursor": "pointer" "cursor": "pointer"
}, },
"binds": [ "binds": [
@ -151,7 +138,6 @@
"widgettype": "Title5", "widgettype": "Title5",
"options": { "options": {
"text": "记账失败记录", "text": "记账失败记录",
"color": "#F1F5F9",
"fontWeight": "600" "fontWeight": "600"
} }
}, },
@ -159,8 +145,7 @@
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "查看和检索调用计费失败记录", "text": "查看和检索调用计费失败记录",
"fontSize": "12px", "fontSize": "12px"
"color": "#94A3B8"
} }
} }
] ]

View File

@ -32,10 +32,9 @@
{% for llm in cate.llms %} {% for llm in cate.llms %}
{ {
"widgettype":"VScrollPanel", "widgettype":"VScrollPanel",
"options":{ "options":{
"css":"card", "css":"card",
"bgcolor": "#def0f0", "cwidth":20,
"cwidth":20,
"cheight":12 "cheight":12
}, },
"subwidgets":[ "subwidgets":[

View File

@ -31,10 +31,9 @@
{% for llm in p.llms %} {% for llm in p.llms %}
{ {
"widgettype":"VScrollPanel", "widgettype":"VScrollPanel",
"options":{ "options":{
"css":"card", "css":"card",
"bgcolor": "#def0f0", "cwidth":20,
"cwidth":20,
"cheight":12 "cheight":12
}, },
"subwidgets":[ "subwidgets":[

View File

@ -10,7 +10,6 @@
"widgettype":"VScrollPanel", "widgettype":"VScrollPanel",
"options":{ "options":{
"css":"card", "css":"card",
"bgcolor": "#def0f0",
"cwidth":20, "cwidth":20,
"cheight":12 "cheight":12
}, },