55 */
66package io .flutter .actions ;
77
8- import com .intellij .icons .AllIcons ;
98import com .intellij .ide .impl .NewProjectUtil ;
109import com .intellij .ide .projectWizard .NewProjectWizard ;
1110import com .intellij .openapi .actionSystem .ActionUpdateThread ;
1413import com .intellij .openapi .project .DumbAware ;
1514import com .intellij .openapi .roots .ui .configuration .ModulesProvider ;
1615import com .intellij .openapi .wm .impl .welcomeScreen .NewWelcomeScreen ;
17- import com .intellij .ui .LayeredIcon ;
18- import com .intellij .ui .OffsetIcon ;
19- import icons .FlutterIcons ;
2016import io .flutter .FlutterBundle ;
21- import javax .swing .Icon ;
22-
2317import io .flutter .FlutterUtils ;
2418import org .jetbrains .annotations .NotNull ;
2519
@@ -32,7 +26,6 @@ public FlutterNewProjectAction() {
3226 @ Override
3327 public void update (@ NotNull AnActionEvent e ) {
3428 if (NewWelcomeScreen .isNewWelcomeScreen (e )) {
35- //e.getPresentation().setIcon(getFlutterDecoratedIcon());
3629 e .getPresentation ().setText (FlutterBundle .message ("welcome.new.project.compact" ));
3730 }
3831 }
@@ -51,15 +44,4 @@ public void actionPerformed(@NotNull AnActionEvent e) {
5144 public ActionUpdateThread getActionUpdateThread () {
5245 return ActionUpdateThread .BGT ;
5346 }
54-
55- @ NotNull
56- Icon getFlutterDecoratedIcon () {
57- Icon icon = AllIcons .Welcome .CreateNewProject ;
58- Icon badgeIcon = new OffsetIcon (0 , FlutterIcons .Flutter_badge ).scale (0.666f );
59-
60- LayeredIcon decorated = new LayeredIcon (2 );
61- decorated .setIcon (badgeIcon , 0 , 7 , 7 );
62- decorated .setIcon (icon , 1 , 0 , 0 );
63- return decorated ;
64- }
6547}
0 commit comments