diff options
author | Volker Hilsheimer <[email protected]> | 2025-06-18 09:08:52 +0200 |
---|---|---|
committer | Volker Hilsheimer <[email protected]> | 2025-06-18 21:53:26 +0200 |
commit | 563f2273fc400d1fedf0c57eee7905be4bff2493 (patch) | |
tree | f10abef8126d7313e6f8ad61323d6d4888efc9a6 /src/gui | |
parent | 5f87e1c5b46cad238686345bea7c77ff78b0f99d (diff) |
Apple icon engine: define more symbols
On iOS, the native icon engine is used for the standard icons of
QAbstractFileIconProvider. For File, we map to text-x-generic, and for
Network to network-workgroup. Map those to sensible icons from SF
Symbols.
For the Desktop icon, switch to the same icon that Finder is using for
that.
Task-number: QTBUG-134239
Pick-to: 6.10
Change-Id: I962809543bcbd1d900c1083ff0bb85b9b7f162f8
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/platform/darwin/qappleiconengine.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/platform/darwin/qappleiconengine.mm b/src/gui/platform/darwin/qappleiconengine.mm index 84e9ff4ea39..7745cfb6ce5 100644 --- a/src/gui/platform/darwin/qappleiconengine.mm +++ b/src/gui/platform/darwin/qappleiconengine.mm @@ -187,6 +187,7 @@ auto *loadImage(const QString &iconName) {"multimedia-player"_L1, @"play.rectangle"}, {"network-wired"_L1, @"app.connected.to.app.below.fill"}, {"network-wireless"_L1, @"wifi"}, + {"network-workgroup"_L1, @"network"}, //{"pda"_L1, @""}, {"phone"_L1, @"iphone"}, {"printer"_L1, @"printer"}, @@ -205,13 +206,13 @@ auto *loadImage(const QString &iconName) {"emblem-synchronized"_L1, @"arrow.triangle.2.circlepath.circle"}, {"emblem-system"_L1, @"gear"}, //{"emblem-unreadable"_L1, @""}, + {"text-x-generic"_L1, @"doc"}, // until iOS 18/macOS 15; @"document" after that {"folder"_L1, @"folder"}, //{"folder-remote"_L1, @""}, {"network-server"_L1, @"server.rack"}, - //{"network-workgroup"_L1, @""}, //{"start-here"_L1, @""}, {"user-bookmarks"_L1, @"bookmark.circle"}, - {"user-desktop"_L1, @"desktopcomputer"}, //"computer" also using this one + {"user-desktop"_L1, @"menubar.dock.rectangle"}, // used by finder {"user-home"_L1, @"house"}, //"go-home" also using this one {"user-trash"_L1, @"trash"}, {"appointment-missed"_L1, @"calendar.badge.exclamationmark"}, |