1234567891011121314151617181920 |
- (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',
- };
- onUiUpdate(function () {
- gradioApp().querySelectorAll('.cnet-toolbutton').forEach(function (button) {
- const tooltip = titles[button.textContent];
- if (tooltip && (!button.hasAttribute("title"))) {
- button.title = tooltip;
- }
- })
- });
- })();
|