NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #4527 most downloaded on PyPI
Detect OS Dark Mode from Python
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.8 years
Nearly every release is documented
notes for 11 of 12 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
12 releases · first in 2019
A new release of darkdetect is ready. The most prominent new feature is a listener for macOS, finally, thanks to the efforts of @zwimer. In addition,
A new release of darkdetect is ready. The most prominent new feature is a listener for macOS, finally, thanks to the efforts of @zwimer. In addition, from this release the support for Python 2.7 and any versions older than 3.6 is dropped. Users of older Python versions can continue using darkdetect<=0.7.*.
Changelog:
listener function (issue #25, PR #30 by @zwimer)
pip install darkdetect[macos-listener]setup.py to pyproject.toml (PR #28 by @zwimer)It's time for a patch release. The main change is that compatibility with Python 2.7 should now be restored.
It's time for a patch release. The main change is that compatibility with Python 2.7 should now be restored.
Changelog:
__main__ module to make the package callable from a terminal as python -m darkdetect.One column per quarter.
macOS: do not use the deprecated distutils.version to check OS version compatibility. The needed logic was reimplemented (issue #18 by @Carreau).
This release contains an important change for Linux: from now on, all the themes that have -dark (case-insensitive) in their names will be detected as 'Dark' by darkdetect. Thanks to @DoctorDalek1963 for this contribution!
Changelog:
'-dark' in theme.lower() (initially suggested in #17 by @HetDaftary, PR #24 by @DoctorDalek1963. Thanks to @larsoner for his support).distutils.version to check OS version compatibility. The needed logic was reimplemented (issue #18 by @Carreau).Time for a new release with an exciting new feature: listeners for theme changes for Windows and Linux! Many thanks to @TransparentLC for having imple
Time for a new release with an exciting new feature: listeners for theme changes for Windows and Linux! Many thanks to @TransparentLC for having implemented those.
Changelog:
callback API to dynamically detect when the theme is changed on Windows and Linux (issue #14, PR #20 by @TransparentLC)ValueError when the package is imported on Windows Server (PR #21 by @PierreRaybaut)sys to platform to detect the OS versionWindows: the package could have raised FileNotFoundError in some headless systems.
A few minor bug fixes:
FileNotFoundError in some headless systems.
None as if the dark mode were not availableAdd compatibility with macOS Big Sur on arm64 (Apple Silicon) (issue #12 raised and debugged by @psobolewskiPhD)
Add compatibility with macOS Big Sur (support Big Sur dynamic library cache, issue #11)
Linux GTK: change detection code to use subprocess instead of ctypes (PR #10 by @larsoner, raised in #9 by @HetDaftary)
subprocess instead of ctypes (PR #10 by @larsoner, raised in #9 by @HetDaftary)Add support for GTK Dark Theme detection on Linux (PR #8 by @larsoner)
Add support for Dark Theme detection on Windows 10 1607+ (build 14393+) (PR #4 by @cboy343)
Return None if the OS is not supported.
None if the OS is not supported.darwin.Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →