ChaitanyaPramod / dark-mode-sync-plugin

IDEA plugin for synchronizing themes with the operating system's Dark Mode

Home Page:https://plugins.jetbrains.com/plugin/12515-dark-mode-sync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Attributions

Icon made by Freepik from www.flaticon.com

About

IDEA plugin for synchronizing themes with the operating system's Dark Mode

https://plugins.jetbrains.com/plugin/12515-dark-mode-sync

License:MIT License


Languages

Language:Java 66.3%Language:Kotlin 33.7%