[PR #14193] [MERGED] Disable acrylic material (temporarily) when opacity is set to 100% #29987

Open
opened 2026-01-31 09:38:02 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14193
Author: @JerBast
Created: 10/12/2022
Status: Merged
Merged: 10/27/2022
Merged by: @undefined

Base: mainHead: 12880


📝 Commits (5)

  • c983574 Disable acrylic (temporarily) when opacity set to 100%
  • 87da92f Reflect behavioral changes in tests for 100% opacity
  • a0b526e Use clamped value in comparison for consistency
  • 4d721b1 Use more consistent approach for updating UseAcrylic and Opacity
  • 7fcdff2 Remove redundant UseAcrylic check from _isBackgroundTransparent due to new constraints

📊 Changes

3 files changed (+9 additions, -18 deletions)

View changed files

📝 src/cascadia/TerminalControl/ControlCore.cpp (+6 -14)
📝 src/cascadia/UnitTests_Control/ControlCoreTests.cpp (+1 -2)
📝 src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp (+2 -2)

📄 Description

If the opacity is set to 100%, the background becomes solid instead of 'fully opaque acrylic'. If the opacity is below 100% the acrylic material is re-enabled (depending on the user's settings).

Validation Steps Performed

I updated two unit tests to reflect the change in behavior and manually tested the transition from <100% opacity to 100% opacity (and vice versa) on win11.

Steps:

  1. Start with 100% opacity and acrylic material enabled.
  2. Decrease opacity and observe acrylic effect.
  3. Increase opacity back to 100% and disable the acrylic effect.
  4. Decrease opacity and notice that acrylic effect is no longer there.

Closes #12880


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14193 **Author:** [@JerBast](https://github.com/JerBast) **Created:** 10/12/2022 **Status:** ✅ Merged **Merged:** 10/27/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `12880` --- ### 📝 Commits (5) - [`c983574`](https://github.com/microsoft/terminal/commit/c9835741c565a5e8f6b5cd343e17c4757fc1f107) Disable acrylic (temporarily) when opacity set to 100% - [`87da92f`](https://github.com/microsoft/terminal/commit/87da92f03606d86c0d8a27e0fb564ec993e8bb75) Reflect behavioral changes in tests for 100% opacity - [`a0b526e`](https://github.com/microsoft/terminal/commit/a0b526ef112fc2e1f5dfda0a432d1b1f8f62bcc4) Use clamped value in comparison for consistency - [`4d721b1`](https://github.com/microsoft/terminal/commit/4d721b107c730666295968409097884b98521a8f) Use more consistent approach for updating UseAcrylic and Opacity - [`7fcdff2`](https://github.com/microsoft/terminal/commit/7fcdff287a662fef9de0857c8596aa2b07a7d17b) Remove redundant UseAcrylic check from _isBackgroundTransparent due to new constraints ### 📊 Changes **3 files changed** (+9 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlCore.cpp` (+6 -14) 📝 `src/cascadia/UnitTests_Control/ControlCoreTests.cpp` (+1 -2) 📝 `src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp` (+2 -2) </details> ### 📄 Description If the opacity is set to 100%, the background becomes solid instead of 'fully opaque acrylic'. If the opacity is below 100% the acrylic material is re-enabled (depending on the user's settings). ## Validation Steps Performed I updated two unit tests to reflect the change in behavior and manually tested the transition from <100% opacity to 100% opacity (and vice versa) on win11. Steps: 1. Start with 100% opacity and acrylic material enabled. 2. Decrease opacity and observe acrylic effect. 3. Increase opacity back to 100% and disable the acrylic effect. 4. Decrease opacity and notice that acrylic effect is no longer there. Closes #12880 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:38:02 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29987