summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusutil_p.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2025-09-28 23:39:28 +0200
committerTor Arne Vestbø <[email protected]>2025-10-10 18:03:07 +0200
commit381647427a5950f6bdeeb228068f4e3c92d656f5 (patch)
treeb395154c24e07e72ab2ae8f18429a6ed8bb2d1f3 /src/dbus/qdbusutil_p.h
parent8a6a566489b55b185f998b72adafee1e3f204893 (diff)
QCocoaTheme: Resolve folder icons via NSWorkspaceHEADdev
The GetIconRef API we're using for the other theme icons is deprecated, but sadly doesn't have a modern equivalent yet, as UTType doesn't provide predefined UTTypes for all of the same icons, and we don't want to rely on internal identifiers like com.apple.macbookpro-16-2023-space-gray in place of kComputerIcon. However for folder icons we can use NSWorkspace to either get an icon for a specific folder, or the generic folder icon via UTTypeFolder. This also automatically gives us the right tint for the folder icons on macOS 26, reflecting the tint the user has chosen. We no longer treat open and closed folders as visually different, as macOS natively doesn't seem to do this anywhere I could find, and there is no API to get the modern folder look in both these states with the tint color preserved. As before, we treat the "Link" variant of File and Folder icons as the same as their non-link variants. Pick-to: 6.10 6.8 Change-Id: If9c6ab4cffcf90b41b16adce338f494de4147629 Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/dbus/qdbusutil_p.h')
0 files changed, 0 insertions, 0 deletions