3859 Commits
Author SHA1 Message Date
Liu 029d5c4e22 feat(widgets): add button group widget
- add button-group, button-group-text and button-group-separator
  prototypes with orientation and separator APIs
- mark direct children as geometry items, keep select, popover and
  dropdown wrappers out of the border geometry and clean up on unlink
- theme the group for the nova style, covering nested groups, select,
  input group and first/last edge rules
- add integration tests for factories, marking, geometry, input flex
  and trigger wrappers
- add zh-CN documentation, field tables, sidebar entry and C/XML/TSX
  examples for every section
2026-11-08 00:20:39 +08:00
Liu a23c16f5c5 feat(widgets): add input group widget 2026-11-08 00:20:36 +08:00
Liu aeb805ca2f docs(doc-viewer): register shared demo snippets once 2026-11-08 00:20:34 +08:00
Liu 3dda91be11 feat(widgets): add accordion widget 2026-11-08 00:20:33 +08:00
Liu 20b3221cfd fix(ui): stabilize flex layout and add layout contract tests
- merge own sizehint with child layout extent; keep sizehint callable
- support cross-axis auto margins and flex-basis content/percentage
- fix space-evenly gap, canvas destroy, breadcrumb intrinsic width and dynamic text intrinsic refresh
- add flex contract, sizehint, empty layout and field layout suites
- move empty/field scenarios to theme-independent test fixtures
- document layout coverage and known gaps
2026-11-08 00:20:31 +08:00
Liu a6584f5a95 docs(ui): update library list after helper merges
- remove libui-cursor, libui-router and libworker entries
- point lib/router to lib/router
- update architecture notes for the internal worker queue
2026-11-08 00:20:31 +08:00
Liu af3c76c239 fix(router): remove unused libui dependency 2026-11-08 00:20:30 +08:00
Liu c575d7fab5 refactor(worker): internalize worker task queue
- move the worker queue into src/lcui_worker.c
- expose only lcui_worker_* from <LCUI/worker.h>
- reuse the global async queue in anchor
- fix double unlock, active-state race and cancel target
- add worker integration tests
2026-11-08 00:20:29 +08:00
Liu ef42f0894c refactor(ui): move router widgets into core widgets
- move router-link and router-view into src/widgets
- add <LCUI/widgets/router.h> and aggregate it in widgets.h
- remove the libui-router target and package
2026-11-08 00:20:29 +08:00
Liu 7ecac3ae2b refactor(ui-server): merge ui-cursor into ui-server
- move cursor.c and ui_cursor.h into libui-server
- remove the libui-cursor target and package
- drop the unused ui.h and yutil dependencies
- declare libcss explicitly for ui-server
2026-11-08 00:20:28 +08:00
Liu 53bebe0905 docs: index LCUI internals in AGENTS and project docs
Move code-mechanism reference out of the lcui skill into docs/internals: overview, settings/headers, widgets/Portal/events, CSS, and the layout engine. Add docs/testing/layout-tests.md for the layout test conventions. AGENTS.md now indexes these documents and links each duplicated rule section to its detailed doc. Table display values are parsed but have no layout implementation on the current mainline.
2026-11-08 00:20:28 +08:00
Liu 22c883b79e fix(ui): wrap and stabilize flex column text layout
Persist parent width constraint (source + generation) and wrap text at it; six-pass flex layout with <=1 reflow per child; fit-content clamp for centered auto-width children; re-derive centered column cross width from constraint on standalone reflow; fixed-cross flex containers ignore child size hint. Record row main-axis allocation as a persisted constraint so a flex:1 child keeps its width across standalone reflow. Measure/layout phase split, measurement cache invalidation test, and sizehint capability flag so zero-size results are not mistaken for missing sizehints. Add layout engine rules doc and integration tests (wrap, empty, empty-basic, field-checkbox remount, empty media icon).
2026-11-08 00:20:27 +08:00
Liu 263c62e531 feat(widgets): add breadcrumb widget
- add the breadcrumb family: root, list, item, link, page, separator, ellipsis
- build from a path with a per-call label provider, append_item/append, or explicit data-path items
- collapse overflowing items while keeping as many trailing nodes as fit; the ellipsis opens a Portal-based dropdown
- emit change with the clicked node key; pages, disabled items, and custom append content never emit
- add theme rules, integration tests, a preview scene, and zh-CN docs with C/XML/TSX demos
2026-11-08 00:20:26 +08:00
Liu afdd175275 docs(specs): remove deferred notes 2026-11-02 22:31:26 +08:00
Liu f226404554 feat(widgets): add sidebar widget 2026-11-02 22:31:25 +08:00
Liu ba50322e22 feat(widgets): add dropdown menu widget 2026-11-02 22:31:24 +08:00
Liu 898a96cb8c feat(widgets): add collapsible widget 2026-11-02 22:31:23 +08:00
Liu 0c842a10b8 fix(ptk): remove cross-process window assertion 2026-11-02 22:31:23 +08:00
Liu 172b0c1908 docs(doc-viewer): add horizontal code scrolling 2026-11-02 22:31:21 +08:00
Liu 1dc63c68ee docs(doc-viewer): scroll long code blocks with line numbers 2026-11-02 22:31:19 +08:00
Liu 8c78437264 fix(widgets): contain nested scrollarea wheel events 2026-11-02 22:31:18 +08:00
Liu 49e719995c feat(widgets): add attachment widget 2026-11-02 22:31:17 +08:00
Liu 7e5350a883 fix(widgets): bind late data dialog triggers 2026-11-02 22:31:16 +08:00
Liu 860b1f1289 feat(widgets): add card widget 2026-11-02 22:31:16 +08:00
Liu ccad5ef131 feat(widgets): add toast widget 2026-11-02 22:31:15 +08:00
Liu 47014c5dbb feat(widgets): add popover widget 2026-10-28 23:40:31 +08:00
Liu 2ac38a6ca6 feat(widgets): add tooltip widget
Add Tooltip/TooltipTrigger/TooltipContent, data-tooltip attributes, Portal placement with border arrow, C attach helpers, docs, and tests.
2026-10-28 23:40:30 +08:00
Liu 16f5e91cb8 feat(widgets): update radio-group style 2026-10-18 15:42:34 +08:00
Liu e80b997c45 feat(widgets): update field style 2026-10-18 15:42:33 +08:00
Liu ad19263271 docs: update checkbox examples 2026-10-18 15:42:33 +08:00
Liu 1e48b886a0 feat(widgets): add progress label and value 2026-10-18 15:42:32 +08:00
Liu d329b1b874 docs: fix sidebar scroll 2026-10-18 15:42:31 +08:00
Liu a7a9f72c0c docs: update style
docs: update style
2026-10-18 15:42:31 +08:00
Liu 703260e1a7 style(widgets): add cursor rule 2026-10-18 15:42:30 +08:00
Liu 0d683ba618 build: update xmake-requires.lock 2026-10-18 15:42:30 +08:00
Liu ae5fc2ea75 docs: update AGENTS.md 2026-10-18 15:42:29 +08:00
Liu 3f94b84b2b docs: add specs 2026-10-18 15:42:29 +08:00
Liu bbdb80f045 feat(styles): centralize widget styles in the nova default theme
Manage all built-in widget styles in one stylesheet. `nova` is the
default theme; further themes will be added under src/styles.
2026-10-18 15:42:28 +08:00
Liu 19f52bfd2e docs: format examples 2026-10-18 15:42:26 +08:00
Liu 323b641bbc feat(widgets): add groups, scrolling, alignment and checkmark to select 2026-10-18 15:42:25 +08:00
Liu a1078ff201 feat(widgets): add spinner and shimmer widgets 2026-10-18 15:42:23 +08:00
Liu f760db2176 fix(ui): ui_widget_render should re-anchor offscreen captures in logical units 2026-10-18 15:42:22 +08:00
Liu 8876c70f93 feat(widgets): add dialog and alert-dialog widgets 2026-10-18 15:42:21 +08:00
Liu ad0ce709ee feat(pandagl): add pd_canvas_rotate and pd_canvas_mask_composite 2026-10-18 15:42:20 +08:00
Liu 20ac4484b9 feat(widgets): add empty widget 2026-10-18 15:42:19 +08:00
Liu a805852558 feat(widgets): add item widget 2026-10-18 15:42:18 +08:00
Liu b674004673 feat(widgets): add alert widget 2026-10-17 21:16:54 +08:00
Liu 6b7a4d41de feat(widgets): add badge widget 2026-10-17 21:16:53 +08:00
Liu 7154337944 feat(widgets): add button variants, sizes and themed styles with docs 2026-10-17 21:16:51 +08:00
Liu 92b46eee10 feat(widgets): add icon widget 2026-10-17 21:16:50 +08:00