AppIcons => ThemeIcons

This commit is contained in:
ItsLemmy
2025-09-22 14:58:34 -04:00
parent 03da290c54
commit 6fbaf46ed9
6 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
}
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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) {