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

View File

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

View File

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

View File

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