Skip to content

Conversation

@Stefterv
Copy link
Collaborator

@SteftervStefterv commented Oct 15, 2025

Introduces PDESwingWindow and PDEComposeWindow classes to simplify creating themed and localized windows in Compose and Swing applications. Includes macOS-specific handling for full window content and localization support for window titles.

After #1283

Part of #1280

Changed the setLocale parameter in the Locale class to be nullable and updated its usage to safely invoke it. This allows for more flexible instantiation when a setLocale function is not required.
Replaces the call to locale.setLocale with locale.set in LocaleKtTest to match the updated API for changing the locale.
Introduces PDESwingWindow and PDEComposeWindow classes to simplify creating themed and localized windows in Compose and Swing applications. Includes macOS-specific handling for full window content and localization support for window titles.
Replaces custom JFrame setup in WelcomeToBeta with PDESwingWindow and PDEComposeWindow, centralizing window logic and close handling. Adds onClose callback to PDESwingWindow for improved lifecycle management. Also ensures beta welcome preference is reset on forced update check.
@SteftervStefterv requested a review from catilacOctober 15, 2025 11:41
@SteftervStefterv changed the base branch from main to welcome-screenOctober 16, 2025 08:38
varupdateTrigger = newJMenuItem(Language.text("menu.develop.check_for_updates"));
updateTrigger.addActionListener(e ->{
Preferences.unset("update.last");
Preferences.setInteger("update.beta_welcome", 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@SteftervStefterv merged commit 3e04faa into processing:welcome-screenOct 22, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Stefterv@catilac