1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Dropbox icon workaround when DankBar is vertical (#466)

This commit is contained in:
Nasser Alshammari
2025-10-17 04:22:15 +03:00
committed by GitHub
parent 748d9e342e
commit d4b13ef46b

View File

@@ -153,7 +153,10 @@ Rectangle {
const name = split[0];
const path = split[1];
const fileName = name.substring(name.lastIndexOf("/") + 1);
let fileName = name.substring(name.lastIndexOf("/") + 1);
if (fileName.startsWith("dropboxstatus")) {
fileName = `hicolor/16x16/status/${fileName}`;
}
return `file://${path}/${fileName}`;
}
if (icon.startsWith("/") && !icon.startsWith("file://")) {