Hi Team,
I am trying to customize the Example Floating Menu App Switcher from here
Couple questions I have:
- I wonder if there is a way to make the texts align left? As in my code
::align@@left
is not working. :width@@40
also doesn't work. to change the icon size.- Is there a way to change hover color for the menus?
The code I'm using is:
async function retrieveJSON() {
let apps = await BTTActions.copyLaunchedApplicationsInFrontToBackOrder();
let menuItems = [];
let i = 0;
for (let app of apps) {
if (i > 20) break;
i++;
let item = {
title: `${app.CFBundleName}::size@@14::color@@#ffffff::align@@left`,
BTTMenuItemBackgroundColor: "55,55,55,255",
icon: `path::${app.AppIconPath}::width@@40`,
action: `js::(async () => {runShellScript({script: 'open "${app.BundlePath}"'})})()`,
};
menuItems.push(item);
}
return JSON.stringify(menuItems);
}
Thanks in advance.