File size: 723 Bytes
2b5e484 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
(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;
}
})
});
})();
|