diff --git a/Commons/AppIcons.qml b/Commons/ThemeIcons.qml similarity index 100% rename from Commons/AppIcons.qml rename to Commons/ThemeIcons.qml diff --git a/Modules/Bar/Widgets/ActiveWindow.qml b/Modules/Bar/Widgets/ActiveWindow.qml index 5e6eb2f8..fc25a9f4 100644 --- a/Modules/Bar/Widgets/ActiveWindow.qml +++ b/Modules/Bar/Widgets/ActiveWindow.qml @@ -86,7 +86,7 @@ Item { try { const idValue = focusedWindow.appId const normalizedId = (typeof idValue === 'string') ? idValue : String(idValue) - const iconResult = AppIcons.iconForAppId(normalizedId.toLowerCase()) + const iconResult = ThemeIcons.iconForAppId(normalizedId.toLowerCase()) if (iconResult && iconResult !== "") { return iconResult } @@ -102,7 +102,7 @@ Item { if (activeToplevel.appId) { const idValue2 = activeToplevel.appId const normalizedId2 = (typeof idValue2 === 'string') ? idValue2 : String(idValue2) - const iconResult2 = AppIcons.iconForAppId(normalizedId2.toLowerCase()) + const iconResult2 = ThemeIcons.iconForAppId(normalizedId2.toLowerCase()) if (iconResult2 && iconResult2 !== "") { return iconResult2 } diff --git a/Modules/Bar/Widgets/Taskbar.qml b/Modules/Bar/Widgets/Taskbar.qml index 71c11f67..63e7326d 100644 --- a/Modules/Bar/Widgets/Taskbar.qml +++ b/Modules/Bar/Widgets/Taskbar.qml @@ -68,7 +68,7 @@ Rectangle { anchors.centerIn: parent width: parent.width height: parent.height - source: AppIcons.iconForAppId(taskbarItem.modelData.appId) + source: ThemeIcons.iconForAppId(taskbarItem.modelData.appId) smooth: true asynchronous: true } diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index bb4fded2..52f21800 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -347,7 +347,7 @@ Variants { function getAppIcon(appData): string { if (!appData || !appData.appId) return "" - return AppIcons.iconForAppId(appData.appId?.toLowerCase()) + return ThemeIcons.iconForAppId(appData.appId?.toLowerCase()) } RowLayout { diff --git a/Modules/Launcher/Launcher.qml b/Modules/Launcher/Launcher.qml index 8789ee25..ba1855e3 100644 --- a/Modules/Launcher/Launcher.qml +++ b/Modules/Launcher/Launcher.qml @@ -397,7 +397,7 @@ NPanel { sourceComponent: Component { IconImage { anchors.fill: parent - source: modelData.icon ? AppIcons.iconFromName(modelData.icon, "application-x-executable") : "" + source: modelData.icon ? ThemeIcons.iconFromName(modelData.icon, "application-x-executable") : "" visible: modelData.icon && source !== "" asynchronous: true } diff --git a/Services/NotificationService.qml b/Services/NotificationService.qml index be537f22..8f0999dd 100644 --- a/Services/NotificationService.qml +++ b/Services/NotificationService.qml @@ -304,7 +304,7 @@ Singleton { return "" if (icon.startsWith("/") || icon.startsWith("file://")) return icon - return AppIcons.iconFromName(icon) + return ThemeIcons.iconFromName(icon) } function stripTags(text) {