5
5
*/
6
6
package io .flutter .actions ;
7
7
8
- import com .intellij .icons .AllIcons ;
9
8
import com .intellij .ide .impl .NewProjectUtil ;
10
9
import com .intellij .ide .projectWizard .NewProjectWizard ;
11
10
import com .intellij .openapi .actionSystem .ActionUpdateThread ;
14
13
import com .intellij .openapi .project .DumbAware ;
15
14
import com .intellij .openapi .roots .ui .configuration .ModulesProvider ;
16
15
import com .intellij .openapi .wm .impl .welcomeScreen .NewWelcomeScreen ;
17
- import com .intellij .ui .LayeredIcon ;
18
- import com .intellij .ui .OffsetIcon ;
19
- import icons .FlutterIcons ;
20
16
import io .flutter .FlutterBundle ;
21
- import javax .swing .Icon ;
22
-
23
17
import io .flutter .FlutterUtils ;
24
18
import org .jetbrains .annotations .NotNull ;
25
19
@@ -32,7 +26,6 @@ public FlutterNewProjectAction() {
32
26
@ Override
33
27
public void update (@ NotNull AnActionEvent e ) {
34
28
if (NewWelcomeScreen .isNewWelcomeScreen (e )) {
35
- //e.getPresentation().setIcon(getFlutterDecoratedIcon());
36
29
e .getPresentation ().setText (FlutterBundle .message ("welcome.new.project.compact" ));
37
30
}
38
31
}
@@ -51,15 +44,4 @@ public void actionPerformed(@NotNull AnActionEvent e) {
51
44
public ActionUpdateThread getActionUpdateThread () {
52
45
return ActionUpdateThread .BGT ;
53
46
}
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
- }
65
47
}
0 commit comments