Commit Graph
16 Commits
Author SHA1 Message Date
Liu afa800dfaf build(xmake): fix package name, target naming and example install
- Remove per-lib set_project() calls that overrode the global lcui
  project name; xmake show now correctly reports the project as lcui.
- Move per-lib set_version() into the corresponding target() block so
  each sub-library keeps an independent version usable for standalone
  packaging.
- Add set_default(false) and set_group(examples) to all pandagl
  examples so they are no longer picked up by xmake package.
- Rename targets to use dashes for consistency:
    pandagl_cairo_example  -> pandagl-cairo-example
    preview_block_layout   -> preview-block-layout
    preview_flex_layout    -> preview-flex-layout
    preview_scrollbar      -> preview-scrollbar
    preview_widget_opacity -> preview-widget-opacity
- Bump yutil submodule to drop its set_project() call as well.
2026-06-01 22:27:07 +08:00
Liu 58a9702316 refactor(ui-router): extract router widgets into a new lib
Create lib/ui-router/ as a thin UI binding layer between libui and librouter, exposing the router-link and router-view widgets under <ui_router/...>.

* Move src/widgets/router_{link,view}.c and the matching public headers into lib/ui-router/src and lib/ui-router/include.

* Drop include/LCUI/widgets/router_{link,view}.h and the corresponding entries in include/LCUI/widgets.h; src/lcui_widgets.c now pulls registrations from <ui_router.h>.

* Wire libui-router into the root xmake.lua add_includedirs and lcui add_deps chain; libui-router depends on yutil + libui + librouter only.

* tests/integration/test_router.c stays at the integration layer (router widgets exercise text inheritance and other libui internals); only its #include set is updated to use <ui_router.h>.

* Bump CHANGELOG and add bilingual lib/ui-router/README.
2026-05-24 17:56:24 +08:00
Liu 24f3192b9a refactor: update LCUI's dependencies on ui-widgets and ui-router 2024-12-29 23:37:24 +08:00
Liu 6851e9aef3 refactor: change type naming style 2024-12-22 23:14:13 +08:00
Liu 375e03bd36 feat: replace custom bool type with bool type in stdbool.h 2024-12-07 13:30:28 +08:00
Liu 0064fc840f chore: update copyright statement 2024-05-13 22:49:23 +08:00
Liu 687aa5f996 fix(ui-router): the style of the router-link has not been updated 2024-05-13 22:49:23 +08:00
Liu 16002e0846 fix(ui): the widgets created in the ready event handler aren't updated 2024-05-13 22:49:22 +08:00
Liu d60ec9227d chore: update copyright year 2024-05-13 22:49:22 +08:00
Liu d683955090 build: do not default to building test programs 2024-05-13 22:49:20 +08:00
Liu 023b35e245 chore: add copyright header 2024-05-13 22:49:20 +08:00
Liu 59e3220370 style: euqal -> equal 2024-05-13 22:49:18 +08:00
Liu 329b7c192d refactor: simplify naming and function parameters 2023-06-07 23:39:01 +08:00
Liu 80afffa60a feat(ui): remove uncommon parameter of ui_widget_on() 2023-05-20 23:06:13 +08:00
Liu bb17087d0b feat(ui): rename textview to text 2023-05-14 22:13:47 +08:00
Liu c2930907cb feat: add libui-router 2023-05-03 17:49:51 +08:00