[PR #11363] [MERGED] Remove the fallback to 50% opacity when only useAcrylic is set #28516

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11363
Author: @zadjii-msft
Created: 9/28/2021
Status: Merged
Merged: 9/29/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/11355-oops-opacity


📝 Commits (1)

  • ad099b1 Remove the fallback to 50% opacity when only useAcrylic is set

📊 Changes

1 file changed (+1 additions, -9 deletions)

View changed files

📝 src/cascadia/TerminalSettingsModel/TerminalSettings.cpp (+1 -9)

📄 Description

This logic was seemingly redundant. There's two cases I'm looking at here:

Case 1

    "defaults":
    {
        "opacity": 35
    },
    "list":
    [
        {
            "commandline": "cmd.exe",
            "name": "Command Prompt"
        },

In this case, we wouldn't set the TerminalSettings Opacity to .35, we'd set it to 1.0, because the profile didn't have an opactity.

Case 2

    "defaults":
    {
        "useAcrylic": true
    },
    "list":
    [
        {
            "commandline": "cmd.exe",
            "name": "Command Prompt"
        },

In this case we still want to have an acrylic effect. Previously, we'd default this effect to 50% opaque. I'm not sure that we can actually get that anymore. BUT it turns out, we can have 100% opacity and HostBackdropAcrylic. It is very subtle, but is maybe something we should be allowing anyways. It kinda looks like:
image


🔄 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/11363 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 9/28/2021 **Status:** ✅ Merged **Merged:** 9/29/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/11355-oops-opacity` --- ### 📝 Commits (1) - [`ad099b1`](https://github.com/microsoft/terminal/commit/ad099b1988dcf41cbae9dd04029f541dc0eec57e) Remove the fallback to 50% opacity when only `useAcrylic` is set ### 📊 Changes **1 file changed** (+1 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsModel/TerminalSettings.cpp` (+1 -9) </details> ### 📄 Description This logic was seemingly redundant. There's two cases I'm looking at here: #### Case 1 ```jsonc "defaults": { "opacity": 35 }, "list": [ { "commandline": "cmd.exe", "name": "Command Prompt" }, ``` In this case, we wouldn't set the `TerminalSettings` Opacity to .35, we'd set it to 1.0, because the profile didn't have an `opactity`. #### Case 2 ```jsonc "defaults": { "useAcrylic": true }, "list": [ { "commandline": "cmd.exe", "name": "Command Prompt" }, ``` In this case we still want to have an acrylic effect. Previously, we'd default this effect to 50% opaque. I'm not sure that we can actually get that anymore. BUT it turns out, we _can_ have 100% opacity and HostBackdropAcrylic. It is very subtle, but is maybe something we should be allowing anyways. It kinda looks like: ![image](https://user-images.githubusercontent.com/18356694/135168469-35d1f55b-58d1-4ee3-a717-76000c2574b9.png) * [x] Fixes #11355 * [x] Regressed in #11180 * [x] I work here --- <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:29: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#28516