Files
Liu 9217b1ca3a feat(styles): add light and dark theme support
- share shadcn neutral color tokens between both Tailwind configs
- rewrite Tailwind dark selectors into LCUI-compatible descendant selectors
- theme style-nova components and doc-viewer surfaces for dark mode
- generate GitHub Light and GitHub Dark syntax line pairs for code blocks
- support alpha channels in text style tag colors
- keep focus rings and scrollbars visible on dark surfaces
- use a neutral code surface instead of GitHub's blue-tinted background
2026-11-15 23:40:42 +08:00

33 lines
890 B
TypeScript

import { widgetFields, FieldData } from "./widget";
export const dropdownMenuFields: FieldData[] = [
...widgetFields,
{
name: "default-open",
type: "boolean",
default: "false",
description: {
en: "Opens the menu on first render when no explicit open state is set.",
"zh-CN": "首次渲染时打开菜单;仅在未显式设置 open 时生效。",
},
},
{
name: "open",
type: "boolean",
default: "false",
description: {
en: "Controlled open state. Setting it updates the menu immediately.",
"zh-CN": "受控打开状态,设置后立即同步菜单。",
},
},
{
name: "match-trigger-width",
type: "boolean",
default: "false",
description: {
en: "Sizes the menu panel to the trigger width when it opens.",
"zh-CN": "打开时让菜单面板宽度与触发器一致。",
},
},
];