aboutsummaryrefslogtreecommitdiffstats
path: root/appearance/Icons.qml
diff options
context:
space:
mode:
Diffstat (limited to 'appearance/Icons.qml')
-rw-r--r--appearance/Icons.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/appearance/Icons.qml b/appearance/Icons.qml
index 4c97a75..690fff2 100644
--- a/appearance/Icons.qml
+++ b/appearance/Icons.qml
@@ -54,7 +54,7 @@ for name in sys.argv[1:]:
const icons = [], cursors = [];
for (const e of entries) {
if (e.cursors || e.manifest) cursors.push(e.name);
- else if (e.index && /Directories=\S/.test(e.index)) icons.push(e.name);
+ if (e.index && /Directories=\S/.test(e.index)) icons.push(e.name);
}
const uniq = a => a.filter((v, i) => a.indexOf(v) === i).sort();
return { icons: uniq(icons), cursors: uniq(cursors) };
@@ -66,12 +66,14 @@ for name in sys.argv[1:]:
{ name: "hypr_bibata-modern-amber", index: "", cursors: false, manifest: true },
{ name: "default", index: "Inherits=Bibata-Modern-Amber\n", cursors: false, manifest: false },
{ name: "breeze_cursors", index: "", cursors: true, manifest: false },
+ { name: "Adwaita", index: "Directories=16x16/apps\n", cursors: true, manifest: false },
];
const r = root.classify(entries);
- if (r.icons.length !== 1 || r.icons[0] !== "Material-Black-Plum-Suru")
+ if (r.icons.length !== 2 || r.icons.indexOf("Adwaita") < 0 ||
+ r.icons.indexOf("Material-Black-Plum-Suru") < 0)
return `SELFTEST Icons FAIL: icons ${JSON.stringify(r.icons)}`;
- if (r.cursors.length !== 2 || r.cursors.indexOf("hypr_bibata-modern-amber") < 0 ||
- r.cursors.indexOf("breeze_cursors") < 0)
+ if (r.cursors.length !== 3 || r.cursors.indexOf("hypr_bibata-modern-amber") < 0 ||
+ r.cursors.indexOf("breeze_cursors") < 0 || r.cursors.indexOf("Adwaita") < 0)
return `SELFTEST Icons FAIL: cursors ${JSON.stringify(r.cursors)}`;
return "SELFTEST Icons PASS";
}
@@ -178,7 +180,7 @@ for name in sys.argv[1:]:
`[ -s ${out} ] || exit 1;; ` +
`*.svg) cp "$c" ${out};; ` +
`*) rm -rf ${dir}/raw-${name}; mkdir -p ${dir}/raw-${name}; ` +
- `xcur2png -d ${dir}/raw-${name} "$c" >/dev/null 2>&1; ` +
+ `xcur2png -d ${dir}/raw-${name} -c ${dir}/raw-${name}/out.conf "$c" >/dev/null 2>&1; ` +
`cp "$(ls ${dir}/raw-${name}/$(basename "$c")_*.png | tail -1)" ${out};; esac`]
curPreviewProc.running = false;
curPreviewProc.running = true;