Render foreground grayscale filters - #469
Merged
Merged
Conversation
This was referenced Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unchanged Code OSS uses
filter: grayscale(1)for inactive/open session visuals and Chat achievement badges, but WebScene currently paints those surfaces in their original colors. This change resolves bounded number/percentage grayscale values and applies the standard luminance interpolation matrix through the existing retained filter group in Avalonia/Uno and Flutter.The scene struct and version remain unchanged: kind 30 reserves bit 30 for grayscale and carries its 0–1 amount in
stroke_width; bit-31 brightness and zero-flag opacity behavior remain intact, with kind 31 as the balanced end. Compound filters, animation/interpolation, other functions, masks, and backdrop sampling remain under #256.Validation debt: per the implementation-throughput priority, tests, browser/native pixel contracts, performance/lifecycle benchmarks, hosted checks, CI monitoring, and exact-package visual acceptance were skipped.
git diff --checkpasses on source head73498726rebased onto main6363114a.Closes #468
Parent: #256