JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
693 stars 35 forks source link

TooltipMetrics not initialised from LaF in the bridge #375

Closed rock3r closed 4 months ago

rock3r commented 4 months ago

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.