mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #401] [MERGED] feat(core): add opacity property to Renderable #1295
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1295
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/401
Author: @muhammedaksam
Created: 12/10/2025
Status: ✅ Merged
Merged: 12/11/2025
Merged by: @kommander
Base:
main← Head:feat/opacity📝 Commits (4)
97467fafeat(core): add opacity property to Renderable for alpha inheritance (#393)54b8accMerge branch 'main' into feat/opacity8055bc4feat: include buffer opacity inhasAlphacalculationd35e190Merge branch 'main' into feat/opacity📊 Changes
8 files changed (+636 additions, -5 deletions)
View changed files
📝
packages/core/src/Renderable.ts(+46 -2)📝
packages/core/src/buffer.ts(+20 -0)➕
packages/core/src/examples/opacity-example.ts(+227 -0)➕
packages/core/src/tests/opacity.test.ts(+123 -0)📝
packages/core/src/zig.ts(+36 -0)📝
packages/core/src/zig/buffer.zig(+49 -3)📝
packages/core/src/zig/lib.zig(+18 -0)➕
packages/react/examples/opacity.tsx(+117 -0)📄 Description
Fixes #393
Summary
opacityproperty (0.0–1.0) to the baseRenderableclasspushOpacity/popOpacity) to the render pipelineChanges
buffer.zig: Addopacity_stackwith push/pop/get/clear functionslib.zig: Add FFI exports for opacity stack operationszig.ts: Add FFI bindings andRenderLibinterface methodsbuffer.ts: Add TypeScript wrapper methodsRenderable.ts: Addopacityproperty, render commands, stack managementexamples/opacity-example.ts: Core example with animationexamples/opacity.tsx: React example with animationtests/opacity.test.ts: Added 8 unit testsTesting
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.