A simple module for getting Windows' accent color
Project description
winaccent
A simple and lightweight Python module for getting Windows' accent color. With this module you can get both light and dark mode accent colors.
📦 Installation
Run this command in your terminal:
pip install winaccent
📜 Documentation
Get a specific accent color
Variable | Info |
---|---|
accent_light | Returns the light mode accent color |
accent_dark | Returns the dark mode accent color |
accent_normal | Returns the normal accent color |
Example:
import winaccent
print(winaccent.accent_light) # Prints the light mode accent color
Update accent colors
The accent colors can be updated using the update_accent_colors()
function. This function will retrieve the values again.
🖥️ Output
Here is the output for the default (blue) accent color on Windows 11:
Variable | Color | Preview |
---|---|---|
accent_light | #0067C0 | |
accent_dark | #4CC2FF | |
accent_normal | #0078D4 |
Here is the output for a custom accent color (green):
Variable | Color | Preview |
---|---|---|
accent_light | #007300 | |
accent_dark | #3FFF24 | |
accent_normal | #008B00 |
📋 To do
- Add an accent color change listener
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
winaccent-0.2.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for winaccent-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170d3c9016868eba6d54336e0253000dcbc490bd546298053a58348e2bc156bd |
|
MD5 | d9507bc5c02c7717250d7a6738fd30ca |
|
BLAKE2b-256 | a6672b61686b53b8d285b2b1b4fd05e0b954bcb6f0cceaf2a433778005c1843b |