Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow themes to override [NSMenu _isVisible] #307

Merged
merged 1 commit into from
Oct 27, 2024

Commits on Oct 27, 2024

  1. Allow themes to override [NSMenu _isVisible]

    The default implementation of `[NSMenu]` uses `_aWindow` and `_bWindow` to determine the visibility of the menu.  Not all themes use these windows to build a menu.  For example, the WinUXTheme will use Win32 APIs to build a menu.
    
    Allow themes to override the value of `[NSMenu _isVisible]` by introducing a `[GSTheme proposedVisibility: (BOOL)visible forMenu: (NSMenu *) menu]` method.  The default implementation simply eturns the proposed visibility.
    qmfrederik committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    a98d314 View commit details
    Browse the repository at this point in the history