{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"Detects whether the operating system is in Dark Mode on macOS 10.14+, Windows 10 1607+, and Linux with dark GTK themes, and optionally monitors for theme changes.","skillfed_tags":["dark-mode-detection","gui-theming","cross-platform"],"use_cases":["Adapt a Tkinter, wxPython, or PyQt GUI to match the system dark mode without relying on the GUI framework's own detection API.","Monitor for live theme switches and update application colors in real time via a background listener thread.","Conditionally load light or dark stylesheets or color palettes at application startup based on the current OS theme.","Build cross-platform desktop tools that respect user accessibility and appearance preferences on macOS, Windows, and Linux.","Vendor darkdetect into a standalone application to avoid external package dependencies while still supporting dark mode detection."],"what_it_does":"Darkdetect is a lightweight, dependency-free library that queries the operating system to determine whether Dark Mode is currently active. It works on macOS 10.14+, Windows 10 1607+, and Linux systems with dark GTK themes, returning a simple boolean or string indicating the current theme. The package is designed for GUI application developers who need to adapt their interface colors to match the system theme, particularly when their GUI framework does not expose a native dark mode detection API.\n\nThe library provides three main functions: `theme()` returns the string 'Dark' or 'Light', `isDark()` and `isLight()` return booleans. It also offers a `listener()` function that runs as a daemon thread to monitor for OS theme changes and invoke a callback when the user switches modes. Because it has no external dependencies beyond the Python standard library, it can be vendored directly into applications if needed.","worth_installing":"Yes, if you are building a GUI application on macOS, Windows, or Linux and need to detect or respond to the system dark mode. The package is lightweight, has no dependencies, and solves a real problem for frameworks that do not expose dark mode detection. Maintenance is dormant but the package is stable and has no known vulnerabilities; install it as a utility library rather than expecting active development."},"id":"darkdetect","links":{"html":"https://skillfed.io/packages/darkdetect","md":"https://skillfed.io/packages/darkdetect.md","pypi":"https://pypi.org/project/darkdetect/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-12-16","license_spdx":null,"license_treatment":"permissive","name":"darkdetect","python_support":"supports_current","summary":"Detect OS Dark Mode from Python"},"popularity":{"monthly_downloads":1369936,"position":3994,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
