Electron/V33/System Preferences To Native Theme

/icons/calendar.svg

Last update

Sep 20, 2024

This codemod deprecates systemPreferences.accessibilityDisplayShouldReduceTransparency property, which is now deprecated in favor of the new nativeTheme.prefersReducedTransparency, which provides identical information and works cross-platform.

Example

Before

const reduceTransparency =
systemPreferences.accessibilityDisplayShouldReduceTransparency;

After

const reduceTransparency = nativeTheme.prefersReducedTransparency;

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now