Skip to content

Commit

Permalink
Use new logo instead of just icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
apcj committed Mar 11, 2015
1 parent d46eec1 commit f7ec6c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Expand Up @@ -29,10 +29,10 @@

public final class Graphics
{
public static final String LOGO_32 = "/neo4j-icon_32x32.png";
public static final String LOGO = "/neo4j-logo.png";
public static final String SYSTEM_TRAY_ICON = "/neo4j-systray-16.png";

private static final String LOGO_PATTERN = "/neo4j-icon_%1$dx%1$d.png";
private static final String ICON_PATTERN = "/neo4j-icon_%1$dx%1$d.png";
private static final int MIN_SIZE = 16;
private static final int MAX_SIZE = 512;

Expand All @@ -46,7 +46,7 @@ static List<Image> loadIcons()
List<Image> icons = new ArrayList<>();
for ( int i = MIN_SIZE; i <= MAX_SIZE; i *= 2 )
{
Image image = loadImage( format( LOGO_PATTERN, i ) );
Image image = loadImage( format( ICON_PATTERN, i ) );
if ( null != image )
{
icons.add( image );
Expand Down
Expand Up @@ -38,7 +38,6 @@

import org.neo4j.desktop.runtime.DatabaseActions;

import static java.lang.String.format;
import static javax.swing.SwingUtilities.invokeLater;

import static org.neo4j.desktop.ui.Components.createPanel;
Expand Down Expand Up @@ -121,8 +120,8 @@ public void display()
private JPanel createLogoPanel()
{
return withFlowLayout( FlowLayout.LEFT, createPanel(
new JLabel( new ImageIcon( loadImage( Graphics.LOGO_32 ) ) ),
new JLabel( format( "Neo4j %s", model.getNeo4jVersion() ) ) ) );
new JLabel( new ImageIcon( loadImage( Graphics.LOGO ) ) ),
new JLabel( model.getNeo4jVersion() ) ) );
}

private JPanel createActionPanel( JButton startButton, JButton stopButton, JButton settingsButton )
Expand Down

0 comments on commit f7ec6c5

Please sign in to comment.