When reading the TooltipStyle from the LaF, we're just creating the defaults for TooltipMetrics, which includes the wrong delay value. We should use the same logic that IdeTooltip uses:
public int getShowDelay() {
return myHighlighter ? EditorSettingsExternalizable.getInstance().getTooltipsDelay() : Registry.intValue("ide.tooltip.initialDelay");
}
PS: the default delay of 0.milliseconds seems very wrong.
When reading the
TooltipStyle
from the LaF, we're just creating the defaults forTooltipMetrics
, which includes the wrong delay value. We should use the same logic thatIdeTooltip
uses:PS: the default delay of
0.milliseconds
seems very wrong.