diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 16:15:41 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 16:15:41 +0800 |
| commit | cb3444a26619554521f5b673c3959941c5f991f6 (patch) | |
| tree | 072a909de2a9d1df510d36c67962aa06dc0a8e11 /utils | |
| parent | internal: dont use childrenrect (diff) | |
| download | caelestia-shell-cb3444a26619554521f5b673c3959941c5f991f6.tar.gz caelestia-shell-cb3444a26619554521f5b673c3959941c5f991f6.tar.bz2 caelestia-shell-cb3444a26619554521f5b673c3959941c5f991f6.zip | |
icons: better matching + add category icon
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Icons.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml index 3691ddf..391e39c 100644 --- a/utils/Icons.qml +++ b/utils/Icons.qml @@ -142,14 +142,16 @@ Singleton { "2DGraphics": "photo_library", RasterGraphics: "photo_library", TV: "tv", - System: "host" + System: "host", + Office: "content_paste" }) property string osIcon: "" property string osName function getAppCategoryIcon(name: string, fallback: string): string { - const categories = DesktopEntries.applications.values.find(app => app.id === name)?.categories; + const lName = name.toLowerCase(); + const categories = DesktopEntries.applications.values.find(app => app.id.toLowerCase() === lName)?.categories; if (categories) for (const [key, value] of Object.entries(categoryIcons)) |