Implement icon mapping for Apple, Android, and Windows

Not all xcb icons have a corresponding icon on all other desktop
platforms, so we might want to remove those enums for which we have
almost no coverage in a follow-up commit.

Change-Id: I8fdc64f773768ce4ed1e0050f2a3bddef976e688
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 72d129c45e92eb55c64a336bb60a1ebca471241f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Rayam Pinto 2024-02-07 15:18:32 +01:00 committed by Qt Cherry-pick Bot
parent 68d611a25c
commit 206000166f
3 changed files with 728 additions and 6 deletions

View File

@ -24,20 +24,255 @@ namespace {
auto *loadImage(const QString &iconName)
{
static constexpr std::pair<QLatin1StringView, NSString *> iconMap[] = {
{"address-book-new"_L1, @"folder.circle"},
{"address-book-new"_L1, @"book.closed"},
{"application-exit"_L1, @"xmark.circle"},
{"appointment-new"_L1, @"hourglass.badge.plus"},
{"appointment-new"_L1, @"calendar.badge.plus"},
{"call-start"_L1, @"phone.arrow.up.right"},
{"call-stop"_L1, @"phone.arrow.down.left"},
{"call-stop"_L1, @"phone.down"},
{"contact-new"_L1, @"person.crop.circle.badge.plus"},
{"document-new"_L1, @"doc.badge.plus"},
{"document-open"_L1, @"folder"},
{"document-open-recent"_L1, @"doc.badge.clock"},
{"document-page-setup"_L1, @"doc.badge.gearshape"},
{"document-print"_L1, @"printer"},
//{"document-print-preview"_L1, @""},
{"document-properties"_L1, @"doc.badge.ellipsis"},
//{"document-revert"_L1, @""},
{"document-save"_L1, @"square.and.arrow.down"},
//{"document-save-as"_L1, @""},
{"document-send"_L1, @"paperplane"},
{"edit-clear"_L1, @"clear"},
{"edit-copy"_L1, @"doc.on.doc"},
{"edit-cut"_L1, @"scissors"},
{"edit-delete"_L1, @"delete.left"},
{"edit-find"_L1, @"magnifyingglass"},
{"edit-find-replace"_L1, @"arrow.up.left.and.down.right.magnifyingglass"},
//{"edit-find-replace"_L1, @"arrow.up.left.and.down.right.magnifyingglass"},
{"edit-paste"_L1, @"clipboard"},
{"edit-redo"_L1, @"arrowshape.turn.up.right"},
//{"edit-select-all"_L1, @""},
{"edit-undo"_L1, @"arrowshape.turn.up.left"},
{"folder-new"_L1, @"folder.badge.plus"},
{"format-indent-less"_L1, @"decrease.indent"},
{"format-indent-more"_L1, @"increase.indent"},
{"format-justify-center"_L1, @"text.aligncenter"},
{"format-justify-fill"_L1, @"text.justify"},
{"format-justify-left"_L1, @"text.justify.left"},
{"format-justify-right"_L1, @"text.justify.right"},
{"format-text-direction-ltr"_L1, @"text.justify.leading"},
{"format-text-direction-rtl"_L1, @"text.justify.trailing"},
{"format-text-bold"_L1, @"bold"},
{"format-text-italic"_L1, @"italic"},
{"format-text-underline"_L1, @"underline"},
{"format-text-strikethrough"_L1, @"strikethrough"},
//{"go-bottom"_L1, @""},
{"go-down"_L1, @"arrowshape.down"},
{"go-first"_L1, @"increase.indent"},
{"go-home"_L1, @"house"},
//{"go-jump"_L1, @""},
//{"go-last"_L1, @""},
{"go-next"_L1, @"arrowshape.right"},
{"go-previous"_L1, @"arrowshape.left"},
//{"go-top"_L1, @""},
{"go-up"_L1, @"arrowshape.up"},
{"help-about"_L1, @"info.circle"},
//{"help-contents"_L1, @""},
{"help-faq"_L1, @"questionmark.app"},
{"insert-image"_L1, @"photo.badge.plus"},
{"insert-link"_L1, @"link.badge.plus"},
//{"insert-object"_L1, @""},
{"insert-text"_L1, @"textformat"},
{"list-add"_L1, @"plus.circle"},
{"list-remove"_L1, @"minus.circle"},
{"mail-forward"_L1, @"arrowshape.turn.up.right"},
{"mail-mark-important"_L1, @"star"},
{"mail-mark-junk"_L1, @"xmark.bin"},
{"mail-mark-notjunk"_L1, @"trash.slash"},
{"mail-mark-read"_L1, @"envelope.open"},
{"mail-mark-unread"_L1, @"envelope.fill"},
{"mail-message-new"_L1, @"square.and.pencil"},
{"mail-reply-all"_L1, @"arrowshape.turn.up.left.2"},
{"mail-reply-sender"_L1, @"arrowshape.turn.up.left"},
{"mail-send"_L1, @"paperplane"},
{"mail-send-receive"_L1, @"envelope.arrow.triangle.branch"},
{"media-eject"_L1, @"eject"},
{"media-playback-pause"_L1, @"pause"},
{"media-playback-start"_L1, @"play"},
{"media-playback-stop"_L1, @"stop"},
{"media-record"_L1, @"record.circle"},
{"media-seek-backward"_L1, @"backward"},
{"media-seek-forward"_L1, @"forward"},
{"media-skip-backward"_L1, @"backward.end.alt"},
{"media-skip-forward"_L1, @"forward.end.alt"},
{"object-flip-horizontal"_L1, @"rectangle.landscape.rotate"},
{"object-flip-vertical"_L1, @"rectangle.portrait.rotate"},
{"object-rotate-left"_L1, @"rotate.left"},
{"object-rotate-right"_L1, @"rotate.right"},
{"process-stop"_L1, @"stop.circle"},
{"system-lock-screen"_L1, @"lock.display"},
{"system-log-out"_L1, @"door.left.hand.open"},
//{"system-run"_L1, @""},
{"system-search"_L1, @"magnifyingglass"},
//{"system-reboot"_L1, @""},
{"system-shutdown"_L1, @"power"},
//{"tools-check-spelling"_L1, @""},
{"view-fullscreen"_L1, @"arrow.up.left.and.arrow.down.right"},
{"view-refresh"_L1, @"arrow.clockwise"},
{"view-restore"_L1, @"arrow.down.right.and.arrow.up.left"},
//{"view-sort-ascending"_L1, @""},
//{"view-sort-descending"_L1, @""},
{"window-close"_L1, @"xmark.circle"},
{"window-new"_L1, @"macwindow.badge.plus"},
{"zoom-fit-best"_L1, @"square.arrowtriangle.4.outward"},
{"zoom-in"_L1, @"plus.magnifyingglass"},
//{"zoom-original"_L1, @""},
{"zoom-out"_L1, @"minus.magnifyingglass"},
{"process-working"_L1, @"circle.dotted"},
//{"accessories-calculator"_L1, @""},
//{"accessories-character-map"_L1, @""},
{"accessories-dictionary"_L1, @"character.book.closed"},
{"accessories-text-editor"_L1, @"textformat"},
{"help-browser"_L1, @"folder.badge.questionmark"},
{"multimedia-volume-control"_L1, @"speaker.wave.3"},
{"preferences-desktop-accessibility"_L1, @"accessibility"},
//{"preferences-desktop-font"_L1, @""},
{"preferences-desktop-keyboard"_L1, @"keyboard.badge.ellipsis"},
//{"preferences-desktop-locale"_L1, @""},
//{"preferences-desktop-multimedia"_L1, @""},
//{"preferences-desktop-screensaver"_L1, @""},
//{"preferences-desktop-theme"_L1, @""},
//{"preferences-desktop-wallpaper"_L1, @""},
{"system-file-manager"_L1, @"folder.badge.gearshape"},
//{"system-software-install"_L1, @""},
//{"system-software-update"_L1, @""}, d
//{"utilities-system-monitor"_L1, @""},
{"utilities-terminal"_L1, @"apple.terminal"},
//{"applications-accessories"_L1, @""},
//{"applications-development"_L1, @""},
//{"applications-engineering"_L1, @""},
{"applications-games"_L1, @"gamecontroller"},
//{"applications-graphics"_L1, @""},
{"applications-internet"_L1, @"network"},
{"applications-multimedia"_L1, @"tv.and.mediabox"},
//{"applications-office"_L1, @""},
//{"applications-other"_L1, @""},
{"applications-science"_L1, @"atom"},
//{"applications-system"_L1, @""},
//{"applications-utilities"_L1, @""},
{"preferences-desktop"_L1, @"menubar.dock.rectangle"},
//{"preferences-desktop-peripherals"_L1, @""},
//{"preferences-desktop-personal"_L1, @""},
//{"preferences-other"_L1, @""},
//{"preferences-system"_L1, @""},
{"preferences-system-network"_L1, @"network"},
{"system-help"_L1, @"questionmark.diamond"},
{"audio-card"_L1, @"waveform.circle"},
{"audio-input-microphone"_L1, @"mic"},
{"battery"_L1, @"battery.100percent"},
{"camera-photo"_L1, @"camera"},
{"camera-video"_L1, @"video"},
{"camera-web"_L1, @"web.camera"},
{"computer"_L1, @"desktopcomputer"},
{"drive-harddisk"_L1, @"internaldrive"},
{"drive-optical"_L1, @"opticaldiscdrive"},
{"drive-removable-media"_L1, @"externaldrive"},
{"input-gaming"_L1, @"gamecontroller"}, // "games" also using this one
{"input-keyboard"_L1, @"keyboard"},
{"input-mouse"_L1, @"computermouse"},
{"input-tablet"_L1, @"ipad"},
{"media-flash"_L1, @"mediastick"},
//{"media-floppy"_L1, @""},
//{"media-optical"_L1, @""},
{"media-tape"_L1, @"recordingtape"},
//{"modem"_L1, @""},
{"multimedia-player"_L1, @"play.rectangle"},
{"network-wired"_L1, @"app.connected.to.app.below.fill"},
{"network-wireless"_L1, @"wifi"},
//{"pda"_L1, @""},
{"phone"_L1, @"iphone"},
{"printer"_L1, @"printer"},
{"scanner"_L1, @"scanner"},
{"video-display"_L1, @"play.display"},
//{"emblem-default"_L1, @""},
{"emblem-documents"_L1, @"doc.circle"},
{"emblem-downloads"_L1, @"arrow.down.circle"},
{"emblem-favorite"_L1, @"star"},
{"emblem-important"_L1, @"exclamationmark.bubble.circle"},
{"emblem-mail"_L1, @"envelope"},
{"emblem-photos"_L1, @"photo.stack"},
//{"emblem-readonly"_L1, @""},
{"emblem-shared"_L1, @"folder.badge.person.crop"},
{"emblem-symbolic-link"_L1, @"link.circle"},
{"emblem-synchronized"_L1, @"arrow.triangle.2.circlepath.circle"},
{"emblem-system"_L1, @"gear"},
//{"emblem-unreadable"_L1, @""},
{"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-home"_L1, @"house"}, //"go-home" also using this one
{"user-trash"_L1, @"trash"},
{"appointment-missed"_L1, @"calendar.badge.exclamationmark"},
{"appointment-soon"_L1, @"calendar.badge.clock"},
{"audio-volume-high"_L1, @"speaker.wave.3"},
{"audio-volume-low"_L1, @"speaker.wave.1"},
{"audio-volume-medium"_L1, @"speaker.wave.2"},
{"audio-volume-muted"_L1, @"speaker.slash"},
{"battery-caution"_L1, @"minus.plus.batteryblock.exclamationmark"},
{"battery-low"_L1, @"battery.25percent"}, // there are different levels that can be low battery
{"dialog-error"_L1, @"exclamationmark.bubble"},
{"dialog-information"_L1, @"info.circle"},
{"dialog-password"_L1, @"lock"},
{"dialog-question"_L1, @"questionmark.circle"},
{"dialog-warning"_L1, @"exclamationmark.octagon"},
{"folder-drag-accept"_L1, @"plus.rectangle.on.folder"},
//{"folder-open"_L1, @""},
{"folder-visiting"_L1, @"folder.circle"},
{"image-loading"_L1, @"photo.circle"},
{"image-missing"_L1, @"photo"},
{"mail-attachment"_L1, @"paperclip"},
{"mail-unread"_L1, @"envelope.badge"},
{"mail-read"_L1, @"envelope.open"},
{"mail-replied"_L1, @"arrowshape.turn.up.left"},
//{"mail-signed"_L1, @""},
//{"mail-signed-verified"_L1, @""},
{"media-playlist-repeat"_L1, @"repet"},
{"media-playlist-shuffle"_L1, @"shuffle"},
//{"network-error"_L1, @""},
//{"network-idle"_L1, @""},
{"network-offline"_L1, @"network.slash"},
//{"network-receive"_L1, @""},
//{"network-transmit"_L1, @""},
//{"network-transmit-receive"_L1, @""},
//{"printer-error"_L1, @""},
{"printer-printing"_L1, @"printer.dotmatrix.filled.and.paper"}, // not sure
{"security-high"_L1, @"lock.shield"},
//{"security-medium"_L1, @""},
{"security-low"_L1, @"lock.trianglebadge.exclamationmark"},
{"software-update-available"_L1, @"arrowshape.up.circle"},
{"software-update-urgent"_L1, @"exclamationmark.transmission"},
{"sync-error"_L1, @"exclamationmark.arrow.triangle.2.circlepath"},
{"sync-synchronizing"_L1, @"arrow.triangle.2.circlepath"},
{"task-due"_L1, @"clock.badge.exclamationmark"},
{"task-past-due"_L1, @"clock.badge.xmark"},
{"user-available"_L1, @"person.crop.circle.badge.checkmark"},
{"user-away"_L1, @"person.crop.circle.badge.clock"},
//{"user-idle"_L1, @""},
{"user-offline"_L1, @"person.crop.circle.badge.xmark"},
//{"user-trash-full"_L1, @""},
{"weather-clear"_L1, @"sun.max"},
{"weather-clear-night"_L1, @"moon"},
{"weather-few-clouds"_L1, @"cloud.sun"},
{"weather-few-clouds-night"_L1, @"cloud.moon"},
{"weather-fog"_L1, @"cloud.fog"},
{"weather-overcast"_L1, @"cloud"},
//{"weather-severe-alert"_L1, @""},
{"weather-showers"_L1, @"cloud.rain"},
//{"weather-showers-scattered"_L1, @""},
{"weather-snow"_L1, @"cloud.snow"},
{"weather-storm"_L1, @"tropicalstorm"},
};
const auto it = std::find_if(std::begin(iconMap), std::end(iconMap), [iconName](const auto &c){
return c.first == iconName;

View File

@ -225,6 +225,23 @@ QString QAndroidPlatformIconEngine::glyphs() const
return {};
static constexpr std::pair<QLatin1StringView, QStringView> glyphMap[] = {
{"address-book-new"_L1, u"\ue0e0"},
{"application-exit"_L1, u"\ue5cd"},
{"appointment-new"_L1, u"\ue878"},
{"call-start"_L1, u"\ue0b0"},
{"call-stop"_L1, u"\ue0b1"},
{"contact-new"_L1, u"\uf22e"},
{"document-new"_L1, u"\ue89c"},
{"document-open"_L1, u"\ue2c8"},
{"document-open-recent"_L1, u"\ue4a7"},
{"document-page-setup"_L1, u"\uf88c"},
{"document-print"_L1, u"\ue8ad"},
{"document-print-preview"_L1, u"\uefb2"},
{"document-properties"_L1, u"\uf775"},
{"document-revert"_L1, u"\ue929"},
{"document-save"_L1, u"\ue161"},
{"document-save-as"_L1, u"\ueb60"},
{"document-send"_L1, u"\uf09b"},
{"edit-clear"_L1, u"\ue872"},
{"edit-copy"_L1, u"\ue14d"},
{"edit-cut"_L1, u"\ue14e"},
@ -235,8 +252,232 @@ QString QAndroidPlatformIconEngine::glyphs() const
{"edit-redo"_L1, u"\ue15a"},
{"edit-select-all"_L1, u"\ue162"},
{"edit-undo"_L1, u"\ue166"},
{"folder-new"_L1, u"\ue2cc"},
{"format-indent-less"_L1, u"\ue23d"},
{"format-indent-more"_L1, u"\ue23e"},
{"format-justify-center"_L1, u"\ue234"},
{"format-justify-fill"_L1, u"\ue235"},
{"format-justify-left"_L1, u"\ue236"},
{"format-justify-right"_L1, u"\ue237"},
{"format-text-direction-ltr"_L1, u"\ue247"},
{"format-text-direction-rtl"_L1, u"\ue248"},
{"format-text-bold"_L1, u"\ue238"},
{"format-text-italic"_L1, u"\ue23f"},
{"format-text-underline"_L1, u"\ue249"},
{"format-text-strikethrough"_L1, u"\ue246"},
{"go-bottom"_L1,u"\ue258"},
{"go-down"_L1,u"\uf1e3"},
{"go-first"_L1, u"\ue5dc"},
{"go-home"_L1, u"\ue88a"},
{"go-jump"_L1, u"\uf719"},
{"go-last"_L1, u"\ue5dd"},
{"go-next"_L1, u"\ue5c8"},
{"go-previous"_L1, u"\ue5c4"},
{"go-top"_L1, u"\ue25a"},
{"go-up"_L1, u"\uf1e0"},
{"help-about"_L1, u"\ue88e"},
{"help-contents"_L1, u"\ue8de"},
{"help-faq"_L1, u"\uf04c"},
{"insert-image"_L1, u"\ue43e"},
{"insert-link"_L1, u"\ue178"},
//{"insert-object"_L1, u"\u"},
{"insert-text"_L1, u"\uf827"},
{"list-add"_L1, u"\ue145"},
{"list-remove"_L1, u"\ue15b"},
{"mail-forward"_L1, u"\ue154"},
{"mail-mark-important"_L1, u"\ue937"},
//{"mail-mark-junk"_L1, u"\u"},
//{"mail-mark-notjunk"_L1, u"\u"},
{"mail-mark-read"_L1, u"\uf18c"},
{"mail-mark-unread"_L1, u"\ue9bc"},
{"mail-message-new"_L1, u"\ue3c9"},
{"mail-reply-all"_L1, u"\ue15f"},
{"mail-reply-sender"_L1, u"\ue15e"},
{"mail-send"_L1, u"\ue163"},
//{"mail-send-receive"_L1, u"\u"},
{"media-eject"_L1, u"\ue8fb"},
{"media-playback-pause"_L1, u"\ue034"},
{"media-playback-start"_L1, u"\ue037"},
{"media-playback-stop"_L1, u"\ue047"},
{"media-record"_L1, u"\uf679"},
{"media-seek-backward"_L1, u"\ue020"},
{"media-seek-forward"_L1, u"\ue01f"},
{"media-skip-backward"_L1, u"\ue045"},
{"media-skip-forward"_L1, u"\ue044"},
//{"object-flip-horizontal"_L1, u"\u"},
//{"object-flip-vertical"_L1, u"\u"},
{"object-rotate-left"_L1, u"\ue419"},
{"object-rotate-right"_L1, u"\ue41a"},
{"process-stop"_L1, u"\ue5c9"},
{"system-lock-screen"_L1, u"\ue897"},
{"system-log-out"_L1, u"\ue9ba"},
//{"system-run"_L1, u"\u"},
{"system-search"_L1, u"\uef70"},
{"system-reboot"_L1, u"\uf053"},
{"system-shutdown"_L1, u"\ue8ac"},
{"tools-check-spelling"_L1, u"\ue8ce"},
{"view-fullscreen"_L1, u"\ue5d0"},
{"view-refresh"_L1, u"\ue5d5"},
{"view-restore"_L1, u"\uf1cf"},
{"view-sort-ascending"_L1, u"\ue25a"},
{"view-sort-descending"_L1, u"\ue258"},
{"window-close"_L1, u"\ue5cd"},
{"window-new"_L1, u"\uf710"},
{"zoom-fit-best"_L1, u"\uea10"},
{"zoom-in"_L1, u"\ue8ff"},
{"zoom-original"_L1, u"\ue5d1"},
{"zoom-out"_L1, u"\ue900"},
{"process-working"_L1, u"\uef64"},
{"accessories-calculator"_L1, u"\uea5f"},
{"accessories-character-map"_L1, u"\uf8a3"},
{"accessories-dictionary"_L1, u"\uf539"},
{"accessories-text-editor"_L1, u"\ue262"},
{"help-browser"_L1, u"\ue887"},
{"multimedia-volume-control"_L1, u"\ue050"},
{"preferences-desktop-accessibility"_L1, u"\uf05d"},
{"preferences-desktop-font"_L1, u"\ue165"},
{"preferences-desktop-keyboard"_L1, u"\ue312"},
//{"preferences-desktop-locale"_L1, u"\u"},
{"preferences-desktop-multimedia"_L1, u"\uea75"},
//{"preferences-desktop-screensaver"_L1, u"\u"},
{"preferences-desktop-theme"_L1, u"\uf560"},
{"preferences-desktop-wallpaper"_L1, u"\ue1bc"},
{"system-file-manager"_L1, u"\ue2c7"},
{"system-software-install"_L1, u"\ueb71"},
{"system-software-update"_L1, u"\ue8d7"},
{"utilities-system-monitor"_L1, u"\uef5b"},
{"utilities-terminal"_L1, u"\ueb8e"},
//{"applications-accessories"_L1, u"\u"},
{"applications-development"_L1, u"\ue720"},
{"applications-engineering"_L1, u"\uea3d"},
{"applications-games"_L1, u"\uf135"},
//{"applications-graphics"_L1, u"\u"},
{"applications-internet"_L1, u"\ue80b"},
{"applications-multimedia"_L1, u"\uf06a"},
//{"applications-office"_L1, u"\u"},
//{"applications-other"_L1, u"\u"},
{"applications-science"_L1, u"\uea4b"},
//{"applications-system"_L1, u"\u"},
//{"applications-utilities"_L1, u"\u"},
{"preferences-desktop"_L1, u"\ueb97"},
//{"preferences-desktop-peripherals"_L1, u"\u"},
{"preferences-desktop-personal"_L1, u"\uf835"},
//{"preferences-other"_L1, u"\u"},
{"preferences-system"_L1, u"\ue8b8"},
{"preferences-system-network"_L1, u"\ue894"},
{"system-help"_L1, u"\ue887"},
//{"audio-card"_L1, u"\u"},
{"audio-input-microphone"_L1, u"\ue029"},
{"battery"_L1, u"\ue1a4"},
{"camera-photo"_L1, u"\ue412"},
{"camera-video"_L1, u"\ue04b"},
{"camera-web"_L1, u"\uf7a6"},
{"computer"_L1, u"\ue30a"},
{"drive-harddisk"_L1, u"\uf80e"},
{"drive-optical"_L1, u"\ue019"}, // same as media-optical
//{"drive-removable-media"_L1, u"\u"},
{"input-gaming"_L1, u"\uf5ee"},
{"input-keyboard"_L1, u"\ue312"},
{"input-mouse"_L1, u"\ue323"},
//{"input-tablet"_L1, u"\u"},
//{"media-flash"_L1, u"\u"},
//{"media-floppy"_L1, u"\u"},
{"media-optical"_L1, u"\ue019"},
//{"media-tape"_L1, u"\u"},
//{"modem"_L1, u"\u"},
//{"multimedia-player"_L1, u"\u"},
//{"network-wired"_L1, u"\u"},
{"network-wireless"_L1, u"\ue63e"},
//{"pda"_L1, u"\u"},
{"phone"_L1, u"\ue32c"},
{"printer"_L1, u"\ue8ad"},
{"banana"_L1, u"🍌"},
{"scanner"_L1, u"\ue329"},
{"video-display"_L1, u"\uf06a"},
//{"emblem-default"_L1, u"\u"},
{"emblem-documents"_L1, u"\ue873"},
{"emblem-downloads"_L1, u"\uf090"},
{"emblem-favorite"_L1, u"\uf090"},
{"emblem-important"_L1, u"\ue645"},
{"emblem-mail"_L1, u"\ue158"},
{"emblem-photos"_L1, u"\ue413"},
//{"emblem-readonly"_L1, u"\u"},
{"emblem-shared"_L1, u"\ue413"},
//{"emblem-symbolic-link"_L1, u"\u"},
//{"emblem-synchronized"_L1, u"\u"},
{"emblem-system"_L1, u"\ue8b8"},
//{"emblem-unreadable"_L1, u"\u"},
{"folder"_L1, u"\ue2c7"},
//{"folder-remote"_L1, u"\u"},
{"network-server"_L1, u"\ue875"},
{"network-workgroup"_L1, u"\ue1a0"},
{"start-here"_L1, u"\ue089"},
{"user-bookmarks"_L1, u"\ue98b"},
{"user-desktop"_L1, u"\ue30a"},
{"user-home"_L1, u"\ue88a"},
{"user-trash"_L1, u"\ue872"},
{"appointment-missed"_L1, u"\ue615"},
{"appointment-soon"_L1, u"\uf540"},
{"audio-volume-high"_L1, u"\ue050"},
{"audio-volume-low"_L1, u"\ue04d"},
//{"audio-volume-medium"_L1, u"\u"},
{"audio-volume-muted"_L1, u"\ue04e"},
{"battery-caution"_L1, u"\ue19c"},
{"battery-low"_L1, u"\uf147"},
{"dialog-error"_L1, u"\ue000"},
{"dialog-information"_L1, u"\ue88e"},
{"dialog-password"_L1, u"\uf042"},
{"dialog-question"_L1, u"\ueb8b"},
{"dialog-warning"_L1, u"\ue002"},
{"folder-drag-accept"_L1, u"\ue9a3"},
{"folder-open"_L1, u"\ue2c8"},
{"folder-visiting"_L1, u"\ue8a7"},
{"image-loading"_L1, u"\ue41a"},
{"image-missing"_L1, u"\ue3ad"},
{"mail-attachment"_L1, u"\ue2bc"},
{"mail-unread"_L1, u"\uf18a"},
{"mail-read"_L1, u"\uf18c"},
//{"mail-replied"_L1, u"\u"},
//{"mail-signed"_L1, u"\u"},
//{"mail-signed-verified"_L1, u"\u"},
{"media-playlist-repeat"_L1, u"\ue040"},
{"media-playlist-shuffle"_L1, u"\ue043"},
{"network-error"_L1, u"\uead9"},
{"network-idle"_L1, u"\ue51f"},
{"network-offline"_L1, u"\uf239"},
{"network-receive"_L1, u"\ue2c0"},
{"network-transmit"_L1, u"\ue2c3"},
{"network-transmit-receive"_L1, u"\uea18"},
{"printer-error"_L1, u"\uf7a0"},
{"printer-printing"_L1, u"\uf7a1"},
{"security-high"_L1, u"\ue32a"},
{"security-medium"_L1, u"\ue9e0"},
{"security-low"_L1, u"\uf012"},
{"software-update-available"_L1, u"\ue923"},
{"software-update-urgent"_L1, u"\uf05a"},
{"sync-error"_L1, u"\ue629"},
{"sync-synchronizing"_L1, u"\ue627"},
//{"task-due"_L1, u"\u"},
//{"task-past-due"_L1, u"\u"},
{"user-available"_L1, u"\uf565"},
{"user-away"_L1, u"\ue510"},
//{"user-idle"_L1, u"\u"},
{"user-offline"_L1, u"\uf7b3"},
{"user-trash-full"_L1, u"\ue872"}, //delete
//{"user-trash-full"_L1, u"\ue92b"}, //delete_forever
{"weather-clear"_L1, u"\uf157"},
{"weather-clear-night"_L1, u"\uf159"},
{"weather-few-clouds"_L1, u"\uf172"},
{"weather-few-clouds-night"_L1, u"\uf174"},
{"weather-fog"_L1, u"\ue818"},
//{"weather-overcast"_L1, u"\u"},
{"weather-severe-alert"_L1, u"\ue002"}, //warning
//{"weather-severe-alert"_L1, u"\uebd3"},//severe_cold
{"weather-showers"_L1, u"\uf176"},
//{"weather-showers-scattered"_L1, u"\u"},
{"weather-snow"_L1, u"\ue80f"}, //snowing
//{"weather-snow"_L1, u"\ue2cd"}, //weather_snowy
//{"weather-snow"_L1, u"\ue810"},//cloudy_snowing
{"weather-storm"_L1, u"\uf070"},
};
const auto it = std::find_if(std::begin(glyphMap), std::end(glyphMap), [this](const auto &c){

View File

@ -18,17 +18,263 @@ QString QWindowsIconEngine::glyphs() const
return {};
static constexpr std::pair<QLatin1StringView, QStringView> glyphMap[] = {
{"address-book-new"_L1, u"\ue780"},
{"application-exit"_L1, u"\ue8bb"},
{"appointment-new"_L1, u"\ue878"},
{"call-start"_L1, u"\uf715"},
{"call-stop"_L1, u"\uf405"},
{"contact-new"_L1, u"\ue8fa"},
{"document-new"_L1, u"\ue8a5"},
{"document-open"_L1, u"\ue8e5"},
{"document-open-recent"_L1, u"\ue823"},
{"document-page-setup"_L1, u"\ue7c3"},
{"document-print"_L1, u"\ue749"},
{"document-print-preview"_L1, u"\ue956"},
{"document-properties"_L1, u"\ue713"},
{"document-revert"_L1, u"\ue7a7"}, // ?
{"document-save"_L1, u"\ue74e"}, // or e78c?
{"document-save-as"_L1, u"\ue792"},
{"document-send"_L1, u"\ue724"},
{"edit-clear"_L1, u"\ue894"},
{"edit-copy"_L1, u"\ue8c8"},
{"edit-cut"_L1, u"\ue8c6"},
{"edit-delete"_L1, u"\ue74d"},
{"edit-find"_L1, u"\ue721"},
//{"edit-find-replace"_L1, u"\u"},
{"edit-paste"_L1, u"\ue77f"},
{"edit-redo"_L1, u"\ue7a6"},
{"edit-select-all"_L1, u"\ue8b3"},
{"edit-undo"_L1, u"\ue7a7"},
{"folder-new"_L1, u"\ue8f4"},
//{"format-indent-less"_L1, u"\u"},
//{"format-indent-more"_L1, u"\u"},
{"format-justify-center"_L1, u"\ue8e3"},
//{"format-justify-fill"_L1, u"\ue235"},
{"format-justify-left"_L1, u"\ue8e4"},
{"format-justify-right"_L1, u"\ue8e2"},
//{"format-text-direction-ltr"_L1, u"\ue247"},
//{"format-text-direction-rtl"_L1, u"\ue248"},
{"format-text-bold"_L1, u"\ue8dd"},
{"format-text-italic"_L1, u"\ue8db"},
{"format-text-underline"_L1, u"\ue8dc"},
{"format-text-strikethrough"_L1, u"\uede0"},
//{"go-bottom"_L1,u"\ue258"},
{"go-down"_L1,u"\ue74b"},
//{"go-first"_L1, u"\ue5dc"},
{"go-home"_L1, u"\ue80f"},
// {"go-jump"_L1, u"\uf719"},
//{"go-last"_L1, u"\ue5dd"},
{"go-next"_L1, u"\ue893"},
{"go-previous"_L1, u"\ue892"},
//{"go-top"_L1, u"\ue25a"},
{"go-up"_L1, u"\ue74a"},
{"help-about"_L1, u"\ue946"},
//{"help-contents"_L1, u"\ue8de"},
{"help-faq"_L1, u"\ue897"},
{"insert-image"_L1, u"\ue946"},
{"insert-link"_L1, u"\ue71b"},
//{"insert-object"_L1, u"\u"},
//{"insert-text"_L1, u"\uf827"},
{"list-add"_L1, u"\ue710"},
{"list-remove"_L1, u"\ue738"},
{"mail-forward"_L1, u"\ue89c"},
//{"mail-mark-important"_L1, u"\ue937"},
//{"mail-mark-junk"_L1, u"\u"},
//{"mail-mark-notjunk"_L1, u"\u"},
{"mail-mark-read"_L1, u"\ue8c3"},
//{"mail-mark-unread"_L1, u"\ue9bc"},
{"mail-message-new"_L1, u"\ue70f"},
{"mail-reply-all"_L1, u"\ue8c2"},
{"mail-reply-sender"_L1, u"\ue8ca"},
{"mail-send"_L1, u"\ue724"},
//{"mail-send-receive"_L1, u"\u"},
{"media-eject"_L1, u"\uf847"},
{"media-playback-pause"_L1, u"\ue769"},
{"media-playback-start"_L1, u"\ue768"},
{"media-playback-stop"_L1, u"\ue71a"},
{"media-record"_L1, u"\ue7c8"},
{"media-seek-backward"_L1, u"\ueb9e"},
{"media-seek-forward"_L1, u"\ueb9d"},
{"media-skip-backward"_L1, u"\ue892"},
{"media-skip-forward"_L1, u"\ue893"},
//{"object-flip-horizontal"_L1, u"\u"},
//{"object-flip-vertical"_L1, u"\u"},
{"object-rotate-left"_L1, u"\ue80c"},
{"object-rotate-right"_L1, u"\ue80d"},
//{"process-stop"_L1, u"\ue5c9"},
{"system-lock-screen"_L1, u"\uee3f"},
{"system-log-out"_L1, u"\uf3b1"},
//{"system-run"_L1, u"\u"},
{"system-search"_L1, u"\ue721"},
{"system-reboot"_L1, u"\ue777"}, // unsure?
{"system-shutdown"_L1, u"\ue7e8"},
{"tools-check-spelling"_L1, u"\uf87b"},
{"view-fullscreen"_L1, u"\ue740"},
{"view-refresh"_L1, u"\ue72c"},
{"view-restore"_L1, u"\ue777"},
//{"view-sort-ascending"_L1, u"\ue25a"},
//{"view-sort-descending"_L1, u"\ue258"},
{"window-close"_L1, u"\ue8bb"},
{"window-new"_L1, u"\ue78b"},
{"zoom-fit-best"_L1, u"\ue9a6"},
{"zoom-in"_L1, u"\ue8a3"},
//{"zoom-original"_L1, u"\u"},
{"zoom-out"_L1, u"\ue71f"},
{"process-working"_L1, u"\ue9f3"},
{"accessories-calculator"_L1, u"\ue8ef"},
{"accessories-character-map"_L1, u"\uf2b7"},
{"accessories-dictionary"_L1, u"\ue82d"},
//{"accessories-text-editor"_L1, u"\ue262"},
{"help-browser"_L1, u"\ue897"},
{"multimedia-volume-control"_L1, u"\ue767"},
{"preferences-desktop-accessibility"_L1, u"\ue776"},
{"preferences-desktop-font"_L1, u"\ue8d2"},
{"preferences-desktop-keyboard"_L1, u"\ue765"},
{"preferences-desktop-locale"_L1, u"\uf2b7"},
//{"preferences-desktop-multimedia"_L1, u"\uea75"},
{"preferences-desktop-screensaver"_L1, u"\uf182"},
//{"preferences-desktop-theme"_L1, u"\uf560"},
//{"preferences-desktop-wallpaper"_L1, u"\ue1bc"},
{"system-file-manager"_L1, u"\uec50"},
//{"system-software-install"_L1, u"\ueb71"},
{"system-software-update"_L1, u"\uecc5"},
{"utilities-system-monitor"_L1, u"\ue7f4"},
//{"utilities-terminal"_L1, u"\ueb8e"},
//{"applications-accessories"_L1, u"\u"},
{"applications-development"_L1, u"\uec7a"},
//{"applications-engineering"_L1, u"\uea3d"},
{"applications-games"_L1, u"\ue7fc"},
//{"applications-graphics"_L1, u"\u"},
{"applications-internet"_L1, u"\ue774"},
{"applications-multimedia"_L1, u"\uea69"},
//{"applications-office"_L1, u"\u"},
//{"applications-other"_L1, u"\u"},
//{"applications-science"_L1, u"\uea4b"},
{"applications-system"_L1, u"\ue770"},
//{"applications-utilities"_L1, u"\u"},
//{"preferences-desktop"_L1, u"\ueb97"},
//{"preferences-desktop-peripherals"_L1, u"\u"},
//{"preferences-desktop-personal"_L1, u"\uf835"},
//{"preferences-other"_L1, u"\u"},
//{"preferences-system"_L1, u"\ue8b8"},
//{"preferences-system-network"_L1, u"\ue894"},
{"system-help"_L1, u"\ue946"},
{"audio-card"_L1, u"\ue8d6"},
{"audio-input-microphone"_L1, u"\ue720"},
{"battery"_L1, u"\ue83f"},
{"camera-photo"_L1, u"\ue722"},
{"camera-video"_L1, u"\ue714"},
{"camera-web"_L1, u"\ue8b8"},
{"computer"_L1, u"\ue7f8"}, // or e7fb?
{"drive-harddisk"_L1, u"\ueda2"},
{"drive-optical"_L1, u"\ue958"},
//{"drive-removable-media"_L1, u"\u"},
//{"input-gaming"_L1, u"\u"},
{"input-keyboard"_L1, u"\ue92e"},
{"input-mouse"_L1, u"\ue962"},
{"input-tablet"_L1, u"\ue70a"},
{"media-flash"_L1, u"\ue88e"},
//{"media-floppy"_L1, u"\u"},
{"media-optical"_L1, u"\ue958"},
{"media-tape"_L1, u"\ue96a"},
//{"modem"_L1, u"\u"},
//{"multimedia-player"_L1, u"\u"},
{"network-wired"_L1, u"\ue968"},
{"network-wireless"_L1, u"\ue701"},
//{"pda"_L1, u"\u"},
{"phone"_L1, u"\ue717"},
{"printer"_L1, u"\ue749"},
{"banana"_L1, u"🍌"},
{"scanner"_L1, u"\ue8fe"},
//{"video-display"_L1, u"\uf06a"},
{"emblem-default"_L1, u"\uf56d"},
{"emblem-documents"_L1, u"\ue8a5"},
{"emblem-downloads"_L1, u"\ue896"},
{"emblem-favorite"_L1, u"\ue734"},
{"emblem-important"_L1, u"\ue8c9"},
{"emblem-mail"_L1, u"\ue715"},
{"emblem-photos"_L1, u"\ue91b"},
//{"emblem-readonly"_L1, u"\u"},
{"emblem-shared"_L1, u"\ue902"},
{"emblem-symbolic-link"_L1, u"\ue71b"},
{"emblem-synchronized"_L1, u"\uedab"},
{"emblem-system"_L1, u"\ue770"},
//{"emblem-unreadable"_L1, u"\u"},
{"folder"_L1, u"\ue8b7"},
//{"folder-remote"_L1, u"\u"},
//{"network-server"_L1, u"\ue875"},
//{"network-workgroup"_L1, u"\ue1a0"},
{"start-here"_L1, u"\ue8fc"}, // unsure
{"user-bookmarks"_L1, u"\ue8a4"},
//{"user-desktop"_L1, u"\ue30a"},
{"user-home"_L1, u"\ue80f"},
{"user-trash"_L1, u"\ue74d"},
//{"appointment-missed"_L1, u"\ue615"},
//{"appointment-soon"_L1, u"\uf540"},
{"audio-volume-high"_L1, u"\ue995"},
{"audio-volume-low"_L1, u"\ue993"},
{"audio-volume-medium"_L1, u"\ue994"},
{"audio-volume-muted"_L1, u"\ue992"},
//{"battery-caution"_L1, u"\ue19c"},
{"battery-low"_L1, u"\ue851"}, // ?
{"dialog-error"_L1, u"\ue783"},
{"dialog-information"_L1, u"\ue946"},
//{"dialog-password"_L1, u"\uf042"},
{"dialog-question"_L1, u"\uf142"}, // unsure
{"dialog-warning"_L1, u"\ue7ba"},
//{"folder-drag-accept"_L1, @u"\ue9a3"},
{"folder-open"_L1, u"\ue838"},
//{"folder-visiting"_L1, u"\ue8a7"},
//{"image-loading"_L1, u"\ue41a"},
//{"image-missing"_L1, u"\ue3ad"},
{"mail-attachment"_L1, u"\ue723"},
//{"mail-unread"_L1, u"\uf18a"},
//{"mail-read"_L1, u"\uf18c"},
{"mail-replied"_L1, u"\ue8ca"},
//{"mail-signed"_L1, u"\u"},
//{"mail-signed-verified"_L1, u"\u"},
{"media-playlist-repeat"_L1, u"\ue8ee"},
{"media-playlist-shuffle"_L1, u"\ue8b1"},
//{"network-error"_L1, u"\uead9"},
//{"network-idle"_L1, u"\ue51f"},
{"network-offline"_L1, u"\uf384"},
//{"network-receive"_L1, u"\ue2c0"},
//{"network-transmit"_L1, u"\ue2c3"},
//{"network-transmit-receive"_L1, u"\uca18"},
//{"printer-error"_L1, u"\uf7a0"},
//{"printer-printing"_L1, u"\uf7a1"},
//{"security-high"_L1, u"\ue32a"},
//{"security-medium"_L1, u"\ue9e0"},
//{"security-low"_L1, u"\uf012"},
//{"software-update-available"_L1, u"\ue923"},
//{"software-update-urgent"_L1, u"\uf05a"},
{"sync-error"_L1, u"\uea6a"},
{"sync-synchronizing"_L1, u"\ue895"},
//{"task-due"_L1, u"\u"},
//{"task-past-due"_L1, u"\u"},
{"user-available"_L1, u"\ue8cf"},
//{"user-away"_L1, u"\ue510"},
//{"user-idle"_L1, u"\u"},
//{"user-offline"_L1, u"\uf7b3"},
//{"user-trash-full"_L1, u"\ue872"}, //delete
//{"user-trash-full"_L1, u"\ue92b"}, //delete_forever
{"weather-clear"_L1, u"\ue706"},
//{"weather-clear-night"_L1, u"\uf159"},
//{"weather-few-clouds"_L1, u"\uf172"},
//{"weather-few-clouds-night"_L1, u"\uf174"},
//{"weather-fog"_L1, u"\ue818"},
{"weather-overcast"_L1, u"\ue753"},
//{"weather-severe-alert"_L1, u"\ue002"}, //warning
//{"weather-showers"_L1, u"\uf176"},
//{"weather-showers-scattered"_L1, u"\u"},
//{"weather-snow"_L1, u"\ue80f"}, //snowing
//{"weather-storm"_L1, u"\uf070"},
};
const auto it = std::find_if(std::begin(glyphMap), std::end(glyphMap), [this](const auto &c){