Switch Et2Select to be based on Shoelace select instead of LionSelect

This commit is contained in:
nathan
2022-05-27 14:12:31 -06:00
parent 0963f7d548
commit c212734618
3 changed files with 58 additions and 66 deletions

View File

@@ -11,6 +11,22 @@ registerIconLibrary('default', {
resolver: name => `${egw.webserverUrl}/node_modules/@shoelace-style/shoelace/dist/assets/icons/${name}.svg`,
});
/**
* Override some shoelace icons with EGroupware
*/
const egw_icons = {'chevron-down': 'arrow_down'}
registerIconLibrary("system", {
resolver: (name) =>
{
if(egw_icons[name])
{
return `${egw.webserverUrl}/pixelegg/images/${egw_icons[name]}.svg`;
}
return "";
}
});
/**
* Customise shoelace styles to match our stuff
* External CSS will override this