258 Commits
Author SHA1 Message Date
Liu e6506fca90 feat(app): add lcui_request_frame and animation timer driver 2026-08-05 22:40:07 +08:00
Liu a0a1669176 fix(ptk): initialize steptimer last_time to wall clock
The first call to ptk_steptimer_tick observed a huge delta because
last_time was zero-initialized. In fixed-step mode this caused the
handler to be invoked hundreds of times in a single tick.

- Set last_time to get_time_ms() in ptk_steptimer_init.
- Remove the duplicate is_fixed_time_step assignment.
- Drop the unused frequency field; LCUI uses millisecond time base
  and never read it.
- Document in the header that StepTimer is intended for
  animation/simulation timing, not render throttling.
- Add test_steptimer covering init timing, variable-step,
  fixed-step catch-up, and max_delta clamping.
2026-05-20 22:32:52 +08:00
copilot-swe-agent[bot]andlc-soft 1beafdfd5b refactor: convert pd_image_readers to fixed-index array, O(1) get_methods
Agent-Logs-Url: https://github.com/lc-soft/LCUI/sessions/31fedd8b-88fb-48dd-b055-303325c02c73

Co-authored-by: lc-soft <1730073+lc-soft@users.noreply.github.com>
2026-04-29 22:25:53 +08:00
Liu e873c47216 refactor(ui): change image event listener return types to bool 2026-03-31 21:20:28 +08:00
Liu ded5f84022 fix(ui): memory leak and division by zero error 2026-03-31 21:20:28 +08:00
Liu c4895a3efb fix(ui): cannot set css shorthand property 2026-03-31 21:20:28 +08:00
Liu f07b06d154 refactor(css): const css_propdef_t * 2026-03-31 21:20:28 +08:00
rewine cf23a967bb fix(ptk): fix window size constraints mapping 2026-03-31 21:20:02 +08:00
Liu 06a958eda4 fix(ui): clear implicit conversion warnings 2025-08-16 11:22:29 +08:00
Liu a69f2b1bd7 feat(ptk): add Windows implemention for clipboard 2025-08-16 11:18:51 +08:00
Liu d3197db425 fix(ptk): ignore special characters entered with Ctrl key combination 2025-08-16 11:18:51 +08:00
Liu a9ab79a338 fix(ptk): request text failed when clipboard content is empty (#318) 2025-08-16 11:18:51 +08:00
Liu ae9b228f48 fix(ptk): incorrect window minmaxinfo 2025-04-30 18:54:20 +08:00
Liu 1de2dfd62c fix: delay refresh window to use the latest size of widget 2025-04-16 00:16:38 +08:00
Liu 91895a0b19 chore(pandagl): update logger level 2025-04-16 00:16:30 +08:00
rewine 8f205eca97 fix: format-overflow error in gcc 14
log:
format-overflow 从 gcc 14 开始被视为`错误`而非`警告`
> error: lib/css/src/library.c:448:41: 错误:‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=]
>  448 |                 sprintf(fullname, "%s %s", link->group->name, selector);
>      |

参考:
https://stackoverflow.com/questions/73769693/how-to-fix-warning-sprintf-swriting-a-termination-nul-past-the-end-ot-the-dest
2025-03-04 10:27:13 +08:00
Liu d6d08c7330 chore: update copyright year 2025-01-26 18:55:58 +08:00
Liu 9510e2c2ef style: format code and delete unused files 2025-01-06 23:14:33 +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 cfa605110e style: add BOM header 2024-12-23 00:02:48 +08:00
Liu 5a866286c5 style: clear uninitialized warnings 2024-12-22 23:17:11 +08:00
Liu 8dfde9ddd1 chore: update lib/yutil 2024-12-22 23:17:02 +08:00
Liu 6851e9aef3 refactor: change type naming style 2024-12-22 23:14:13 +08:00
Liu 518f206357 feat: update lib/yutil 2024-12-22 23:14:13 +08:00
Liu 28203aa59c feat(ui-widgets): add ui_text_get_content_w() 2024-12-22 23:14:13 +08:00
Liu 4f19df5c7a fix(ui): incorrect line-height calculation 2024-12-22 23:14:13 +08:00
Liu d1493e315d feat: new layout process 2024-12-22 23:14:13 +08:00
Liu 44ab3aeae6 feat(ui-widgets): add scrollarea 2024-12-07 13:30:31 +08:00
Liu bd1129f7b0 fix(ui): flex-basis was not recalculated during layout 2024-12-07 13:30:30 +08:00
Liu fcff153784 fix(ui): correct width calculation 2024-12-07 13:30:30 +08:00
Liu a15eaaca01 feat: update yutil 2024-12-07 13:30:30 +08:00
Liu 9435396de5 feat(ui): add ui_widget_set_background_image_url() 2024-12-07 13:30:30 +08:00
Liu 1f35451526 feat(ui): add css background-clip property 2024-12-07 13:30:30 +08:00
Liu 0c9abbe15b fixup! feat(ui): improve the event and loading logic of image loader 2024-12-07 13:30:30 +08:00
Liu a6bbf43ac6 feat(ui-widgets): change file uri format
BREAKING CHANGE: href="file:path/to/file" -> href="file:///path/to/file"
2024-12-07 13:30:30 +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 85c34e6c31 feat(css): support selector containing escape characters 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 d0a94b7fce fix(platform): fbapp driver memory leak 2024-12-07 13:30:29 +08:00
Liu f362ef28a7 fix(platform): correct the thread cancelation in x11clipboard 2024-12-07 13:30:29 +08:00
Liu 1bc1d28e22 fix(platform): the fbapp driver's event loop did not exit as requested 2024-12-07 13:30:29 +08:00
Liu c15d7a605e fix(css): destroy strpool after destroying the style rules 2024-12-07 13:30:29 +08:00
Liu 34d373b4c6 fix(pandagl): correct character position calculation in text line drawing 2024-12-07 13:30:29 +08:00
Liu 5efe7f3ae9 fix(ui): the class change of ancestor widgets did not trigger style refresh 2024-12-07 13:30:29 +08:00
Liu e37dffa510 fix(css): the space property in the style declaration is not set correctly 2024-12-07 13:30:28 +08:00
Liu 738853e939 refactor(ui-xml): clear compiler errors 2024-12-07 13:30:28 +08:00
Liu 375e03bd36 feat: replace custom bool type with bool type in stdbool.h 2024-12-07 13:30:28 +08:00