How to use "Mica backdrop" with TC on Windows 11

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

How to use "Mica backdrop" with TC on Windows 11

Post by *Tringi »

EDIT: Showcase video :arrow: https://www.youtube.com/watch?v=6xIzA4RwVVs

Back in the days of Windows XP, one of the cool moment I remember was installing new version of Total Commander, and that new version added Rebar background behind menu and top toolbars. I believe the same moment can be achieved again with adding the popular Mica backdrop.

How to:

The Mica backdrop is basically implemented (on build 22543) the same as Vista/7 aero glass. You use DwmExtendFrameIntoClientAreaAPI, to include the menu and toolbars (and perhaps bottom Fx buttons and command-line combobox) and fill the area with transparent brush: GetStockObject (BLACK_BRUSH).

That'd be enough for aero glass, but we ask the DWM to do it's thing with:

Code: Select all

DWM_SYSTEMBACKDROP_TYPE backdrop = DWMSBT_MAINWINDOW; // or DWMSBT_TABBEDWINDOW
DwmSetWindowAttribute (hwnd, DWMWA_SYSTEMBACKDROP_TYPE, &backdrop, sizeof backdrop);
It's also possible to use modern simple outline color for the active window, instead the full color-filled titlebar:

Code: Select all

COLORREF clr = DWMWA_COLOR_NONE;
DwmSetWindowAttribute (hwnd, DWMWA_CAPTION_COLOR, &clr, sizeof clr);
Although there might be issues with ClearType-rendered text on transparent surfaces.
Last edited by Tringi on 2023-11-07, 00:31 UTC, edited 2 times in total.
Jan Ringoš: website | github | tweets
User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

Re: Mica backdrop on Windows 11

Post by *Tringi »

If anyone's interested in screenshots, on how this would look: https://twitter.com/JanRingos/status/1693821772464812488

Since the APIs above can be called from other process, I wrote myself a proof-of-concept app, that forces this style on Total Commander.
Jan Ringoš: website | github | tweets
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Mica backdrop on Windows 11

Post by *Hacker »

Tringi,
My apologies, but what are we supposed to see here?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Mica backdrop on Windows 11

Post by *ghisler(Author) »

I don't understand it either. The two images look the same???
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Mica backdrop on Windows 11

Post by *Hacker »

Perhaps the transparency or tint or what it is?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Mica backdrop on Windows 11

Post by *ghisler(Author) »

One has a slightly darker background than the other, but you can already change the background color in
Configuration - Options - Color - Others - Dark mode: Background color
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Mica backdrop on Windows 11

Post by *umbra »

It's also somewhat transparent and textured. Mica is basically a visually less intrusive version of Aero Glass for Windows 11.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

Re: Mica backdrop on Windows 11

Post by *Tringi »

Oh, sorry, I didn't realize not everyone is Windows 11 nerd like me :)
Mica is a modern background used by Metro/UWP apps by default, and is available to Win32 apps through DWM API in my first post

The background is not just the color. It's the grainy fill significantly influenced by desktop wallpaper. It's what Settings on latest (build 22534 and newer) Windows 11 use. Try setting some contrasting wallpaper, in both light and dark modes, and see how Settings look like.

Windows maintains the backdrop for the application. The app basically only fills the windows black (even in Light mode), like it would to get Aero glass on Windows 7, if you are Windows developer.

The reason is: It looks good and modern. Kids like that. And using it contributes to the consistency of the whole OS appearance.

---

EDIT: Try it for yourself:

I cleaned the tool up and put it on github, so you can try it and see for yourself: https://github.com/tringi/setmica

It will currently work if you set Total Commander to Dark mode, and then go to Settings / Colors, and set Dark mode Background color to full black.
Then you compile the project (or just download the prebuilt exe) and run:

Code: Select all

SetMica64.exe 2 TTOTAL_CMD 0 0 113 51
Adjust the last two numbers by your DPI.
Try modes 3 or 4 instead of 2, move the window.
Try using different desktop backgrounds, etc.
Last edited by Tringi on 2023-08-22, 13:16 UTC, edited 1 time in total.
Jan Ringoš: website | github | tweets
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Mica backdrop on Windows 11

Post by *Horst.Epp »

Maybe Kits like it, but I don't need any fancy effects in my file manager.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
wetware05
Junior Member
Junior Member
Posts: 64
Joined: 2023-05-15, 16:10 UTC

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *wetware05 »

hi.
From my point of view, all contributions are welcome. There are people who ask for an improved view of the interface, maybe they will appreciate it. Perhaps a video or a better (more detailed) image will show the change.
User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *Tringi »

wetware05 wrote: 2023-08-22, 14:47 UTC hi.
From my point of view, all contributions are welcome. There are people who ask for an improved view of the interface, maybe they will appreciate it. Perhaps a video or a better (more detailed) image will show the change.
Hi. If you are on latest Windows 11, try my tool two replies above.
The effect won't persist after restarting Total Commander.
Jan Ringoš: website | github | tweets
User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *Tringi »

Hi again. I've recorded the aforementioned video: https://www.youtube.com/watch?v=6xIzA4RwVVs
Jan Ringoš: website | github | tweets
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *Horst.Epp »

2Tringi
This video shows me no effects I need for TC or any other file manager.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *Hacker »

Horst.Epp,
This video shows me no effects I need for TC or any other file manager.
Yet it's more relevant to the topic than your replies.

Tringi,
I've recorded the aforementioned video
Thank you for the video.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Tringi
Junior Member
Junior Member
Posts: 11
Joined: 2019-11-16, 15:20 UTC
Contact:

Re: How to use "Mica backdrop" with TC on Windows 11

Post by *Tringi »

So, um... any chance of getting this little thing in any upcoming version?
Jan Ringoš: website | github | tweets
Post Reply