mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 19:39:22 +08:00
feat: 初步适配主题颜色效果
This commit is contained in:
@@ -38,8 +38,39 @@
|
||||
"key": "tagDefaultColorList",
|
||||
"name": "标签默认颜色列表",
|
||||
"type": "string",
|
||||
"default": "ruby,gray,gold,bronze,brown,yellow,amber,orange,tomato,red,crimson,pink,plum,purple,violet,iris,indigo,blue,cyan,teal,jade,green,grass,lime,mint,sky",
|
||||
"help": "标签默认颜色列表,用于修改默认解析颜色顺序以及使用的颜色池,逗号分隔(可用的颜色列表请参考:https://www.radix-ui.com/themes/docs/theme/color,改完没有生效则说明填写有误)"
|
||||
"default": "ruby,gray,gold,bronze,brown,yellow,amber,orange,tomato,red",
|
||||
"help": "标签默认颜色列表,展示的标签将按顺序调用该颜色池,逗号分隔(可用的颜色列表请参考:https://www.radix-ui.com/themes/docs/theme/color,改完没有生效则说明填写有误)"
|
||||
},
|
||||
{
|
||||
"key": "enableLocalStorage",
|
||||
"name": "启用 localStorage 配置",
|
||||
"type": "switch",
|
||||
"default": true,
|
||||
"help": "启用后将优先使用用户浏览器本地配置的视图和外观设置。关闭后将强制使用下方的主题配置,本地可调整但刷新即恢复"
|
||||
},
|
||||
{
|
||||
"key": "selectedDefaultView",
|
||||
"name": "默认展示视图",
|
||||
"type": "select",
|
||||
"options": "grid,table",
|
||||
"default": "grid",
|
||||
"help": "设置默认展示视图为网格或表格"
|
||||
},
|
||||
{
|
||||
"key": "selectedDefaultAppearance",
|
||||
"name": "默认外观",
|
||||
"type": "select",
|
||||
"options": "system,light,dark",
|
||||
"default": "system",
|
||||
"help": "设置默认外观为浅色、深色或系统主题"
|
||||
},
|
||||
{
|
||||
"key": "selectThemeColor",
|
||||
"name": "默认主题颜色",
|
||||
"type": "select",
|
||||
"options": "gray,gold,bronze,brown,yellow,amber,orange,tomato,red,ruby,crimson,pink,plum,purple,violet,iris,indigo,blue,cyan,teal,jade,green,grass,lime,mint,sky",
|
||||
"default": "gray",
|
||||
"help": "设置默认主题颜色,颜色对照请参考:https://www.radix-ui.com/themes/docs/theme/color"
|
||||
},
|
||||
{
|
||||
"name": "标题栏设置",
|
||||
@@ -81,22 +112,6 @@
|
||||
"default": true,
|
||||
"help": "启用后默认在标题栏右侧显示搜索按钮"
|
||||
},
|
||||
{
|
||||
"key": "selectedDefaultView",
|
||||
"name": "默认展示视图",
|
||||
"type": "select",
|
||||
"options": "grid,table",
|
||||
"default": "grid",
|
||||
"help": "设置默认展示视图为网格或表格(优先使用 localStorage)"
|
||||
},
|
||||
{
|
||||
"key": "selectedDefaultAppearance",
|
||||
"name": "默认外观",
|
||||
"type": "select",
|
||||
"options": "system,light,dark",
|
||||
"default": "system",
|
||||
"help": "设置默认外观为浅色、深色或系统主题(优先使用 localStorage)"
|
||||
},
|
||||
{
|
||||
"key": "enableAdminButton",
|
||||
"name": "启用管理按钮",
|
||||
|
Reference in New Issue
Block a user