Skip to content

Commit 6037275

Browse files
committed
Revamp welcome screen UI and add social icons
Refactors the PDEWelcome screen to improve layout, update button icons, and add support for Discord, GitHub, and Instagram SVG icons. The welcome screen now receives a Base instance for proper action handling, and new methods replace deprecated ones in Base.java. Updates related menu actions to pass the Base instance as needed.
1 parent 2fc5682 commit 6037275

File tree

6 files changed

+177
-80
lines changed

6 files changed

+177
-80
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

app/src/processing/app/Base.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ static private void handleWelcomeScreen(Base base) {
375375
// Needs to be shown after the first editor window opens, so that it
376376
// shows up on top, and doesn't prevent an editor window from opening.
377377
if (Preferences.getBoolean("welcome.four.show")) {
378-
PDEWelcomeKt.showWelcomeScreen();
378+
PDEWelcomeKt.showWelcomeScreen(base);
379379
}
380380
}
381381

@@ -603,7 +603,7 @@ public JMenu initDefaultFileMenu() {
603603
defaultFileMenu.add(item);
604604

605605
item = Toolkit.newJMenuItemShift(Language.text("menu.file.examples"), 'O');
606-
item.addActionListener(e -> thinkDifferentExamples());
606+
item.addActionListener(e -> showExamplesFrame());
607607
defaultFileMenu.add(item);
608608

609609
return defaultFileMenu;
@@ -1879,7 +1879,7 @@ public void handleRestart() {
18791879
// }
18801880

18811881

1882-
public void thinkDifferentExamples() {
1882+
public void showExamplesFrame() {
18831883
nextMode.showExamplesFrame();
18841884
}
18851885

0 commit comments

Comments
 (0)