mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Improve tooltip design
This commit is contained in:
@ -136,7 +136,12 @@
|
||||
};
|
||||
|
||||
ns.ToolController.prototype.getTooltipText_ = function (tool) {
|
||||
return tool.instance.helpText + ' (' + tool.shortcut + ')';
|
||||
var shortcutMarkup = "<span class='tools-tooltip-shortcut'>("+tool.shortcut+")</span>";
|
||||
if (tool.instance.helpText.indexOf('{{shortcut}}') !== -1) {
|
||||
return tool.instance.helpText.replace('{{shortcut}}', shortcutMarkup);
|
||||
} else {
|
||||
return tool.instance.helpText + ' ' + shortcutMarkup;
|
||||
}
|
||||
};
|
||||
|
||||
ns.ToolController.prototype.addKeyboardShortcuts_ = function () {
|
||||
|
Reference in New Issue
Block a user