mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user