Skip to content

Fix macOS build, file dialog, and dark mode UI#195

Open
volkan-a wants to merge 4 commits intoNatLabRockies:developfrom
volkan-a:fix-macos-build-and-dark-mode
Open

Fix macOS build, file dialog, and dark mode UI#195
volkan-a wants to merge 4 commits intoNatLabRockies:developfrom
volkan-a:fix-macos-build-and-dark-mode

Conversation

@volkan-a
Copy link
Copy Markdown

Summary

This pull request introduces three targeted fixes for DView on macOS when compiling with modern toolchains and running on newer macOS versions.

  1. Compilation with modern wxWidgets: Fixed deprecated nrows()/ncols() calls to Rows()/Cols() and handled a nullptr ambiguity issue in pdfdc.cpp.
  2. macOS File Open Dialog Issue: Resolved the silent hang of wxFileDialog::ShowModal by properly registering DView.app as a macOS Bundle with a unique gov.nrel.dview Bundle Identifier, and signing it with com.apple.security.files.user-selected.* entitlements automatically during the CMake build process.
  3. Dark Mode Readability: Updated wxDVSelectionListCtrl to dynamically calculate background luminance and enforce high-contrast foreground text and checkboxes, fixing the invisible black-on-dark-grey text issue when macOS is in Dark Mode.

@volkan-a volkan-a force-pushed the fix-macos-build-and-dark-mode branch from 20dc995 to 3dd02a5 Compare March 27, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant