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.
./gradlew build
./gradlew runIde
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.
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.