Skip to content

Commit 376af74

Browse files
authored
Merge pull request #6275 from microsoft/fix-icon-issues
Resolve icon issues in IntelliJ
2 parents addbbf6 + c4fbd69 commit 376af74

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
340 Bytes
Loading

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/survey/CustomerSurvey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public String getType() {
6969
}
7070

7171
private static class Constants {
72-
private static final Icon AZURE_ICON = IconLoader.getIcon("/icons/Common/Azure.svg", CustomerSurvey.class);
72+
private static final Icon AZURE_ICON = IconLoader.getIcon("/icons/Common/AzureCustomerSurvey.svg", CustomerSurvey.class);
7373
// Survey for azure client&mgmt SDK users
7474
private static final String AZURE_SDK_SURVEY = "Enjoy Azure SDKs?";
7575
private static final String AZURE_SDK_SURVEY_LINK = "https://www.surveymonkey.com/r/2D9YTRQ?src=intellij&ver=%s";

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/survey/SurveyPopUpDialog.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import com.intellij.ui.HyperlinkLabel;
1414
import com.intellij.ui.JBColor;
1515
import com.intellij.util.Consumer;
16-
import com.intellij.util.IconUtil;
17-
1816
import org.apache.commons.lang3.StringUtils;
1917
import org.apache.commons.lang3.SystemUtils;
2018

@@ -235,8 +233,7 @@ private void createUIComponents() {
235233
lblMessage.setFont(new Font(lblMessage.getFont().getName(), Font.BOLD, lblMessage.getFont().getSize()));
236234

237235
lblAzureIcon = new JLabel();
238-
final Icon scaledIcon = IconUtil.scale(survey.getIcon(), lblAzureIcon, 50f / survey.getIcon().getIconWidth());
239-
lblAzureIcon.setIcon(scaledIcon);
236+
lblAzureIcon.setIcon(survey.getIcon());
240237
}
241238

242239
// CHECKSTYLE IGNORE check FOR NEXT 1 LINES
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)