diff options
author | Tor Arne Vestbø <[email protected]> | 2025-09-28 23:39:28 +0200 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2025-10-10 18:03:07 +0200 |
commit | 381647427a5950f6bdeeb228068f4e3c92d656f5 (patch) | |
tree | b395154c24e07e72ab2ae8f18429a6ed8bb2d1f3 /src/dbus/qdbusintrospection_p.h | |
parent | 8a6a566489b55b185f998b72adafee1e3f204893 (diff) |
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/qdbusintrospection_p.h')
0 files changed, 0 insertions, 0 deletions