mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Eliminate warning: ToolWindow icons should be 13x13
This commit is contained in:
@@ -438,7 +438,8 @@ public final class ToolWindowImpl implements ToolWindowEx {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
final Icon oldIcon = getIcon();
|
||||
if (!EventLog.LOG_TOOL_WINDOW_ID.equals(getId())) {
|
||||
if (oldIcon != icon && icon != null && !(icon instanceof LayeredIcon) && (icon.getIconHeight() != JBUI.scale(13) || icon.getIconWidth() != JBUI.scale(13))) {
|
||||
if (oldIcon != icon && icon != null && !(icon instanceof LayeredIcon) && (icon.getIconHeight() != Math.floor(JBUI.scale(13f)) ||
|
||||
icon.getIconWidth() != Math.floor(JBUI.scale(13f)))) {
|
||||
LOG.warn("ToolWindow icons should be 13x13. Please fix ToolWindow (ID: " + getId() + ") or icon " + icon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user