Files
musrfit/cmake
suter_a 1719375bbc mupp_plot: set its own macOS Dock icon and match musrview's icon style.
TGCocoa::SetIconPixmap()/SetClassHints() are no-ops on macOS, so the xpm
mupp_plot set on its TRootCanvas only ever applied on X11 - the Dock/window
icon stayed the generic ROOT one on macOS. Use the same Cocoa helper
(PMacDockIcon.mm's SetMacDockIcon()) already used by musrview/musrFT/musrt0
to set the Dock icon from a compiled-in PNG.

The new icon's tile shape and background were measured off
src/classes/icons/musrview-512.png and matched: a rounded-square tile with
~22% corner radius and a vertical light-to-medium blue gradient background,
instead of the previous plain white tile with a gray border.

Also:
- compile PMacDockIcon.mm into mupp_plot on Darwin and link Cocoa, mirroring
  src/classes/CMakeLists.txt
- fix MUSRFIT_XDG_DATA_DIR -> MUSRFIT_XDG_DATADIR in the Linux install rules
  (the former is not a defined variable, so install() was resolving to
  absolute paths at the filesystem root)
- install a 512x512 icon on Linux too (hicolor/512x512/apps), matching
  musrview, and list it in the rpm spec

Done for both the Qt6 and Qt5 plotter.
2026-10-29 10:23:15 +01:00
..
2026-04-15 20:29:55 +02:00