File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/neuronrobotics/bowlerstudio Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3232import javafx .application .Platform ;
3333import javafx .scene .Node ;
3434import javafx .scene .control .Tab ;
35+ import javafx .scene .image .ImageView ;
3536import javafx .scene .paint .PhongMaterial ;
3637import javafx .scene .shape .CullFace ;
3738import javafx .scene .transform .Affine ;
@@ -171,8 +172,12 @@ public void run() {
171172 }
172173
173174 fileTab .setContent (t );
175+ ImageView icon = AssetFactory .loadIcon ("Script-Tab-" + ScriptingEngine .getShellType (file .getName ()) + ".png" );
176+ icon .setFitHeight (30 );
177+ icon .setFitWidth (30 );
178+
174179 fileTab .setGraphic (
175- AssetFactory . loadIcon ( "Script-Tab-" + ScriptingEngine . getShellType ( file . getName ()) + ".png" ) );
180+ icon );
176181
177182 addTab (fileTab , true );
178183 widgets .put (file .getAbsolutePath (), t );
You can’t perform that action at this time.
0 commit comments