[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115111":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},115111,"gpui-liquid-glass","sxhxliang\u002Fgpui-liquid-glass","sxhxliang","A skill for implementing, repairing, and analyzing Apple's native Liquid Glass in Rust GPUI and GPUI Kit desktop applications.  已经在Genius编辑器应用 ","https:\u002F\u002Fgns.sh",null,"Python",61,4,1,0,3,40.9,false,"main",true,[],"2026-10-31 03:24:30","2026-11-21 02:28:36","# GPUI Liquid Glass\n\n[简体中文](README.zh-CN.md)\n\nA skill for **Codex and Claude Code** that implements, repairs, and analyzes Apple's native Liquid Glass in Rust GPUI and GPUI Kit desktop applications. It guides the agent through AppKit material selection, transparent window composition, layout synchronization, and older macOS fallbacks.\n\nThe package contains agent instructions and a native API example. \n\n> [!CAUTION]\n>- The bundled skill instructions are in Chinese; the usage examples are available in English and Chinese.\n>- skill 正文使用中文，使用示例提供中英文版本。[中文](examples\u002Fusage.zh-CN.md) [英文](examples\u002Fusage.md)\n\n## Preview\n\nThese screenshots show the Liquid Glass implementation in the **Genius Markdown editor**, including its glass sidebar and toolbar capsules.\n\n| Light appearance | Dark appearance |\n| --- | --- |\n| ![Genius with a Liquid Glass sidebar and toolbar in light appearance](assets\u002Fimage.png) | ![Genius with a Liquid Glass sidebar and toolbar in dark appearance](assets\u002Fimage2.png) |\n\nVisit the [official Genius website](https:\u002F\u002Fgns.sh) to download the app and experience the effect in use.\n\n## What it covers\n\n- `NSGlassEffectView` and `NSGlassEffectContainerView` on macOS 26+.\n- `NSVisualEffectView` as a traditional material fallback.\n- Glass sidebars, toolbar capsules, floating controls, and their GPUI interaction states.\n- Background sources, native view ownership, clipping, animation, zoom, and window cleanup.\n- Runtime class availability, including safe updates on older systems.\n- Real-window checks for background sampling, themes, accessibility settings, and geometry.\n\nFor a backend that paints the window into one Metal surface, the composition can be:\n\n```mermaid\nflowchart BT\n    B[\"Backdrop surface: theme color and optional desktop cutouts\"] --> G[\"AppKit glass panes\"]\n    G --> C[\"GPUI \u002F Metal: transparent areas, text and controls\"]\n```\n\nThe glass samples content behind its native view. To refract scrolling editor content, that content must actually be behind the glass; putting a material below the entire GPUI surface does not provide that background.\n\n| Platform | Material path |\n| --- | --- |\n| macOS 26+ | Native Liquid Glass |\n| Older macOS | Traditional vibrancy fallback, when supported |\n| Windows \u002F Linux | Existing opaque presentation |\n\n## Install\n\n### With the installation script\n\nRequires Bash and Python 3.9+. The download entry point also uses `curl`.\n\n```bash\n# Codex (default):\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fsxhxliang\u002Fgpui-liquid-glass\u002Fmain\u002Finstall.sh | bash\n\n# Claude Code:\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fsxhxliang\u002Fgpui-liquid-glass\u002Fmain\u002Finstall.sh | bash -s -- --agent claude\n\n# Both agents:\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fsxhxliang\u002Fgpui-liquid-glass\u002Fmain\u002Finstall.sh | bash -s -- --agent both\n```\n\n| Agent | Personal installation | Project installation | Invocation |\n| --- | --- | --- | --- |\n| Codex | `~\u002F.agents\u002Fskills\u002Fgpui-liquid-glass` | `.agents\u002Fskills\u002Fgpui-liquid-glass` | `$gpui-liquid-glass` |\n| Claude Code | `~\u002F.claude\u002Fskills\u002Fgpui-liquid-glass` | `.claude\u002Fskills\u002Fgpui-liquid-glass` | `\u002Fgpui-liquid-glass` |\n\nAn explicit `CODEX_HOME` changes the Codex personal destination to `$CODEX_HOME\u002Fskills\u002Fgpui-liquid-glass`. It does not affect Claude Code. See the [OpenAI skills documentation](https:\u002F\u002Flearn.chatgpt.com\u002Fdocs\u002Fbuild-skills) and [Claude Code skills documentation](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills) for discovery and invocation details.\n\nFor a checkout or a custom directory:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fsxhxliang\u002Fgpui-liquid-glass.git\ncd gpui-liquid-glass\nbash install.sh\n\n# Install for Claude Code in a GPUI project:\nbash install.sh --agent claude --project \u002Fpath\u002Fto\u002Fapp\n\n# Alternatively, install for both agents in a fresh project:\nbash install.sh --agent both --project \u002Fpath\u002Fto\u002Fapp\n\n# Compatibility with installations using ~\u002F.codex\u002Fskills:\nbash install.sh --skills-dir \"$HOME\u002F.codex\u002Fskills\"\n```\n\nUse `--skills-dir PATH` to choose a custom directory for one agent. With `--agent both`, use the personal defaults or `--project PATH`.\n\nThe installer copies the same `SKILL.md` and resources for either agent. Existing installations are preserved unless `--force` is supplied. Updates save the previous directory under `skill-backups` next to the selected skills directory.\n\nTo add the other agent to a project that already has this skill, run `--agent both --project \u002Fpath\u002Fto\u002Fapp --force`.\n\n```bash\n# Update from GitHub; --ref selects a branch, tag, or commit for the skill content:\npython3 scripts\u002Finstall.py --agent both --ref main --force\n\n# Install from a local skill directory without downloading:\npython3 scripts\u002Finstall.py --agent claude --source .\u002Fskills\u002Fgpui-liquid-glass\n\npython3 scripts\u002Finstall.py --help\n```\n\nIf the skill does not appear, restart Codex or start a new Claude Code session in the target project.\n\n### From Codex\n\nAsk Codex:\n\n```text\n$skill-installer install the skill from https:\u002F\u002Fgithub.com\u002Fsxhxliang\u002Fgpui-liquid-glass\u002Ftree\u002Fmain\u002Fskills\u002Fgpui-liquid-glass\n```\n\n## Use\n\nOpen a GPUI project and invoke the skill in your prompt.\n\nIn Codex:\n\n```text\n$gpui-liquid-glass Add a native Liquid Glass sidebar to this GPUI application.\nUse the desktop as its background, follow the existing theme and zoom rules,\nand verify the macOS fallback and layout synchronization.\n```\n\nIn Claude Code:\n\n```text\n\u002Fgpui-liquid-glass Add a native Liquid Glass sidebar to this GPUI application.\nUse the desktop as its background, follow the existing theme and zoom rules,\nand verify the macOS fallback and layout synchronization.\n```\n\nIn the ChatGPT desktop skill picker, use `@` to select the skill. In Codex CLI or the IDE extension, use `$gpui-liquid-glass` or `\u002Fskills`.\n\n[Usage examples](examples\u002Fusage.md) work in both agents and include toolbar capsules, older-system repairs, read-only analysis, and application-content sampling. The [native bridge reference](skills\u002Fgpui-liquid-glass\u002Freferences\u002Fmacos-bridge.md) includes the Rust example and Cargo features; [verification guidance](skills\u002Fgpui-liquid-glass\u002Freferences\u002Fverification.md) covers real-window validation.\n\n## Development\n\n```bash\npython3 -B -m unittest discover -s tests -v\nbash -n install.sh\n```\n\nThe installer tests use temporary directories and in-memory GitHub archives. They cover Codex and Claude Code destinations, project installation, updates, backups, rollback, custom paths, environment overrides, archive extraction, a verified `curl` fallback for missing Python certificate roots, and failure handling. The native API example was compiled with Rust 1.98.1, `objc2 0.6.5`, and `objc2-app-kit 0.3.2`; that check does not establish a particular app's rendered appearance.\n\n## Contents\n\n```text\nskills\u002Fgpui-liquid-glass\u002F   Installable skill and references\nexamples\u002F                  English and Chinese usage prompts\nassets\u002F                    Light and dark appearance screenshots\nscripts\u002Finstall.py         Standalone Python installer\ninstall.sh                 Shell entry point\ntests\u002Ftest_install.py      Installer regression tests\n```\n","这是一个为 Rust 编写的 GPUI 桌面应用（如 Genius 编辑器）实现苹果原生 Liquid Glass 视觉效果的技术方案。它提供 macOS 14+（即 macOS 26+）下的 NSGlassEffectView 原生玻璃渲染支持，兼容旧版 macOS 的 NSVisualEffectView 毛玻璃降级方案，并处理透明窗口合成、布局同步、主题适配、无障碍与缩放等细节；核心特点是将 GPUI 渲染层与 AppKit 玻璃视图分层协同，确保背景内容可被真实采样折射。适用于构建 macOS 原生感强、支持深色\u002F浅色模式自适应的桌面应用，尤其适合需玻璃侧边栏、悬浮工具栏等视觉组件的编辑器或生产力工具。",2,"2026-11-24 04:50:23","CREATED_QUERY"]