MicaForEveryone / MicaForEveryone

Mica For Everyone is a tool to enable backdrop effects on the title bars of Win32 apps on Windows 11.
MIT License
3.85k stars 135 forks source link

Some apps do not follow Mica's global rules #213

Open VitalSkib opened 1 year ago

VitalSkib commented 1 year ago

Hello. I have a small problem when some apps do not follow Mica's global rules. In my case it's Cinema 4D 2023.1.3. It all works fine with the previous Mica version (v1.3.0.0-preview from November 15?), but after installing v1.3.0.0-preview3, the Cinema4D title bar remains default white. I'm not sure about all apps, but most of them work well, except Cinema 4D (it's just what I noticed right away). I tried different rules variations, tried to reset the config file, tried different installation options, but none of this helps. I have to return to the previous version, which works well, as I've already said.. Any ideas why this can happen? tia

OS: Windows 11 Pro Insider Preview 22H2 25267.1000

xmine64 commented 1 year ago
VitalSkib commented 1 year ago

Yes, but it works fine with the previous MFE version (v1.3.0.0-preview, not preview3) and with exactly the same settings. That's why I thought that you changed something in the new build.

xmine64 commented 1 year ago

That's why I thought that you changed something in the new build.

There's no new change in rule matching. Could you confirm it's not your app's problem?

VitalSkib commented 1 year ago

There's no new change in rule matching. Could you confirm it's not your app's problem?

Weird then.. Well, I can't confirm, I'm just not sure about it. All I know is if I install and use MFE v1.3.0.0-preview, then the title bar in "my app" (Cinema 4D) is dark. But, if I install and use MFE v1.3.0.0-preview3, then the title bar remains white. Again, the settings in .conf file are the same.. If there is no obvious reason, then I will just continue to use the previous version, I'm fine with it. Thanks.

dongle-the-gadget commented 1 year ago

Have you tried v1.3.0.0-preview2? Just trying to narrow down the problem.

VitalSkib commented 1 year ago

Have you tried v1.3.0.0-preview2? Just trying to narrow down the problem.

Yes, and it behaved just like preview3, I just did not mention it..

dongle-the-gadget commented 1 year ago

Oh alright. So it happened somewhere between Preview 1 and Preview 2.

dongle-the-gadget commented 1 year ago

(wait preview 2 isn't a real tag lol)

dongle-the-gadget commented 1 year ago

Well actually due to the problem being so isolated, I would recommend getting a Debug build (but that requires you to also attach a debugger to the program - i.e. Visual Studio - rather heavy though) and doing a rule refresh.

Send us whatever shows up in the output that correlates to the program applying rules.

VitalSkib commented 1 year ago

Well actually due to the problem being so isolated, I would recommend getting a Debug build (but that requires you to also attach a debugger to the program - i.e. Visual Studio - rather heavy though) and doing a rule refresh.

Send us whatever shows up in the output that correlates to the program applying rules.

Well, sorry, I'm not so technically prepared, I am a designer but not a programmer. And at the moment I just do not have enough time to study how to do it. And again, I'm ok whith the previous build for now, if there is no obvious solution. So, thanks again and sorry for the time spent.

xmine64 commented 1 year ago

I guess This could be related to #216.

VitalSkib commented 1 year ago

I haven't checked it since then, but today I reinstalled it again using the latest installer (dated January 03, 2023) and now it works well for me.. The Cinema 4D now also follows the rules and its title bar is now also dark. I don’t know what you have changed, but thanks.. πŸ˜ŽπŸ‘

VitalSkib commented 1 year ago

PS Oops, looks like I was hurrying to rejoice. For some reason, it works only partially, some floating windows in Cinema 4D still retain a white titlebar. Weird.. Well, have to return to the working version.

2023_01_06_Cinema_4D_2023 1 3

dongle-the-gadget commented 1 year ago

Looks like the window got excluded in one of the new checks that we added. Can you use Spy++ and determine the styles of the window?

VitalSkib commented 1 year ago

Spy++

Oh, sorry, I can’t do it, because I just don't know how to do it. As I wrote above, I am a designer and very far from software engineering..

matthewadamsdk commented 1 year ago

Hi - I've had this problem as well - just for another app, JPEGView. No matter what settings I choose for Mica, the title bar would always be white.

I think I've found the answer!

For Windows 11, select Start > Settings > Personalization > Colors

Here there's an option to "Show accent colors on tile bars and windows borders". If this ISN'T selected, then JPEGView would always have a light title bar, even though the system color setting was set to "Dark". After selecting this option, JPEGView had a dark bar.

Maybe this will also work for Cinema 4D...?

Which brings me to think: you mentioned that Mica worked fine with the v1.3.0.0-preview version from November 15. That could mean that either Win11 has changed the way the option "Show accent colors..." affects the system UI, or it could mean that that particular version of Mica overruled this option. Maybe @xmine64 could investigate whether the latest version overrules the "Show accent colors..." option, or could be made to do so...?

matthewadamsdk commented 1 year ago

PS: if choosing the "Show accent colors..." option doesn't show the correct dark color in the title bar, then you could use (for example) the app Just Color Picker to select the correct title bar color from another window and enter this RGB code under manual-select in Settings > Personalization > Colors.

VitalSkib commented 1 year ago

@matthewadamsdk Matthew, thank you for trying to help. But for me it now works well again, after I installed it using the installer from January 16, I believe. I just decided to test it a bit and did not write right away. And yes, in my case, it had nothing to do with Windows accent colors and related settings.

matthewadamsdk commented 1 year ago

Great to hear πŸ‘

VitalSkib commented 1 year ago

FYI Ok, I give up and return to the old version (dated November 15, 2022). Although everything is fine now with my problem in Cinema 4D, I noticed another issue.. I have a "Gmail Notifier" app installed and for some reason its flyout notification window ceased to follow the rules in newer MFE versions. And instead of rounded corners, I have square one. I tried different settings options, resetting and reinstalling already, none of this helps. However, thanks for your hard work and possible help. πŸ˜‰πŸ‘

2022_11_15_MFE

2023_01_18_MFE