You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shadow beneath menus missing in master (Qt6) #21920
Same with popups and undocked panels (like Palettes).
The reason is that the shadow component gets the same "theoretical" size as the menu/popup/panel, and since Qt 6 it is apparently clipped at its theoretical size. In Qt 5, that was not the case, so there the shadow component was allowed to go visually beyond its theoretical size so that you could see the shadow.
I have a commit somewhere to fix it for dock panels, but not yet for menus/popups, although a similar fix would apply there.
While we're at it, it would be great if the shadow on nested context menus would sit under the entire group of context menus rather than overlapping the last level up.
@avvvvve Unfortunately, that seems difficult to change. However, personally I like it the way it is. It makes it namely clear which one is the submenu and which one the parent menu (the submenu sits "on top" of the parent). That is crucial for keeping things clear in situations with deeply nested menus on small screens, where submenus may open to either side and may start overlapping.
Also, note that the native menus in macOS also have the shadows this way.
@cbjeukendrup Ok, I'm convinced! I've never noticed that about macOS. They also actually have a bit of pixel overlap rather than just sitting directly next to the previous menu—even nicer for recognizing stacking order. Noting that in case we ever revisit context menu designs.
Activity
cbjeukendrup commentedon Mar 13, 2024
Same with popups and undocked panels (like Palettes).
The reason is that the shadow component gets the same "theoretical" size as the menu/popup/panel, and since Qt 6 it is apparently clipped at its theoretical size. In Qt 5, that was not the case, so there the shadow component was allowed to go visually beyond its theoretical size so that you could see the shadow.
I have a commit somewhere to fix it for dock panels, but not yet for menus/popups, although a similar fix would apply there.
avvvvve commentedon Mar 15, 2024
While we're at it, it would be great if the shadow on nested context menus would sit under the entire group of context menus rather than overlapping the last level up.
cbjeukendrup commentedon Mar 24, 2024
@avvvvve Unfortunately, that seems difficult to change. However, personally I like it the way it is. It makes it namely clear which one is the submenu and which one the parent menu (the submenu sits "on top" of the parent). That is crucial for keeping things clear in situations with deeply nested menus on small screens, where submenus may open to either side and may start overlapping.
Also, note that the native menus in macOS also have the shadows this way.
avvvvve commentedon Mar 25, 2024
@cbjeukendrup Ok, I'm convinced! I've never noticed that about macOS. They also actually have a bit of pixel overlap rather than just sitting directly next to the previous menu—even nicer for recognizing stacking order. Noting that in case we ever revisit context menu designs.