47 Commits
Author SHA1 Message Date
Liu 2c4958b427 feat(doc-viewer): show repository icons, star counts and version badge
- add monochrome GitHub and Gitee assets with light/dark CSS backgrounds
- replace the GitHub text link with icon links for both repositories
- fetch and cache repository star counts at build time and render them
  beside the icons when available
- abbreviate counts of 1000 or more as `Nk` and separate the navbar
  actions with vertical dividers
- move the version number from the navbar to a badge below the Home title
- harden the star script for cold checkouts: root-relative paths, request
  timeouts, cache fallbacks and CI coverage
2026-11-21 20:53:30 +08:00
Liu 3f94b84b2b docs: add specs 2026-10-18 15:42:29 +08:00
CopilotandLiu 437d93d34e docs: add native doc-viewer and widget documentation (#324)
- Add examples/doc-viewer, an LCUI-based documentation viewer with an
  MDX compiler pipeline that converts source MDX files into C/TSX
  page components rendered by lcui build.
- Add zh-CN and en documentation for 5 widgets (anchor, button,
  scrollarea, text, text-input), each with C/TSX/XML example variants
  and widget-fields data.
- Add handbook and overview documentation.

Co-authored-by: Liu <lc-soft@live.cn>
2026-08-05 22:42:19 +08:00
Liu 24f3192b9a refactor: update LCUI's dependencies on ui-widgets and ui-router 2024-12-29 23:37:24 +08:00
Liu c2930907cb feat: add libui-router 2023-05-03 17:49:51 +08:00
Liu f5d0d120a2 refactor: update header files and xmake.lua 2023-04-30 00:31:47 +08:00
Liu 90f595ea20 refactor: redesign platform and ui libraries
feat: redesign the ui library

fixup! feat: redesign the app library

feat: add the ui-server library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the app library

feat(ui): add mutation observer

fixup! feat: add the ui-server library

fixup! feat(ui): add mutation observer

feat: migrate to new app and ui libraries

refactor: rename LCUI_Build.h and remove some macros related to malloc

build: copy lib/yutil/include/yutil/*.h into the include/LCUI/util

refactor: lib/app -> lib/platform

refactor: clear compilation errors in Linux

fix: conditional jump depends on uninitialised value

fix(platform): incorrect Linux app driver

feat(platform): add --use-linux-input-event option

fix(platform): correct app driver and data types

fix: test_settings failed

fix: test errors and memcheck errors

fix: undefined reference to 'WinMain'

fix(platform): the error message is not formatted correctly

fix(platform): the mouse position in the mouse event is incorrect

fix(platform): incorrect window size

fix(util): undefined reference to 'logger_log'

refactor: remove the dependency of fontlibrary.h on graph.h

fix: freetype.dll not found

fix(ui): the wheel event was not dispatched correctly

fix(ui-server): the window in the minmaxinfo event is not required

fix: the widget is not connected to the window

fix(ui): mutation observer connection node incorrect

refactor(css): update LCUI_StyleListNode structure

refactor(ui): LCUI_WSTATE_* -> UI_WIDGET_STATE_*

fix: the root widget must have a fixed size for the layout to be correct

fix(ui): root widget did not trigger the ready event

fix(ui): mutation observer not working

fix(ui-server): widget mutation handler is not working

fix: the UI is not redrawn when resizing the window

fix(platform): APP_EVENT_QUIT not working

fix(platform): Incorrect peekmessage usage

test: use the event functions provided by the libui

docs: add README.md for some libraries

feat(ui): add ui logger

fix(ui-server):  `wnd_mutation` is uninitialized

fix(platform): fb app engine not work

build: fix xmake file matching warning

test: update scroll bar test code

build: use system libxml2

build: delete unneeded openMP rules

refactor(platform): remove tick thread

refactor(ui): clear compilation warnings

fix: memory leak bug

test: fix compilation errors

build: add "headers" target

refactor: LCUI_USER -> APP_EVENT_USER

fix: ui image event was not processed

refactor: delete steptimer.h

test: update requires

fix(platform): incorrect window size

refactor: simplify window creation in ui display mode switching

fix(platform): window position not updated

feat(ui-server): set the initial position of the window to center

feat(platform): add APP_EVENT_VISIBILITY_CHANGE

fix(ui-server): the window content is not completely drawn

fix(platform): windows cannot be maximized and minimized

refactor(ui): change image loader API to public

fix: the window size is incorrect in fullscreen mode

refactor(ui): move some types into ui.h
2023-04-01 22:34:36 +08:00
Augustinas d99040a098 feat(platform): add clipboard support (#271)
* chore(git): Remove LCUI/include from gitignore, so new headers could be added

* feat(clipboard): initial layout setup

* fix(clipboard): remove static + cleanup initialisation

* fix(clipboard): remove static from UseClipboard

* fix(keyboard): do not trigger keyboard event twice

* fix(widget_event): ctrl, shift properties not passed down correctly

* fix(keyboard): undo keyboard changes and add note to look into it more

* feat(clipboard): headers for UseClipboard access

* feat(clipboard): further callback execution

* feat(clipboard): retrieve text at widget level

* feat(textedit): insert paste event text

* feat(textedit): do not insert keys if control char is held.

* chore: clang formatting

* feat(clipboard): add more notes and error messages for implementation

* feat(clipboard): function definitions required for copying

* fix(clipboard): remove switch statement, since we already bind for specific event

* feat(clipboard): further steps for implementing paste to clipboard

* feat(clipboard): further steps for implementing copy

* feat(clipboard): add copy support by copying full widget text

* chore: value name changes

* chore: cleanup implementation by reducing header files

* chore: implementation cleanup

* feat(clipboard): pass down length together with wchar

* chore: function name change

* fix(clipboard): do not use key, since text enum is occupied

* fix(keyboard): do not submit keypress if ctrl is held.
This prevents c and v from being sent when copying or pasting

* feat(clipboard): better struct wrapper
feat(clipboard): pass back w_char instead of char*

* feat(clipboard): make clipboard more generic

* feat(clipboard) include image in clipboard data

* feat(clipboard): use char instead of codes

* chore(clipboard): use a more generic name

* chore: format code

* fix(clipboard): fix internal clipboard text sizes

* fix(clipboard): add +1 len for setting clipboard text

* fix(clipboard): remove +1 from size allocation

* fix(clipboard):add back +1 to allocation

* test(clipboard): configure testing setup

* test(clipboard): copy paste test

* test(clipboard): cleanup tests and remove test seperations

* chore: cleanup imports

* fix: undo wrong file commit

* chore: cleanup comments

* feat(clipboard): add observer thread to handle timeout

* feat(textedit): do not paste null text

* feat(clipboard): add windows implementation

* chore(clipboard): make sure constants are used for clean seperation of responsability

* feat(clipboard): call empty action for when no implementation exists

* feat(clipboard): allow clipboard events to run even if they are empty

* feat(clipboard): implement dummy clipboard for no UI

* test(clipboard): update clipboard test

* fix(clipboard): missing semicolon

* fix: tmp disabling of clipboard for test check

* fix: make sure to free text when setting new cliipboard

* fix: correct in memory representation of clipboard

* feat(clipboard): make sure to free old clipboard before new

* fix(clipboard):make sure to free memory correctly in x11

* fix(clipboard): handle both: no libx11 and if LCUI_GetAppId() != LCUI_APP_LINUX_X11
2023-04-01 22:34:34 +08:00
Liu 57c129b585 build: update the script for copying internal library header files 2023-04-01 22:34:33 +08:00
Liu bd2ee103a6 build: merge test/xmake.lua and copy header files 2023-04-01 22:34:30 +08:00
Liu ea26c6b1a6 build: update test/xmake.lua 2023-04-01 22:32:21 +08:00
Liu ed414c4ba5 build: use xmake instead of autotools 2023-04-01 22:32:20 +08:00
Liu cf31e66b2f refactor: move config.h file to the include directory 2021-05-06 23:06:57 +08:00
Liu 5720346749 test: add tests for graphic processing 2021-05-05 22:09:57 +08:00
Liu 71e10b56a9 chore: update .gitignore 2020-03-02 20:30:17 +08:00
Liu eab71b05de test: add test_block_layout 2020-02-16 17:43:45 +08:00
Liu Chao 9b4841e059 build: add debian directory for build .deb package 2019-10-07 14:14:33 +08:00
Liu c9550ac576 build: add lcpkg files 2019-10-03 15:22:51 +08:00
Liu 241c6522f7 feat(util): add object wrapper and operation set 2019-06-17 21:57:46 +08:00
Liu 6d495cbafe build: add build-win-dist script 2019-03-10 14:20:18 +08:00
Liu Chao d9432be139 chore: ignore binary files 2018-07-22 13:36:53 +08:00
Liu Chao d2282ba6a6 chore: add commitlint 2018-03-24 15:20:08 +08:00
Liu Chao 519ee3c930 chore: ignore node_modules 2018-03-17 21:28:33 +08:00
Liu Chao f329d618ac Add example app for Universal Windows Platform (UWP) 2017-07-02 20:15:32 +08:00
Liu Chao 7e8019ba4e Add Universal Windows Platform (UWP) support code 2017-07-02 20:15:15 +08:00
Liu Chao 825d903799 Add AX_CODE_COVERAGE 2017-06-29 00:09:21 +08:00
Liu Chao 8c4db984db Add test_scaling_support.c 2017-05-15 22:28:44 +08:00
Liu Chao 61f5c43606 Add UWP DLL project, clear compiler warnings and errors 2017-04-15 20:47:20 +08:00
Liu Chao 4df910f226 补充文件忽略规则 2016-09-15 16:42:22 +08:00
Liu Chao 556a59da8a 修改配置 2016-01-04 22:55:10 +08:00
Liu Chao e4e0725060 补充文件忽略规则 2015-11-14 21:29:26 +08:00
Liu Chao 8fe5e4a169 更新文件过滤规则 2015-11-05 23:21:45 +08:00
Liu Chao c9d82b6bac 更新项目相关文件 2015-07-15 11:52:36 +08:00
Liu Chao 557bcb33ac 更新项目 2015-04-19 23:24:03 +08:00
Liu Chao da6c841ec6 updated 2015-03-31 22:39:57 +08:00
Liu Chao 2f716c4886 移除依赖库的头文件和库文件
这些依赖库的头文件和库文件不用放到代码库中,避免代码库多余的体积增长。
需要的话可以自己去下载编译,然后放到工程文件所在目录中。
2014-12-04 20:04:14 +08:00
Liu Chao 50c8728553 添加需忽略的文件 2014-11-11 12:46:15 +08:00
Liu Chao e6c415343b config.h 是由 config.h.in 生成的,需要忽略 2014-11-11 11:15:21 +08:00
Liu Chao 84a6f5bbbe 添加需忽略的文件 2014-11-11 11:11:44 +08:00
Liu Chao afd144966f 添加忽略文件 2014-11-10 19:48:49 +08:00
Liu Chao 057b58c3f9 添加需忽略的文件 2014-03-19 16:37:01 +08:00
Liu Chao 622c7789b5 忽略bin目录下的文件 2014-02-23 18:06:18 +08:00
Liu Chao 9192de3f5a 添加忽略.oepnsdf后缀名的文件 2014-02-22 15:10:02 +08:00
Liu Chao 9c62c130a9 更新忽略的文件 2014-02-22 11:36:39 +08:00
lc-soft c0b182576a Updated .gitignore 2013-11-15 20:42:02 +08:00
Liu Chao 09cfa492b5 更新.gitignore文件 2013-04-23 20:31:21 +08:00
Liu Chao 5c19bf26e5 add .gitignore 2013-04-19 21:33:47 +08:00