Add support for Acrylic and Opacity in "Unfocused Appearance" #15022

Closed
opened 2026-01-31 04:26:18 +00:00 by claunia · 13 comments
Owner

Originally created by @jolsen71 on GitHub (Aug 31, 2021).

Please add "Acrylic" setting support to unfocused appearance options being introduced in PR #10317

I'd really like to make my unfocused windows to have transparency instead of opaque. Ideally, I could make my unfocused windows more transparent than my focused window.

Right now, since unfocused windows are opaque, they appear more predominant on the desktop than the focused window appears when configured with acrylic enabled and semi-transparent.

Originally created by @jolsen71 on GitHub (Aug 31, 2021). Please add "Acrylic" setting support to unfocused appearance options being introduced in PR #10317 I'd really like to make my unfocused windows to have transparency instead of opaque. Ideally, I could make my unfocused windows more transparent than my focused window. Right now, since unfocused windows are opaque, they appear more predominant on the desktop than the focused window appears when configured with acrylic enabled and semi-transparent.
Author
Owner

@zadjii-msft commented on GitHub (Aug 31, 2021):

You know, we don't have an issue tracking this specific task, so congratulations, this is now that thread.

We need to first do #7158 to allow unfocused windows to have acrylic at all. Once that's done, we can add it back to the Appearance object and the unfocusedAppearance settings.

@zadjii-msft commented on GitHub (Aug 31, 2021): You know, we don't have an issue tracking this specific task, so congratulations, _this is now that thread_. We need to first do #7158 to allow unfocused windows to have acrylic at all. Once that's done, we can add it back to the `Appearance` object and the `unfocusedAppearance` settings.
Author
Owner

@LoneDev6 commented on GitHub (Nov 11, 2021):

This is the only reason why I keep using the old-school cmd and powershell, they don't offer acrylic transparency but their transparency is better because it's always enabled.
I really hope this feature will be added, thanks everyone.

immagine

@LoneDev6 commented on GitHub (Nov 11, 2021): This is the only reason why I keep using the old-school cmd and powershell, they don't offer acrylic transparency but their transparency is better because it's always enabled. I really hope this feature will be added, thanks everyone. ![immagine](https://user-images.githubusercontent.com/27242001/141379571-45c5c150-fd1f-4d84-8883-7600da0d4d7d.png)
Author
Owner

@DHowett commented on GitHub (Nov 11, 2021):

@LoneDev6 you're probably interested in https://github.com/microsoft/terminal/issues/1753#issuecomment-950277817.

@DHowett commented on GitHub (Nov 11, 2021): @LoneDev6 you're probably interested in https://github.com/microsoft/terminal/issues/1753#issuecomment-950277817.
Author
Owner

@zadjii-msft commented on GitHub (Nov 11, 2021):

And just #603, #11180 in general

@zadjii-msft commented on GitHub (Nov 11, 2021): And just #603, #11180 in general
Author
Owner

@zadjii-msft commented on GitHub (Feb 14, 2022):

For testing purposes:

settings:


            {
                "commandline": "cmd.exe",
                "hidden": false,
                "name": "unfocused acrylic, 20%",
                "useAcrylic": true,
                "opacity": 20,
                "colorScheme": "Campbell",
                "background": "#00ff00",
                "unfocusedAppearance":
                {
                    "background": "#0000ff"
                }
            },
            {
                "commandline": "cmd.exe",
                "hidden": false,
                "name": "focused only acrylic, 20%",
                "useAcrylic": true,
                "opacity": 20,
                "colorScheme": "Campbell",
                "background": "#00ff00",
                "unfocusedAppearance":
                {
                    "background": "#0000ff",
                    "useAcrylic": false,
                }
            },
            {
                "commandline": "cmd.exe",
                "hidden": false,
                "name": "focused only 100%",
                "useAcrylic": true,
                "opacity": 20,
                "colorScheme": "Campbell",
                "background": "#00ff00",
                "unfocusedAppearance":
                {
                    "background": "#0000ff",
                    "opacity": 100,
                }
            }

State:


				{
					"action" : "newTab",
					"commandline" : "cmd.exe",
					"profile" : "unfocused acrylic",
					"startingDirectory" : null,
					"suppressApplicationTitle" : false,
					"tabTitle" : "unfocused acrylic"
				},
				{
					"action" : "splitPane",
					"commandline" : "cmd.exe",
					"profile" : "focused acrylic",
					"size" : 0.5,
					"split" : "right",
					"splitMode" : "manual",
					"startingDirectory" : null,
					"suppressApplicationTitle" : false,
					"tabTitle" : "focused acrylic"
				},
				{
					"action" : "splitPane",
					"commandline" : "cmd.exe",
					"profile" : "focused only 100%",
					"size" : 0.5,
					"split" : "down",
					"splitMode" : "manual",
					"startingDirectory" : null,
					"suppressApplicationTitle" : false,
					"tabTitle" : "focused only 100%"
				},
				{
					"action" : "focusPane",
					"id" : 0
				}
@zadjii-msft commented on GitHub (Feb 14, 2022): For testing purposes: settings: ```jsonc { "commandline": "cmd.exe", "hidden": false, "name": "unfocused acrylic, 20%", "useAcrylic": true, "opacity": 20, "colorScheme": "Campbell", "background": "#00ff00", "unfocusedAppearance": { "background": "#0000ff" } }, { "commandline": "cmd.exe", "hidden": false, "name": "focused only acrylic, 20%", "useAcrylic": true, "opacity": 20, "colorScheme": "Campbell", "background": "#00ff00", "unfocusedAppearance": { "background": "#0000ff", "useAcrylic": false, } }, { "commandline": "cmd.exe", "hidden": false, "name": "focused only 100%", "useAcrylic": true, "opacity": 20, "colorScheme": "Campbell", "background": "#00ff00", "unfocusedAppearance": { "background": "#0000ff", "opacity": 100, } } ``` State: ```jsonc { "action" : "newTab", "commandline" : "cmd.exe", "profile" : "unfocused acrylic", "startingDirectory" : null, "suppressApplicationTitle" : false, "tabTitle" : "unfocused acrylic" }, { "action" : "splitPane", "commandline" : "cmd.exe", "profile" : "focused acrylic", "size" : 0.5, "split" : "right", "splitMode" : "manual", "startingDirectory" : null, "suppressApplicationTitle" : false, "tabTitle" : "focused acrylic" }, { "action" : "splitPane", "commandline" : "cmd.exe", "profile" : "focused only 100%", "size" : 0.5, "split" : "down", "splitMode" : "manual", "startingDirectory" : null, "suppressApplicationTitle" : false, "tabTitle" : "focused only 100%" }, { "action" : "focusPane", "id" : 0 } ```
Author
Owner

@plastikfan commented on GitHub (Nov 1, 2022):

Yeah, I much agree with this issue. I love the transparency functionality, but seems to have been implemented the wrong way around. When the window loses focus, then I would expect transparency to become effective, becoming opaque when the window gains focus so you can see text more clearly. And perhaps we could define different opacity levels depending on focus state; so typically one would set a higher opacity level when the window gains focus.

@plastikfan commented on GitHub (Nov 1, 2022): Yeah, I much agree with this issue. I love the transparency functionality, but seems to have been implemented the wrong way around. When the window loses focus, then I would expect transparency to become effective, becoming opaque when the window gains focus so you can see text more clearly. And perhaps we could define different opacity levels depending on focus state; so typically one would set a higher opacity level when the window gains focus.
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2023):

