跳到正文
Skillpedia
网站与界面(前端)48k · #5152

makepad-reference

它能做什么

这份指南帮助你解决使用 Makepad 工具时的常见问题。它为构建、界面和更新过程中的错误提供快速解决方案。

适用场景

  • ✓当你的 Makepad 代码无法编译时。
  • ✓用户界面没有按预期更新时。
  • ✓想快速找到某个具体错误的解决办法时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-reference/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-reference/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的文字没有以正确的字体显示,该怎么办?”

每周 5 个新技能,1 分钟读完。

工作原理

它会把你的代码与你所使用的具体 Makepad 版本进行对比,以找出问题所在。它会列出常见错误以及对应的解决方法。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Makepad Reference

This category provides reference materials for debugging, code quality, and advanced layout patterns.

When to Use

  • You need quick-reference material for common Makepad errors, debugging, or API lookups.
  • The task is diagnostic or reference-oriented rather than writing a focused feature in one subsystem.
  • You want a central starting point before diving into more specialized Makepad skills.

Quick Navigation

Topic File Use When
API Documentation Official docs index, quick API reference Finding detailed API info
Troubleshooting Common errors and fixes Build fails, runtime errors
Code Quality Makepad-aware refactoring Simplifying code safely
Adaptive Layout Desktop/mobile responsive Cross-platform layouts

Common Issues Quick Reference

Error Quick Fix
no matching field: font Use text_style: <THEME_FONT_*>{}
Color parse error Check the installed live-design parser syntax; changing a valid hex color is not a general fix
set_text missing argument Add cx as first argument
UI not updating Call redraw(cx) after changes
Widget not found Check ID spelling, use ids!() for paths

Debug Tips

# Run with line info for better error messages
MAKEPAD=lines cargo run  # Use the project-pinned toolchain; verify this diagnostic flag for its revision
// Add logging
log!("Value: {:?}", my_value);
log!("State: {} / {}", self.counter, self.is_loading);

Resources

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

The navigation table names topics, not bundled reference files. Verify exact Makepad API signatures and the project toolchain before changing code; preserve private values in logs, and test widget updates, input and target layouts rather than assuming a redraw call fixes every issue.

常见问题

什么是 Makepad?

Makepad 是一个用于构建应用程序用户界面的工具。

我怎么知道自己使用的是哪个 Makepad 版本?

指南建议运行 `MAKEPAD=lines cargo run` 来获取更详细的版本信息。

'redraw(cx)' 是什么意思?

这是一条命令,用来告诉 Makepad 在发生变化后需要更新界面。

详情

作者的原始描述

Guide to diagnosing Makepad build, widget, redraw and layout issues against the exact runtime revision.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5152
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能