You've already forked gpui-component
mirror of
https://github.com/librekeys/gpui-component.git
synced 2026-04-14 08:46:29 -07:00
## Description This adds `.show_whitespace` and `.set_show_whitespace` to the `InputState` to control whether or not to render spaces and tabs. I've also updated all the themes with the new `editor.invisible` color, this is the `comment` color with added opacity. ## Screenshot <img width="823" height="661" alt="Screenshot From 2026-01-29 14-04-52" src="https://github.com/user-attachments/assets/2f79f081-83bd-47ea-922c-01b9f22262cf" /> <img width="795" height="118" alt="Screenshot From 2026-01-29 14-05-14" src="https://github.com/user-attachments/assets/b8e22080-a88e-44b7-abd8-4c8100b1a972" /> ## How to Test `cargo run --release --example editor` Click on the "Show whitespace" button in the footer. ## Checklist - [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and followed the guidelines. - [x] Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate. - [x] Passed `cargo run` for story tests related to the changes. - [x] Tested macOS, ~~Windows~~ and Linux platforms performance (if the change is platform-specific) --------- Co-authored-by: Jason Lee <huacnlee@gmail.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>