Note

Walkthrough

x-linking https://github.com/microsoft/terminal/issues/7158#issuecomment-1162080143. That comment basically describes how to do both of these

@zadjii-msft commented on GitHub (Apr 27, 2023): > **Note** > ## Walkthrough x-linking https://github.com/microsoft/terminal/issues/7158#issuecomment-1162080143. That comment basically describes how to do both of these
Author
Owner

@Jaswir commented on GitHub (May 22, 2023):

This is also not working for normal transparency (not acrylic)
Focussed-Unfocussed-Opacity-NotAcrylic

image

@Jaswir commented on GitHub (May 22, 2023): This is also not working for normal transparency (not acrylic) ![Focussed-Unfocussed-Opacity-NotAcrylic](https://github.com/microsoft/terminal/assets/15957528/55342018-c2b4-412e-8531-ec16977fd717) ![image](https://github.com/microsoft/terminal/assets/15957528/2fe1833c-471b-4c57-bfaf-5535e1b24ed1)
Author
Owner

@Jaswir commented on GitHub (Sep 13, 2023):

A hero has arrived 😎
image

For:
image

@Jaswir commented on GitHub (Sep 13, 2023): A hero has arrived 😎 ![image](https://github.com/microsoft/terminal/assets/15957528/3f6868f1-d261-4b84-8066-1b81ea6c2808) For: ![image](https://github.com/microsoft/terminal/assets/15957528/fc751bc2-0036-4ed2-a9c6-9b78e8cd6834)
Author
Owner

@Jaswir commented on GitHub (Sep 13, 2023):

Will keep you up to date with the progress!

@Jaswir commented on GitHub (Sep 13, 2023): Will keep you up to date with the progress!
Author
Owner

@radonn24 commented on GitHub (Sep 15, 2023):

Yes!

🥳

@radonn24 commented on GitHub (Sep 15, 2023): Yes! # 🥳
Author
Owner

@Jaswir commented on GitHub (Sep 16, 2023):

Unfocused window more transparent than focused window:
unfocused_opacity

Code is buggy though, working through some bugs.

@Jaswir commented on GitHub (Sep 16, 2023): Unfocused window more transparent than focused window: ![unfocused_opacity](https://github.com/microsoft/terminal/assets/15957528/19e4cdfe-53d8-4f8d-9870-219fd16f7231) Code is buggy though, working through some bugs.
Author
Owner

@Jaswir commented on GitHub (Sep 16, 2023):

@jolsen71

I'd really like to make my unfocused windows to have transparency instead of opaque. Ideally, I could make my unfocused windows more transparent than my focused window.

I think this one about covers it:
jolsen

image

@Jaswir commented on GitHub (Sep 16, 2023): @jolsen71 > I'd really like to make my unfocused windows to have transparency instead of opaque. Ideally, I could make my unfocused windows more transparent than my focused window. I think this one about covers it: ![jolsen](https://github.com/microsoft/terminal/assets/15957528/811191fe-c3bd-4dbf-b44e-c4c2ce577c47) ![image](https://github.com/microsoft/terminal/assets/15957528/394d0563-eec6-41c8-b57c-d4636eaa28dd)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15022