Skip to content

Shadow beneath menus missing in master (Qt6) #21920

Closed

Description

@zacjansheski

Issue type

UI bug (incorrect info or interface appearance)

Bug description

There is a shadow beneath menus in 4.3, that shadow does not appear in 4.4

Steps to reproduce

  1. In 4.4, right click the score, notice a shadow does not appear beneath the menu
  2. Same for menu in mixer (three dots or other menus)

Screenshots/Screen recordings

4.3 (notice shadow beneath menu)
Screenshot 2024-03-13 at 12 03 31 PM
Screenshot 2024-03-13 at 12 05 53 PM

4.4 (no shadow beneath menu)

Screenshot 2024-03-13 at 12 03 08 PM Screenshot 2024-03-13 at 12 06 04 PM

MuseScore Version

OS: macOS 14.2, Arch.: x86_64, MuseScore version (64-bit): 4.4.0-240730302, revision: github-musescore-musescore-6d832aa

Regression

Yes, this used to work in a previous version of MuseScore 4.x

Operating system

Mac OS 14

Additional context

Qt6 issue

Activity

  1. added
    regression MS4
    UI
    on Mar 13, 2024
  2. added
    P2
    on Mar 13, 2024
  3. cbjeukendrup commented on Mar 13, 2024

    @cbjeukendrup
    Contributor

    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.

  4. moved this to Issues to fix in MuseScore Studio 4.4on Mar 15, 2024
  5. avvvvve commented on Mar 15, 2024

    @avvvvve

    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.

    image
  6. moved this from Issues to fix to In progress in MuseScore Studio 4.4on Mar 24, 2024
  7. cbjeukendrup commented on Mar 24, 2024

    @cbjeukendrup
    Contributor

    @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.

  8. avvvvve commented on Mar 25, 2024

    @avvvvve

    @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.

    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2UIregression MS4

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions