27 Commits
Author SHA1 Message Date
Liu b309800d3e build: allow release scope in commit message check
.npmrc uses chore(release): %s again, and the commit-msg hook accepts
"release" alongside lib/ directory names, styles and widgets.
2026-11-24 22:00:47 +08:00
Liu 3d97970efe ci: restrict commit scopes 2026-11-22 23:51:44 +08:00
Liu cd987b81d0 chore(release): add npm version lifecycle script
- sync versions.json, xmake descriptors, generated headers and the CI TARGET_* values from the version npm just wrote
- generate the commit summary into CHANGELOG.md; human-readable notes are written manually on the Releases page
- drop CHANGELOG.zh-cn.md and the automatic release-notes step
- preserve CRLF in sync-versions so --check passes on Windows
2026-11-22 21:59:12 +08:00
Liu 747a222fcc feat(styles): follow the accent in focus rings and app fills
- generate focus box-shadow overrides from the accent primary color
- add the fill-primary class for app-level primary fills
- use it for the doc-viewer payout progress bar
2026-11-22 20:11:20 +08:00
Liu b0c031f8dc feat: add window icon support
- Add ptk_window_set_icons with Win32 WM_SETICON, X11 _NET_WM_ICON and fb no-op.

- Add LCUI window/default icon APIs, DPI-aware HICON selection and pre-rendered built-in icon assets.

- Add pandagl memory image readers and fix bilinear zoom edge sampling.

- Cover file/data icons, defaults and high-DPI sizes with integration tests.
2026-11-21 23:26:34 +08:00
Liu dc0ab38546 feat(styles): add switchable accent color themes
- generate an override stylesheet for each preset from style-nova
- add the ui_theme_* API, custom colors and single-slot loading
- persist the choice and add the navbar color picker
- keep badge variants, tooltip arrows and swatches consistent
2026-11-21 23:26:31 +08:00
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 464eed1402 build: centralize package versions and standardize on C11
versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
2026-11-19 22:03:59 +08:00
Liu 17114108b7 refactor(styles): share the Tailwind config from @lcui/tailwind-config
- replace the duplicated design tokens, core plugin whitelist and shadow
  plugin with the shared package
- drop scripts/theme-colors.js and scripts/tailwind-shadow-plugin.js now
  that both configs consume the package
2026-11-15 23:40:46 +08:00
Liu 9217b1ca3a feat(styles): add light and dark theme support
- share shadcn neutral color tokens between both Tailwind configs
- rewrite Tailwind dark selectors into LCUI-compatible descendant selectors
- theme style-nova components and doc-viewer surfaces for dark mode
- generate GitHub Light and GitHub Dark syntax line pairs for code blocks
- support alpha channels in text style tag colors
- keep focus rings and scrollbars visible on dark surfaces
- use a neutral code surface instead of GitHub's blue-tinted background
2026-11-15 23:40:42 +08:00
Liu 6cd01b468e chore: update copyright comment 2026-08-05 22:42:22 +08:00
Liu 7f9f52b904 chore: update copyright and email 2026-08-05 22:42:16 +08:00
Liu db5ab3dc36 ci: improve format check reliability
- Use project-local clang-format from node_modules/.bin instead of system
  PATH to avoid version mismatches between CI and development environments
- Print clang-format version and binary path in CI logs for debugging
- Add format:check script to package.json so `npm run format:check` works
- Add `needs: format` to build job so formatting failures block the build
  and don't waste CI resources
2026-08-05 22:42:15 +08:00
Liu 9040684246 ci: add pre-commit formatting via lint-staged and clang-format 2026-08-05 22:41:22 +08:00
Liu 0064fc840f chore: update copyright statement 2024-05-13 22:49:23 +08:00
Liu d60ec9227d chore: update copyright year 2024-05-13 22:49:22 +08:00
Liu a04d2654c6 build: add add-copyright.js 2024-05-13 22:49:20 +08:00
Liu afd7bd79e9 build: remove unused scripts 2024-05-13 22:49:20 +08:00
Liu 7b00eba35b build: update make-dist-deb.sh 2023-04-01 22:32:21 +08:00
Liu 85958e4405 chore(release): 2.2.0 2021-05-31 23:28:36 +08:00
Liu 345031d74c chore(release): v2.1.0 2020-07-05 22:35:56 +08:00
Liu b4d0c965cf ci(travis): add codecov script 2020-04-11 17:29:51 +08:00
Liu 9f3aa5b6de build(scripts): handle debian package build failure 2020-04-11 14:29:08 +08:00
Liu 54b423d490 ci(travis): update config file 2020-04-11 14:29:08 +08:00
Liu 2929ea6e7e build(scripts): remove build-win-dist.js 2019-12-01 19:44:31 +08:00
Liu Chao 9b4841e059 build: add debian directory for build .deb package 2019-10-07 14:14:33 +08:00
Liu 6d495cbafe build: add build-win-dist script 2019-03-10 14:20:18 +08:00