Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 302f8ba

Browse files
committed
Use updated splash image also in About screen
1 parent 5e90cc5 commit 302f8ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎app/src/processing/app/Base.java‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,8 +1886,16 @@ static public String[] headerListFromIncludePath(File path) throws IOException {
18861886
*/
18871887
@SuppressWarnings("serial")
18881888
public void handleAbout() {
1889-
final Image image = Theme.getLibImage("about", activeEditor,
1890-
Theme.scale(475), Theme.scale(300));
1889+
Image image;
1890+
File f = UpdateCheck.getUpdatedSplashImageFile();
1891+
if (f != null) {
1892+
Toolkit tk = Toolkit.getDefaultToolkit();
1893+
Image unscaled = tk.getImage(f.getAbsolutePath());
1894+
image = Theme.scale(unscaled, activeEditor);
1895+
} else {
1896+
image = Theme.getLibImage("about", activeEditor, //
1897+
Theme.scale(475), Theme.scale(300));
1898+
}
18911899
final Window window = new Window(activeEditor) {
18921900
public void paint(Graphics graphics) {
18931901
Graphics2D g = Theme.setupGraphics2D(graphics);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /