mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
sort icons by how much they are used, #3784
This commit is contained in:
@@ -11175,6 +11175,22 @@ const icons = [
|
||||
}
|
||||
];
|
||||
|
||||
function getIconClass(icon) {
|
||||
if (icon.type_of_icon === 'LOGO') {
|
||||
return `bxl-${icon.name}`;
|
||||
}
|
||||
else if (icon.type_of_icon === 'SOLID') {
|
||||
return `bxs-${icon.name}`;
|
||||
}
|
||||
else {
|
||||
return `bx-${icon.name}`;
|
||||
}
|
||||
}
|
||||
|
||||
for (const icon of icons) {
|
||||
icon.className = getIconClass(icon);
|
||||
}
|
||||
|
||||
export default {
|
||||
categories,
|
||||
icons
|
||||
|
||||
Reference in New Issue
Block a user