Electron/V33/System Preferences To Native Theme

1.0.1Last update Sep 20, 2024
by@yugal41735

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