Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-11T17:36:03.000Z (9 months ago)
- Last Synced: 2024-04-11T19:37:14.120Z (9 months 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
[![PyPI](https://img.shields.io/pypi/v/accentcolordetect)](https://pypi.org/project/accentcolordetect/)
[![Python](https://img.shields.io/pypi/pyversions/accentcolordetect)](https://www.python.org/downloads//)
![Downloads](https://img.shields.io/pypi/dm/accentcolordetect)
![Status](https://img.shields.io/pypi/status/accentcolordetect)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Issues](https://img.shields.io/github/issues/legopitstop/accentcolordetect)](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')
```