Skip to content

Commit

Permalink
Flip the Mastodon background in the launcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Dec 4, 2024
1 parent 1535b60 commit 8f27495
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/mastodon/app/MastodonIcons.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public class MastodonIcons
*/

public static final Image MAINWINDOW_BG =
new ImageIcon( MastodonIcons.class.getResource( "MastodonMainWindowBG.png" ) ).getImage();
new ImageIcon( MastodonIcons.class.getResource( "MastodonMainWindowBG-flipped.png" ) ).getImage();

/*
* General use icons.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/mastodon/mamut/launcher/LauncherGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ public void mouseClicked( final java.awt.event.MouseEvent e )
public void paintComponent( final Graphics g )
{
super.paintComponent( g );
g.drawImage( MAINWINDOW_BG, 0, 0, this );
final int x = getWidth() - MAINWINDOW_BG.getWidth( null );
g.drawImage( MAINWINDOW_BG, x, 0, this );
}
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f27495

Please sign in to comment.