ALTaleX531 / TranslucentFlyouts

Translucent effect for most of the win32 flyouts
GNU Lesser General Public License v3.0
779 stars 24 forks source link

[Bug] Fluent Animation doesn't animate the border #108

Closed emvaized closed 4 months ago

emvaized commented 4 months ago

When "Fluent Animation" is enabled (set to default "slide" animation), popup border doesn't get animated and just appears in the air:

2024-03-07172204-ezgif com-video-to-gif-converter

Version: TranslucentFlyouts.V3.x64_20240125_Updated

ALTaleX531 commented 4 months ago

Duplicate of #39. It's not a bug and can't be fixed

emvaized commented 4 months ago

Okay, got it! Thanks

TechySC23 commented 4 months ago

Hey! Have you used Satanarious's GUI for configuring this? Link: https://github.com/Satanarious/TranslucentFlyoutsConfig/releases/tag/v1.3.3 Now once you've opened that, go to settings then set the install location to the TFv3 directory. Ok, now all the prerequisites are done! Now go back to the normal page and select the Global tab. Now go to the "No border-color" option and select "Yes". Then click apply. Simple and Easy! [P.S: If it's still not working then restart explorer.]

emvaized commented 4 months ago

@TechySC23 Yeah, if only "No border-color" solved the problem...

https://github.com/ALTaleX531/TranslucentFlyouts/assets/37851576/d292eb2c-9208-473f-8011-ec5f112bc75e

TechySC23 commented 4 months ago

@TechySC23 Yeah, if only "No border color" solved the problem... 2024-03-09.192039.mp4

Ah sh*t. Have you tried tinkering with Pop in time, Fade-in, and fade-out time? But the "No border-color" option helped with that. And the pop-in ratio, also do you have Start11 or StartAllBack? ALTaleX said that Start11 messes with that. Wait why do you have MicaForEveryone? Try disabling that.

ALTaleX531 commented 4 months ago

As I said, it can't be fixed, and even with NoBorderColor enabled, there's still a drop shadow remaining unless you turn off rounded corners.

TechySC23 commented 4 months ago

Wait, wdym with rounded corners?

ALTaleX531 commented 4 months ago

@TechySC23 image

TechySC23 commented 4 months ago

send an video

ALTaleX531 commented 4 months ago

@TechySC23 Here you go https://github.com/ALTaleX531/TranslucentFlyouts/assets/105535231/25f35717-f495-4268-97ee-83950566d803

TechySC23 commented 4 months ago

K. Now use it with all the different animations

XiaoTDM commented 3 days ago

EN: I think this issue can be fixed like this: Disable menu shadows while the animation is playing, until the animation is finished. In fact, the original Win UI menu is handled in the same way.

CH: 我觉得这个问题可以这样处理: 当动画播放时禁用阴影,当播放完成后再启用。 实际上 Win UI 原生菜单也是这么处理的。

ALTaleX531 commented 3 days ago

@XiaoTDM 答案是做不到,只要你用了DWMAPI指定了菜单有圆角,那么DWM必定会给你渲染一个阴影,没有任何办法去除掉,WinUI这样能行的基础建立于所有的内容的绘制都走Windows.UI.Composition,不依靠DWMAPI。然而本身菜单的渲染都是GDI完成的,只有通过DWMAPI才能实现更高级的特性,比如透明,圆角。对于Shell这样推倒一切重头再来的是可能的,但代价就是产生了各种各样的问题。基本上你们能想到的,我都试了一遍,可惜都没有用。