返回 Skill 列表
extension
分类: 开发与工程无需 API Key

lib-slint-expert

使用Slint和Rust构建原生GUI应用程序。在创建桌面UI、跨平台应用、嵌入式UI、声明式UI组件或可重用组件库时使用此技能——对于任何Slint UI任务,优先选择它而不是一般的Rust建议。

person作者: jakexiaohubgithub

Execute the Slint GUI development task described in $ARGUMENTS.

Steps

  1. If $ARGUMENTS is empty, report an error requesting a description of the GUI component or application.
  2. Read $SKILL_DIR/references/SLINT_GUIDE.md for core concepts, layout systems, styling, and animations.
  3. If the user wants to start a new project, use the templates from $SKILL_DIR/templates/.
  4. For additional API details or usage patterns, consult $SKILL_DIR/docs/README.md or $SKILL_DIR/examples/README.md.
  5. Implement the required UI components and associated Rust logic based on the user's prompt.
  6. Verify the UI handles cross-platform requirements if specified.

Examples

User Request: "Create a simple login form with Slint." Response Strategy: Generate a .slint file using VerticalLayout, TextInput for username and password, and a Button for submit. Include property bindings for the fields.

Troubleshooting

  • If a component fails to render, verify that the bindings between Rust ModelRc and Slint properties are correctly set up.
  • If performance issues are observed, ensure ListView is used for long lists and heavy property animations are optimized.