https://github.com/legopitstop/accentcolordetect
Detect OS accent color from Python
https://github.com/legopitstop/accentcolordetect
colordetect darwin gui pypi python pythonpackage tkinter windows
Last synced: over 1 year ago
JSON representation
Detect OS accent color from Python
- Host: GitHub
- URL: https://github.com/legopitstop/accentcolordetect
- Owner: legopitstop
- License: mit
- Created: 2023-04-21T22:13:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T17:36:03.000Z (about 2 years ago)
- Last Synced: 2024-04-11T19:37:14.120Z (about 2 years ago)
- Topics: colordetect, darwin, gui, pypi, python, pythonpackage, tkinter, windows
- Language: Python
- Homepage: https://pypi.org/project/accentcolordetect/
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# accentcolordetect
[](https://pypi.org/project/accentcolordetect/)
[](https://www.python.org/downloads//)


[](https://github.com/ambv/black)
[](https://github.com/legopitstop/accentcolordetect/issues)
This package allows you to detect the user's accent color on:
- macOS (untested)
- Windows 10+
The main application of this package is to detect the accent color from your GUI Python application and apply the needed adjustments to your interface. Inspired by the [darkdetect](https://pypi.org/project/darkdetect/) package by [Alberto Sottile](https://pypi.org/user/albertosottile/)
## Installation
Install the module with pip:
```bat
pip3 install accentcolordetect
```
Update existing installation: `pip3 install accentcolordetect --upgrade`
## Usage
```Python
import accentcolordetect
>>> accentcolordetect.accent()
((255, 140, 0), '#ff8c00')
```