Investigate Acrylic in titlebar / not using a HRGN for the titlebar #6655

Closed
opened 2026-01-31 00:43:59 +00:00 by claunia · 7 comments
Owner

Originally created by @rashil2000 on GitHub (Feb 28, 2020).

Description of the new feature/enhancement

The title says it all.
This is another really good thing that Windows Terminal could borrow from felixse/FluentTerminal.
This would basically expand the current terminal's background (including all the modifications done to it, for example a custom background image or opacity level) over to the titlebar (including the minimize, maximize and close icons).
This would make it consistent with other Windows apps following Fluent Design (think of the Settings app and its titlebar), apart from making it look really cool.
Attached here is a screenshot of Fluent Terminal (with acrylic blur and without any background image):

Screenshot (145)

Proposed technical implementation details (optional)

While digging for similar requests (I couldn't find an issue that addressed this specifically), I read somewhere that such a thing isn't possible given the architecture. Well, if that's the case, too bad. But I'm still opening the issue so that this remains documented somewhere separately.

Originally created by @rashil2000 on GitHub (Feb 28, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement The title says it all. This is another really good thing that Windows Terminal could borrow from [felixse/FluentTerminal](https://github.com/felixse/FluentTerminal). This would basically expand the current terminal's background (including all the modifications done to it, for example a custom background image or opacity level) over to the titlebar (including the minimize, maximize and close icons). This would make it consistent with other Windows apps following Fluent Design (think of the Settings app and its titlebar), apart from making it look really cool. Attached here is a screenshot of Fluent Terminal (with acrylic blur and without any background image): ![Screenshot (145)](https://user-images.githubusercontent.com/46838874/75578659-3aff0680-5a8a-11ea-9c5a-3b8a612321ba.png) # Proposed technical implementation details (optional) While digging for similar requests (I couldn't find an issue that addressed this specifically), I read somewhere that such a thing isn't possible given the architecture. Well, if that's the case, too bad. But I'm still opening the issue so that this remains documented somewhere separately.
Author
Owner

@zadjii-msft commented on GitHub (Feb 28, 2020):

This is actually something that's already discussed in #1375, the megathread that probably mentioned

The title bar isn't acrylic, sorry, that one probably can't happen given our architecture

We'd love to make the titlebar acrylic like this, but give the platform limitations, this unfortunately won't be possible.

There's also #3327, which as a part of that thread is tracking changing the titlebar background to match the terminal control. This includes issues #3774, #702, which are both pretty similar.

I'm going to mark this as
/dup #702, #3774, #3327

Thanks!

@zadjii-msft commented on GitHub (Feb 28, 2020): This is actually something that's already discussed in #1375, the megathread that probably mentioned > The title bar isn't acrylic, sorry, that one probably can't happen given our architecture We'd _love_ to make the titlebar acrylic like this, but give the platform limitations, this unfortunately won't be possible. There's also #3327, which as a part of that thread is tracking changing the titlebar background to match the terminal control. This includes issues #3774, #702, which are both pretty similar. I'm going to mark this as /dup #702, #3774, #3327 Thanks!
Author
Owner

@ghost commented on GitHub (Feb 28, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 28, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@beviu commented on GitHub (Feb 28, 2020):

@zadjii-msft I think I found a way to make the title bar acrylic and still allow the window to be moved with the drag bar. I posted it here: https://github.com/microsoft/terminal/issues/2100#issuecomment-587641240:

replace the SetWindowRgn trickery by a completely transparent, invisible window that we put on top of the drag bar and that catches all of the mouse events

I didn't try applying that solution to the terminal yet but I tried prototyping a solution on a repo on my GitHub and it seems to work: https://github.com/greg904/LearnXamlIslands (if ever you look at it, ignore the _top_border_window and the big space at the top of the window, it's because I'm also using that repo to prototype other things).

GIF of a prototype with the idea above implemented (again, ignore the big space at the top):
test

So I think it is possible to do it.

@beviu commented on GitHub (Feb 28, 2020): @zadjii-msft I think I found a way to make the title bar acrylic and still allow the window to be moved with the drag bar. I posted it here: https://github.com/microsoft/terminal/issues/2100#issuecomment-587641240: > replace the SetWindowRgn trickery by a completely transparent, invisible window that we put on top of the drag bar and that catches all of the mouse events I didn't try applying that solution to the terminal yet but I tried prototyping a solution on a repo on my GitHub and it seems to work: https://github.com/greg904/LearnXamlIslands (if ever you look at it, ignore the `_top_border_window` and the big space at the top of the window, it's because I'm also using that repo to prototype other things). GIF of a prototype with the idea above implemented (again, ignore the big space at the top): ![test](https://user-images.githubusercontent.com/56923875/75585707-fd42b380-5a72-11ea-83b9-d7678c18eda4.gif) So I think it is possible to do it.
Author
Owner

@rashil2000 commented on GitHub (Feb 28, 2020):

Hey @zadjii-msft, would you mind reopening this to take @greg904's work into consideration?

@rashil2000 commented on GitHub (Feb 28, 2020): Hey @zadjii-msft, would you mind reopening this to take @greg904's work into consideration?
Author
Owner

@zadjii-msft commented on GitHub (Feb 28, 2020):

Woah okay that's incredible. I've been a little MIA for the last month so I missed that comment. I'd love to see if that would work! I'm trying to remember a far off, long ago conversation we had with someone on the input team that said this might not work in all scenarios. Something about the "move-size" loop was said.

If you can get that working without the standard titlebar / working in the Terminal, I'd certainly be stoked. I guess I'll use this issue to track that investigation. If that pans out, we could probably just close #2100. If this doesn't work out, then we'll still need a solution to #2100 before we ship 1.0.

@zadjii-msft commented on GitHub (Feb 28, 2020): Woah okay that's incredible. I've been a little MIA for the last month so I missed that comment. I'd love to see if that would work! I'm trying to remember a far off, long ago conversation we had with someone on the input team that said this might not work in all scenarios. Something about the "move-size" loop was said. If you can get that working without the standard titlebar / working in the Terminal, I'd certainly be stoked. I guess I'll use this issue to track that investigation. If that pans out, we could probably just close #2100. If this doesn't work out, then we'll still need a solution to #2100 before we ship 1.0.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 28, 2020):

@greg904 I am in love with this idea. Sorry I didn't say that on your other titlebar PR. 😄

@DHowett-MSFT commented on GitHub (Feb 28, 2020): @greg904 I am in love with this idea. Sorry I didn't say that on your other titlebar PR. :smile:
Author
Owner

@ghost commented on GitHub (May 5, 2020):

:tada:This issue was addressed in #5485, which has now been successfully released as Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1).🎉

Handy links:

@ghost commented on GitHub (May 5, 2020): :tada:This issue was addressed in #5485, which has now been successfully released as `Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1)`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1251.0 (1.0rc1)) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6655