Skillpedia
المواقع والواجهات (frontend)48k · #5143

makepad-2-0-widgets

ما الذي تفعله

يساعدك هذا الدليل على بناء الواجهات البصرية (الشاشات) لتطبيقاتك باستخدام Makepad 2.0. يعرض لك اللبنات المتاحة، مثل الأزرار وحقول النصوص والصور، وكيفية استخدامها.

متى تستخدمها

  • ✓عند تصميم شكل التطبيق وإحساسه.
  • ✓عندما تريد إضافة أزرار أو حقول إدخال نصية.
  • ✓عندما تحتاج إلى عرض صور أو قوائم.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-2-0-widgets/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كيف أنشئ زرًا قابلًا للنقر نصه «Save»؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

توفر Makepad 2.0 «widgets» وهي أشبه بقطع Lego لبناء الواجهات. لكل widget وظيفة محددة (مثل عرض النص أو استقبال الإدخال) وخصائص يمكنك ضبطها.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

When to Use

  • Use when this upstream workflow matches the user's stated goal.
  • Use when the task requires the procedures documented in this skill.

Makepad 2.0 Widget Catalog Skill

Version: makepad-widgets (dev branch) | Last Updated: 2026-03-03

Overview

Makepad 2.0 provides a rich set of built-in widgets for building UIs. All widgets are defined in Splash syntax and registered via script_mod!.

Documentation

Refer to the local files for detailed documentation:

  • ./references/widget-catalog.md - Complete widget list with properties
  • ./references/widget-advanced.md - Advanced patterns: PortalList, Dock, custom widgets, MapView

IMPORTANT: Documentation Completeness Check

Before answering questions, Claude MUST:

  1. Read the relevant reference file(s) listed above
  2. Incorporate reference content into the answer

Widget Categories Quick Reference

Containers (Layout)

Widget Description Key Properties
View Basic container (transparent) width, height, flow, spacing, padding, align
SolidView View with solid background + show_bg: true, draw_bg.color
RoundedView View with rounded corners + draw_bg.border_radius
RoundedAllView All corners same radius + border_radius shorthand
GradientXView Horizontal gradient bg + draw_bg colors
GradientYView Vertical gradient bg + draw_bg colors
ScrollXView Horizontal scrolling scroll property
ScrollYView Vertical scrolling scroll property
ScrollXYView Both-axis scrolling scroll property

Text Widgets

Widget Description Key Properties
Label Single/multi-line text text, draw_text.color, draw_text.text_style.font_size
H1 - H4 Heading levels text (pre-styled)
P Paragraph text text
TextInput Editable text field text, empty_text, password, read_only, numeric_only
Markdown Markdown renderer body
Html HTML renderer body
LinkLabel Clickable link text text, url

Buttons

Widget Description Key Properties
Button Standard button text
ButtonFlat Flat style button text
ButtonFlatter Minimal button text

Toggles

Widget Description Key Properties
CheckBox Check box text, active
Toggle Toggle switch text, active
RadioButton Radio button text, active

Input Widgets

Widget Description Key Properties
Slider Horizontal slider min, max, step, default, precision
DropDown Dropdown select labels: ["a", "b", "c"]

Media

Widget Description Key Properties
Image Image display source, fit (Stretch/Horizontal/Vertical/Smallest/Biggest/Size)
Svg External SVG file renderer draw_svg.svg (crate_resource/http_resource), animating, draw_svg.color
Icon SVG icon (tinted) draw_icon.svg, draw_icon.color, icon_walk
Vector Inline vector graphics viewbox, Path{d: "..."}
LoadingSpinner Loading indicator color, rotation_speed
MapView Map widget center_lon, center_lat, zoom (MUST use fixed height!)

Layout Helpers

Widget Description Usage
Hr Horizontal rule Divider line
Vr Vertical rule Vertical divider
Filler Flexible space Push siblings apart (use between Fit siblings only!)
Splitter Resizable split axis: Horizontal/Vertical, a/b children
FoldHeader Collapsible section header + body children

Lists

Widget Description Usage
PortalList Virtualized list For large lists (100+ items), only renders visible items
FlatList Simple list For small lists, renders all items

Navigation

Widget Description Control
Modal Modal dialog .open(cx) / .close(cx) from Rust
Tooltip Tooltip popup Hover-triggered
PopupNotification Toast notification Timed display
SlidePanel Sliding panel slide_from
ExpandablePanel Expandable area open/close
PageFlip Page switcher active_page: page_name

…

الأسئلة الشائعة

ما الفرق بين `View` و`SolidView`؟

`View` حاوية شفافة أساسية، بينما `SolidView` هو `View` يمكن أن يكون له لون خلفية صلب.

كيف أجعل النص يظهر على خلفية ملونة؟

استخدم `new_batch: true` مع خصائص لون الخلفية لضمان رسم النص بشكل صحيح فوق الخلفية.

كيف أنشئ قائمة قابلة للتمرير؟

استخدم `ScrollXView` للتمرير الأفقي، و`ScrollYView` للتمرير العمودي، و`ScrollXYView` للاتجاهين معًا.

التفاصيل

الوصف الأصلي من المؤلف

Makepad 2.0 guidance for widgets; use when building or debugging Makepad UI code.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5143
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة