ui: use svg application icon instead of 32x32 png image

So EAP builds will use the special icon as window icon (IDEA-192585). 'size32' attribute in ApplicationInfo.xml files is now deprecated.
This commit is contained in:
nik
2018-10-04 11:09:07 +03:00
parent 4a3c193ce0
commit 9299549ed5
3 changed files with 6 additions and 2 deletions
@@ -41,6 +41,10 @@ public abstract class ApplicationInfoEx extends ApplicationInfo {
public abstract String getAboutImageUrl();
/**
* @deprecated use {@link #getApplicationSvgIconUrl()} instead
*/
@Deprecated
public abstract String getIconUrl();
public abstract String getSmallIconUrl();
@@ -86,7 +86,7 @@ public class AppUIUtil {
}
}
images.add(ImageLoader.loadFromResource(appInfo.getIconUrl()));
images.add(loadApplicationIcon(window, 32, appInfo.getIconUrl()));
images.add(ImageLoader.loadFromResource(appInfo.getSmallIconUrl()));
for (int i = 0; i < images.size(); i++) {
@@ -297,7 +297,7 @@
<xs:attribute type="xs:string" name="size32">
<xs:annotation>
<xs:documentation>
Path to a 32x32 png file with the product icon.
Path to a 32x32 png file with the product icon. <strong>Deprecated: use 'svg' attribute instead.</strong>
</xs:documentation>
</xs:annotation>
</xs:attribute>