Liu
1e48b886a0
feat(widgets): add progress label and value
2026-10-18 15:42:32 +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
8876c70f93
feat(widgets): add dialog and alert-dialog widgets
2026-10-18 15:42:21 +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
Liu
10b3665071
feat(widgets): add portal and select widget
2026-10-17 21:16:38 +08:00
Liu
13c32f98a3
feat(widgets): add field widget
2026-10-17 21:16:34 +08:00
Liu
fd23dd079f
feat(widgets): add radio-group widget
2026-10-17 21:16:28 +08:00
Liu
8f77b1f32e
feat(widgets): add checkbox widget
2026-10-17 21:16:26 +08:00
Liu
38aab01ec6
feat(widgets): add label widget
2026-08-05 22:42:29 +08:00
Liu
6cd01b468e
chore: update copyright comment
2026-08-05 22:42:22 +08:00
Liu
2ccb6aa151
feat: add progress widget
2026-08-05 22:42:20 +08:00
Liu
d48c8cc259
feat(settings): add custom string settings API
...
Expose lcui_settings_get_string / lcui_settings_set_string for reading
and writing custom [section] key-value pairs. Writes mark the settings
dirty; persistence requires a subsequent lcui_settings_flush() call.
2026-08-05 22:42:18 +08:00
Liu
7f9f52b904
chore: update copyright and email
2026-08-05 22:42:16 +08:00
Liu
4bb0d51cd5
feat(settings): schema-driven serialization and window state persistence
...
- Per-window state with [window.<id>] sections in settings.ini
- Settings module split into rendering and window_state subsystems
- Schema-driven (de)serialization with DEFINE_SETTING_INT/BOOL_FIELD macros
- Listener-based change notification via deserialize/serialize callbacks
- Integration tests for get/set, validation, and bind/restore lifecycle
2026-08-05 22:42:14 +08:00
Copilot
cc0b79fccb
feat: update settings APIs and add persistent configuration support ( #329 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2026-08-05 22:42:03 +08:00
Liu
2404c535f3
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-08-05 22:41:13 +08:00
Liu
20b24cb9fc
refactor(app): drop app_ prefix from public API
...
BREAKING CHANGE: lcui_app_get_fps -> lcui_get_fps,
lcui_app_set_frame_rate_cap -> lcui_set_fps_cap,
settings.frame_rate_cap -> settings.fps_cap.
lcui_app_init, lcui_app_destroy, lcui_app_process_events
removed from public header — use lcui_init, lcui_destroy,
lcui_run instead.
2026-08-05 22:41:07 +08:00
Liu
e6506fca90
feat(app): add lcui_request_frame and animation timer driver
2026-08-05 22:40:07 +08:00
Liu
940a0fc33a
chore: update copyright
2025-01-05 23:29:56 +08:00
Liu
4ad7d8a4fb
feat: font alias
2025-01-05 23:08:45 +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
fbd6d9f990
feat: support canceling tasks
...
BREAKING CHANGE: The data structure and function parameters related to the worker library have been changed
2024-12-07 13:30:30 +08:00
Liu
bdd7cb5f75
feat: merge libtimer into libptk
...
BREAKING CHANGE: lcui_set_timeout -> ptk_set_timeout, lcui_set_interval -> ptk_set_interval
2024-12-07 13:30:29 +08:00
Liu
20ae97a1a2
feat: lib/platform -> lib/ptk
...
BREAKING CHANGE: lib/platform -> lib/ptk, and the naming style of
libplatform has changed to have a `ptk_` prefix.
2024-12-07 13:30:29 +08:00
Liu
375e03bd36
feat: replace custom bool type with bool type in stdbool.h
2024-12-07 13:30:28 +08:00
Liu
d60ec9227d
chore: update copyright year
2024-05-13 22:49:22 +08:00
Liu
023b35e245
chore: add copyright header
2024-05-13 22:49:20 +08:00
Liu
549f8077a6
fix(ui): correct widget box comparison and dirty rectangle collection
2024-05-13 22:49:17 +08:00
Liu
3cf81201bd
feat: add LCUI/main.h
2023-05-20 23:33:29 +08:00
Liu
ed852fef26
feat: add app initialization and destruction functions
2023-05-14 22:13:47 +08:00
Liu
f3f1fc612c
feat: update libctest
2023-05-02 14:44:41 +08:00
Liu
f5d0d120a2
refactor: update header files and xmake.lua
2023-04-30 00:31:47 +08:00
Liu
d4ea54a78a
refactor: remove some dependencies of libui
2023-04-01 22:36:10 +08:00
Liu
4769ad7bd3
refactor: remove the dependency of libplatform on LCUI
2023-04-01 22:36:09 +08:00
Liu
cc5dfe4690
refactor: remove the dependency of libcss on LCUI
2023-04-01 22:36:09 +08:00
Liu
98632bdfca
feat: merge libimage, libtext and libfont into pandagl
2023-04-01 22:36:08 +08:00
Liu
e533853908
feat: update css library
...
feat(css): add css value definition parser
refactor(css): change the parameter types of css_parse_* functions
refactor(css): migrate to new data types
refactor(css): migrate to new data types (2)
refactor(css): migrate to new data types (3)
test: add valdef test
feat(css): add css_valdef_parser_finish()
refactor(css): split css_library.c
refactor(css): css_data_type.c -> css_data_types.c
fix(css): the parsing error message of sign is not truncated
fix(css): correct initialization of data type library
fix(css): error message should not be empty
feat(css): add css_valdef_to_string()
feat(css): add double bar combinator
feat(css): add double ampersand combinator
feat(css): add curly braces multiplier
feat(css): add brackets combinator parser
docs: update css value matcher section
feat(css): add question mark multiplier
test(css): add test for brackets combinator
docs(css): update libcss_css_value.md
docs: update directory structure
refactor: numberic -> numeric
refactor(css): delete style property parser
refactor: migrate to css property API
docs(css): add css value converter section
feat(css): add css_computed_style_t
refactor(css): rename `css_style` associated identifiers
feat(css): add css_cascade_style()
refactor(css): change type of css_value_matcher_t::value
refactor(css): update args of css_register_property()
refactor(css): move css_computed_style_t
feat(css): update opacity property
feat(css): update z-index property
feat(css): update display property
feat(css): update pointer-events property
feat(css): update flex-wrap property
feat(css): update flex-direction property
feat(css): update flex-grow property
feat(css): update flex-shrink property
feat(css): update align-items property
feat(css): update justify-content property
feat(css): update position property
feat(css): update box-sizing property
feat(css): update align-content property
feat(css): update white-space property
feat(css): update content property
feat(css): update text-align property
feat(css): automatically register new keywords
feat(css): update font-style property
feat(css): update visibility property
feat(css): update border-*-style property
refactor: update css_unit_t definition
feat(css): update border-*-*-radius properties
refactor(css): delete CSS_PERCENTAGE_VALUE
refactor(css): css_cascade_length() -> css_cascade_length_auto()
refactor(css): update enum definitions
feat(css): update border-*-width properties
feat(css): update border-*-color properties
feat(css): add css_array_value_get_length()
feat(css): add border-width shorthand property
feat(css): add border-style shorthand property
feat(css): add border-radius shorthand property
feat(css): add border-color shorthand property
feat(css): add border shorthand property
feat(css): add margin shorthand property
feat(css): add padding shorthand property
feat(css): update size related properties
feat(css): update top, right, bottom, left properties
feat(css): update flex-basis property
feat(css): update line-height property
feat(css): update color property
refactor(css): add css_cascade_bg_border_color()
refactor(css): bits -> keyword_bits
refactor(css): flag -> keyword
refactor(css): update css_color_value_t definition
feat(css): add CSS_COLOR_TRANSPARENT
refactor(css): remove transparent keyword
feat(css): update font-size property
feat(css): update font-family property
feat(css): update background shorthand property
feat(css): update vertical-align property
feat(css): update box-shadow property
feat(css): update the computing of the box-shadow property
feat(css): update the computing of the background property
feat(css): update the computing of the border property
refactor(css): keyword_bits -> type_bits
refactor(css): enum css_*_e -> uint8_t
feat(css): add absolute size computing
feat(css): add absolute padding computing
feat(css): add absolute margin computing
style(css): format code
feat(css): add top, right, bottom, and left absolute value computing
feat(css): add flex-basis absolute value computing
refactor(ui): replace data type of computed style
feat(ui): update widget background style computing
feat(ui): update widget box-shadow style computing
feat(ui): update widget border style computing
feat(ui): update widget box computing
feat(ui): use tabindex instead of focusable
feat(css): remove focusable property
feat(css): update font-weight property
fix(css): clear compile errors
refactor(ui): adapt to new computed style data structure
refactor(ui): delete ui_widget_box_model_t
fix: clear some compiler warnings
refactor(ui): ui_font_style.c -> ui_text_style.c
feat(ui): remove unnecessary helper functions
fix: clear some compiler warnings
fix(font): correct bitmap cache access
fix(css): correct the key assignment of keywords
fix(css): some memory access errors
fix: missing NULL at the end of font names
fix: clear gcc errors
refactor: clear gcc warnings
fix(css): array subscript is above array bounds
fix(css): incorrect property name memory allocation
fix(css): style parser memory leak
fix(css): prop->valdef memory leak
refactor(css): logger_debug -> DEBUG_MSG
refactor(ui-builder): clear warnings
fix(css): css_properties.list memory leak
fix(css): css_style_link_group_create() memory leak
fix(css): incorrect keyword storage
test(css): correct color_value comparison
test: clear compiler errors
fix(css): correct the return value of css_register_keyword()
fix(css): correct integer type value parsing
chore(css): _DEBUG -> DEBUG
feat(css): add string value parsing
fix(css): correct font-family initial value
test(css): add test_css_computed.c
fix(css): value read error in css_cascade_background()
fix(css): add some missing properties
feat(css): add flex shorthand property
build: update rundir of lcui-css-test
fix(css): font-family parsing error
feat(css): style array value to string
chore(vscode): add compileCommands
fix(css): string value parsing error
fix(css): correct content property initial value
fix(css): the parsed style data is not stored correctly
fix(css): correct cascading of some properties
fix(css): percentage value parsing inccorect
fix(css): <length> should not contain <percentage>
fix(css): css_array_value_duplicate() did not copy the last value
feat(css): add visible keyword
feat(css): cascade each property in order
refactor(css): add style_decl.c
refactor(css): use css_style_decl_t instead of css_style_t
fix(css): incorrect number of resolved values
refactor(css): add css_style.c
feat(css): parse shorthand properties in the parsing phase
refactor(css): add background property parser
refactor(css): add border property parser
refactor(css): css_select_style_decl -> css_find_style_store
refactor(css): add css_select_style_with_cache()
refactor(css): add margin property parser
refactor(css): add padding property parser
refactor(css): add flex property parser
fix(ui): incorrect widget style cascading order
refactor(css): const css_propdef_t* -> css_propdef_t*
refactor(css): update arguments of shorthand property parser
fix(css): incorrect value parsing of shorthand property
fix(css): unexpected truncation while parsing color value
fix(css): correct value matching and style computing
fix(ui): correct css style operation
fix(platform): crash when closing window
refactor(css): delete file prefix
refactor(css): delete style.c
refactor(css): clear compiler warnings
refactor: update directory structure and build configuration
feat(css): add dump functions
fix(css): correct valdef parser cursor operation
fix(css): correct the definition of margin and padding
fix(css): correct flex property parsing and definition
refactor(ui): adjust the use of calculated styles in the layout engine
chore: tests/helloword -> examples/hello
fix(ui): some bugs in block layout
fix(css): correct flex property definition
refactor(ui): simplify the naming of widget style and layout diff API
refactor(ui): update reflow trigger rules
refactor(ui): ui_widget_auto_reflow -> ui_widget_reflow
feat(ui): allow multiple observers to connect to the same widget
refactor(ui): simplify widget update process
refactor(ui): adjust row processing in block layout
refactor(ui): adjust the data structure used in the flexbox layout
fix(ui): correct flex layout algorithm
build: update config
2023-04-01 22:36:07 +08:00
Liu
e30aa7d016
feat(ui): allow multiple observers to connect to the same widget
2023-04-01 22:36:06 +08:00
Liu
fd58de75ab
refactor: add lib/lcui-def
2023-04-01 22:35:29 +08:00
Liu
9b7bf239f2
refactor: redesign the graphics library API ( #281 )
...
* refactor: redesign PandaGL library
* refactor: update rect and canvas API
* refactor(pandagl): renames the line drawing function
* refactor(pandagl): replace pd_painter_t with pd_context_t
* fixup! refactor: update rect and canvas API
* test(pandagl): add tests
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
2023-04-01 22:35:29 +08:00
Liu
e74d4a3f0b
refactor: redesign font library
2023-04-01 22:35:29 +08:00
Liu
6b3f7d2c38
refactor: redesign ui widgets library
2023-04-01 22:35:29 +08:00
Liu
6ab1386638
refactor(ui-builder): ui_load_xml() -> ui_load_xml_file()
2023-04-01 22:35:28 +08:00