Theme Editor: added window icon

This commit is contained in:
Karl Tauber
2021-08-24 16:49:55 +02:00
parent e4522f3af4
commit c7f323ee13
2 changed files with 16 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ import com.formdev.flatlaf.FlatLaf;
import com.formdev.flatlaf.FlatLightLaf;
import com.formdev.flatlaf.extras.FlatInspector;
import com.formdev.flatlaf.extras.FlatSVGIcon;
import com.formdev.flatlaf.extras.FlatSVGUtils;
import com.formdev.flatlaf.extras.FlatUIDefaultsInspector;
import com.formdev.flatlaf.extras.components.*;
import com.formdev.flatlaf.ui.FlatUIUtils;
@@ -113,6 +114,8 @@ public class FlatThemeFileEditor
}
private FlatThemeFileEditor( File dir ) {
setIconImages( FlatSVGUtils.createWindowIconImages( "/com/formdev/flatlaf/themeeditor/FlatLaf.svg" ) );
initComponents();
openDirectoryButton.setIcon( new FlatSVGIcon( "com/formdev/flatlaf/themeeditor/icons/menu-open.svg" ) );

View File

@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<defs>
<linearGradient id="flatlaf-a" x1="50%" x2="50%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#389FD6"/>
<stop offset="100%" stop-color="#3592C4"/>
</linearGradient>
</defs>
<g fill="none" fill-rule="evenodd">
<rect width="16" height="16" fill="url(#flatlaf-a)"/>
<polygon fill="#FFF" points="9 13 13 13 12.5 11.5 10.5 11.5 10.5 6.5 9 6"/>
<polygon fill="#FFF" points="4 12.5 4 3 9 3 8.5 4.5 5.5 4.5 5.5 7 7.5 7 7 8.5 5.5 8.5 5.5 12"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 583 B