QuintW's picture
Upload 1350 files
5c32cd0
raw
history blame
723 Bytes
(function () {
// mouseover tooltips for various UI elements
const titles = {
'πŸ”„': 'Refresh',
'\u2934': 'Send dimensions to stable diffusion',
'πŸ’₯': 'Run preprocessor',
'πŸ“': 'Open new canvas',
'πŸ“·': 'Enable webcam',
'⇄': 'Mirror webcam',
'πŸ’Ύ': 'Save preset',
'πŸ—‘οΈ': 'Delete preset',
'↩': 'Reset preset',
};
onUiUpdate(function () {
gradioApp().querySelectorAll('.cnet-toolbutton').forEach(function (button) {
const tooltip = titles[button.textContent];
if (tooltip && (!button.hasAttribute("title"))) {
button.title = tooltip;
}
})
});
})();