Skip to content

IDEA plugin for synchronizing theme with macOS's Dark Mode

License

Notifications You must be signed in to change notification settings

kannicht/dark-mode-sync-plugin

 
 

Repository files navigation

macOS Dark Mode Sync IDEA Plugin

Plugin for synchronizing IDEA's theme with macOS's or Windows' Dark Mode. When macOS or Windows is in dark mode, plugin sets IDEA to the chosen theme, but when macOS or Windows is in light mode, sets IDEA theme to the theme chosen for light mode.

Building

./gradlew build

Testing

./gradlew runIde

How Does It Work on MacOS?

The plugin polls the macOS Dark Mode configuration by executing the following command and interpreting its output.

defaults read -g AppleInterfaceStyle

When the plugin detects that macOS is using Dark Mode, it sets the IDEA theme to the selected theme. When the plugin detects that macOS is not using Dark Mode, it sets the IDEA theme to the corresponding theme.

How Does It Work on Windows?

The plugin polls the Windows Dark Mode configuration by executing the following command and interpreting its output.

reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme

When the plugin detects that Windows is using Dark Mode, it sets the IDEA theme to the selected theme. When the plugin detects that Windows is not using Dark Mode, it sets the IDEA theme to corresponding theme.

About

IDEA plugin for synchronizing theme with macOS's Dark Mode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 65.1%
  • Kotlin 34.9%