winaccent


Namewinaccent JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://github.com/Valer100/winaccent
SummaryA simple and lightweight Python module for easily retrieving Windows' accent color, including shades, specific window colors such as active/inactive titlebar and window borders and theme. Supports Windows 8.x, 10 and 11 and doesn't require additional dependencies.
upload_time2024-10-21 07:46:05
maintainerValer100
docs_urlNone
authorValer100
requires_python>=3.6
licenseMIT
keywords accent accent-light accent-dark accent-coloraccent-palette dark-mode light-mode system-theme color theme modern gui win32 fluent sun-valley windows-11 windows-10 windows-8 winui winaccent
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
    <img width="700" src="https://github.com/Valer100/winaccent/blob/main/assets/hero.png?raw=true">
</div>

# winaccent
[![PyPI](https://img.shields.io/pypi/v/winaccent)](https://pypi.org/project/winaccent/)
[![Python](https://img.shields.io/badge/python-3.6+-blue)]()
[![Windows](https://img.shields.io/badge/windows-8.0+-blue)]()
[![Downloads](https://img.shields.io/pepy/dt/winaccent)](https://pypi.org/project/winaccent/)
[![Stars](https://img.shields.io/github/stars/Valer100/winaccent?style=flat&color=yellow)]()
[![Contributors](https://img.shields.io/github/contributors/Valer100/winaccent)]()
[![License](https://img.shields.io/github/license/Valer100/winaccent)](https://github.com/Valer100/winaccent/blob/main/LICENSE)

A simple and lightweight Python module for easily retrieving Windows' accent color, including shades, specific window colors such as active/inactive titlebar and window borders and theme. Supports Windows 8.x, 10 and 11 and doesn't require additional dependencies.

## 📦 Installation
Run this command in your terminal:

```
pip install winaccent
```

To update the module, run this command:

```
pip install --upgrade winaccent
```

## 📝 Requirements
- Windows 8.0 or newer
- Python 3.6 or newer

## 📜 Documentation

> [!IMPORTANT]
> This is a Windows-only module. Trying to import this module on a OS other than Windows or a Windows version older than 8.0 will raise an `ImportError` exception. When using this module in cross-platform applications, make sure you only import and use winaccent on Windows systems to avoid errors. Here's an example:

```python
import sys

if sys.platform == "win32":
    import winaccent
    print(winaccent.accent_normal)
```

If you're using a Python version that supports Windows versions older than 8.0 (Python 3.8 and older), use the following example:

<details>
    <summary>Show the code</summary>

```python
import sys

if sys.platform == "win32":
    # Get Windows version (major.minor)
    version = sys.getwindowsversion()
    current_version = float(f"{version.major}.{version.minor}")

    # Check if the Windows version is greater than or equal to 6.2 (Windows 8)
    # Windows 8.1 will return 6.3 and Windows 10 and 11 will return 10.0
    if current_version >= 6.2:
        import winaccent
        print(winaccent.accent_normal)
```
</details>

---

### Get a specific accent color

> [!NOTE]
> The color values and previews shown here are for Windows 11's default accent color (blue). If you have a different accent color, you'll get the color values based on your accent color.

For simplicity, you can get a specific accent color from one of the following variables:

| Variable | Color | Preview |
|----------|:-------:|:-------:|
| accent_dark_mode<br>(or accent_light) | #4CC2FF | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark.png?raw=true"> |
| accent_normal | #0078D4 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_normal.png?raw=true"> |
| accent_light_mode<br>(or accent_dark) | #0067C0 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light.png?raw=true"> |

If you need a different shade, you can get it from one of these variables:

| Variable | Color | Preview |
|----------|:-------:|:-------:|
| accent_light_3 | #99EBFF | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark_3.png?raw=true"> |
| accent_light_2 | #4CC2FF | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark.png?raw=true"> |
| accent_light_1 | #0091F8 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark_1.png?raw=true"> |
| accent_normal | #0078D4 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_normal.png?raw=true"> |
| accent_dark_1 | #0067C0 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light.png?raw=true"> |
| accent_dark_2 | #003E92 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light_2.png?raw=true"> |
| accent_dark_3 | #001A68 | <img src="https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light_3.png?raw=true"> |

You can get the accent color used in lockscreen, UAC (Windows 10), welcome screen and start menu (Windows 8.x) and other elements using `accent_menu` variable (usually it's the same color as `accent_normal`, but can be modified in the registry).

> [!WARNING]
> The variables will return the colors in HEX color strings (e.g. `#RRGGBB`). If you need an RGB tuple instead of a HEX color string, use the `hex_to_rgb()` function. More information is provided in the [Convert HEX color string to RGB tuple](#convert-hex-color-string-to-rgb-tuple) section.

Example:

```python
import winaccent

print(winaccent.accent_light_mode) # Prints the light mode accent color
```

You may want to take a look at Microsoft's accent color guidelines. You can do that [here](https://learn.microsoft.com/en-us/windows/apps/design/style/color#accent-color-palette).

---

### Get active/inactive titlebar color or window border color

> [!WARNING]
> The colors provided by these variables are the colors used by Windows to colorize the titlebar and the window borders when the "Show accent color on title bars and window borders" option is enabled in Settings.
> <br><br>
> <img src="https://github.com/Valer100/winaccent/blob/main/assets/show_accent_color_on_window_stuff.png?raw=true">
> <br><br>
> Also, the `titlebar_active` and `window_border` variables don't always return the same color. The user can change the color of the titlebar or window borders from the registry. <br><br>
> <img src="https://github.com/Valer100/winaccent/blob/main/assets/custom_window_colors_demo.png?raw=true">

You can get the active titlebar color from `titlebar_active` variable and the inactive titlebar color from `titlebar_inactive`. The window border color can be obtained from `window_border` variable.

You can also check if colored titlebars are enabled using `is_titlebar_colored` boolean.

> [!NOTE]
> `titlebar_inactive` will return `None` if the inactive titlebar color isn't set (this is usually done via registry).

---

### Get apps or system theme
This module also allows you to check if the apps or system use the light theme or not using the `apps_use_light_theme` and `system_uses_light_theme` booleans. The difference between them is that `apps_use_light_theme` is used to check the apps' theme and `system_uses_light_theme` is used to check the theme of some system components, such as the taskbar, Start menu and others. Here's an example:

```python
import winaccent

if winaccent.apps_use_light_theme: 
    print("Apps use light theme")
else: 
    print("Apps use dark theme")

if winaccent.system_uses_light_theme:
    print("System uses light theme")
else:
    print("System uses dark theme")
    
```

> [!NOTE]
> `apps_use_light_theme` and `system_uses_light_theme` will always return `True` on Windows 8.x.

---

### Update values
The colors and settings values provided by this module can be updated manually using the ```update_values()``` function. This function will retrieve them again.

---

### Convert HEX color string to RGB tuple
This module has a function that allows you to convert a HEX color string to an RGB tuple. Useful if the GUI toolkit you're using expects using RGB tuples as colors instead of HEX string colors.

The function that does this is `hex_to_rgb()` and takes `hex` as an argument, where `hex` is the hex string color you want to convert to an RGB tuple. Here's how you can use it:

```python
import winaccent

# Prints (0, 120, 212) instead of #0078D4
print(winaccent.hex_to_rgb(winaccent.accent_normal))

# Prints (255, 255, 255) instead of #FFFFFF
print(winaccent.hex_to_rgb("#FFFFFF"))
```

---

### Appearance change listener
This module allows you to add a listener that will call a specific function when the accent color, active/inactive titlebar color, window border color or system theme changes. Here's how you can add it:

```python
import winaccent, threading

# Replace `callback` with the function that you want to be called
thread = threading.Thread(target = lambda: winaccent.on_appearance_changed(callback), daemon = True)
thread.start()
```

> [!NOTE]
> If you added the listener, there's no need to call `update_values()` because it will be called automatically every time the appearance changes.

Here's a demo:

https://github.com/user-attachments/assets/c77e3219-fa44-4026-bbc3-1995358f4c7e

## 💻 Demo
To see a demo, run the following command in your terminal (winaccent must be installed):

```python
python -m winaccent
```

This command has an optional `--mode` argument. It can take the following values:

| Value | Info |
|:------|:-----|
| gui | Shows a GUI demo. The GUI demo responds to accent color changes. |
| console | Shows a console demo. The console demo **does not** respond to accent color changes. |
| auto | If tkinter is installed and works correctly, a GUI demo will be shown. If that's not the case, a console demo will be shown. |

Example usage:

```
python -m winaccent --mode gui
```

The command will run with `--mode` set to `auto` by default.

Here's how a GUI demo looks:

| **Windows version** | **Default colors & settings** | **Modified colors & settings** |
|:-------------------:|:------------------:|:----------------------------:|
| **Windows 11** | ![Windows 11 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_11_default.png?raw=true) | ![Windows 11 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_11_modified.png?raw=true)
| **Windows 10** | ![Windows 10 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_10_default.png?raw=true) | ![Windows 10 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_10_modified.png?raw=true)
| **Windows 8** | ![Windows 8 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_8_default.png?raw=true) | ![Windows 8 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_8_modified.png?raw=true)

A console demo looks like this (for default blue accent color):

```
Accent palette
==============

accent_light_3:           #99EBFF
accent_light_2:           #4CC2FF
accent_light_1:           #0091F8
accent_normal:            #0078D4
accent_dark_1:            #0067C0
accent_dark_2:            #003E92
accent_dark_3:            #001A68


Windows options
===============

is_titlebar_colored:      False
titlebar_active:          #0078D4
titlebar_inactive:        None
window_border:            #0078D4


System theme
============

apps_use_light_theme:     False
system_uses_light_theme:  False


Other colors
============

accent_menu:              #0078D4
```


## 🤩 Feedback
If you found a bug or want to make a suggestion, open a new issue. If you're ready to add a new feature or fix a bug, pull requests are welcome.

If you found this module useful, please consider starring this repository.

## 📋 To do
- [x] ~~Add an accent color change listener~~
- [x] ~~Add color shades~~
- [x] ~~Add support for getting active/inactive titlebar color~~
- [x] ~~Add support for getting window border color~~
- [x] ~~Add support for Windows 8.x~~
- [x] ~~Add support for retrieving apps' and system's theme~~
- [ ] Add support for retrieving high contrast colors

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Valer100/winaccent",
    "name": "winaccent",
    "maintainer": "Valer100",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "accent, accent-light, accent-dark, accent-coloraccent-palette, dark-mode, light-mode, system-theme, color, theme, modern, gui, win32, fluent, sun-valley, windows-11, windows-10, windows-8, winui, winaccent",
    "author": "Valer100",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/82/b2/f6adbfe2ad2e76347a1445a6a1d342b103aded6ccad67c2917d8f0d2215c/winaccent-2.0.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\r\n    <img width=\"700\" src=\"https://github.com/Valer100/winaccent/blob/main/assets/hero.png?raw=true\">\r\n</div>\r\n\r\n# winaccent\r\n[![PyPI](https://img.shields.io/pypi/v/winaccent)](https://pypi.org/project/winaccent/)\r\n[![Python](https://img.shields.io/badge/python-3.6+-blue)]()\r\n[![Windows](https://img.shields.io/badge/windows-8.0+-blue)]()\r\n[![Downloads](https://img.shields.io/pepy/dt/winaccent)](https://pypi.org/project/winaccent/)\r\n[![Stars](https://img.shields.io/github/stars/Valer100/winaccent?style=flat&color=yellow)]()\r\n[![Contributors](https://img.shields.io/github/contributors/Valer100/winaccent)]()\r\n[![License](https://img.shields.io/github/license/Valer100/winaccent)](https://github.com/Valer100/winaccent/blob/main/LICENSE)\r\n\r\nA simple and lightweight Python module for easily retrieving Windows' accent color, including shades, specific window colors such as active/inactive titlebar and window borders and theme. Supports Windows 8.x, 10 and 11 and doesn't require additional dependencies.\r\n\r\n## \ud83d\udce6 Installation\r\nRun this command in your terminal:\r\n\r\n```\r\npip install winaccent\r\n```\r\n\r\nTo update the module, run this command:\r\n\r\n```\r\npip install --upgrade winaccent\r\n```\r\n\r\n## \ud83d\udcdd Requirements\r\n- Windows 8.0 or newer\r\n- Python 3.6 or newer\r\n\r\n## \ud83d\udcdc Documentation\r\n\r\n> [!IMPORTANT]\r\n> This is a Windows-only module. Trying to import this module on a OS other than Windows or a Windows version older than 8.0 will raise an `ImportError` exception. When using this module in cross-platform applications, make sure you only import and use winaccent on Windows systems to avoid errors. Here's an example:\r\n\r\n```python\r\nimport sys\r\n\r\nif sys.platform == \"win32\":\r\n    import winaccent\r\n    print(winaccent.accent_normal)\r\n```\r\n\r\nIf you're using a Python version that supports Windows versions older than 8.0 (Python 3.8 and older), use the following example:\r\n\r\n<details>\r\n    <summary>Show the code</summary>\r\n\r\n```python\r\nimport sys\r\n\r\nif sys.platform == \"win32\":\r\n    # Get Windows version (major.minor)\r\n    version = sys.getwindowsversion()\r\n    current_version = float(f\"{version.major}.{version.minor}\")\r\n\r\n    # Check if the Windows version is greater than or equal to 6.2 (Windows 8)\r\n    # Windows 8.1 will return 6.3 and Windows 10 and 11 will return 10.0\r\n    if current_version >= 6.2:\r\n        import winaccent\r\n        print(winaccent.accent_normal)\r\n```\r\n</details>\r\n\r\n---\r\n\r\n### Get a specific accent color\r\n\r\n> [!NOTE]\r\n> The color values and previews shown here are for Windows 11's default accent color (blue). If you have a different accent color, you'll get the color values based on your accent color.\r\n\r\nFor simplicity, you can get a specific accent color from one of the following variables:\r\n\r\n| Variable | Color | Preview |\r\n|----------|:-------:|:-------:|\r\n| accent_dark_mode<br>(or accent_light) | #4CC2FF | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark.png?raw=true\"> |\r\n| accent_normal | #0078D4 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_normal.png?raw=true\"> |\r\n| accent_light_mode<br>(or accent_dark) | #0067C0 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light.png?raw=true\"> |\r\n\r\nIf you need a different shade, you can get it from one of these variables:\r\n\r\n| Variable | Color | Preview |\r\n|----------|:-------:|:-------:|\r\n| accent_light_3 | #99EBFF | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark_3.png?raw=true\"> |\r\n| accent_light_2 | #4CC2FF | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark.png?raw=true\"> |\r\n| accent_light_1 | #0091F8 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_dark_1.png?raw=true\"> |\r\n| accent_normal | #0078D4 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_normal.png?raw=true\"> |\r\n| accent_dark_1 | #0067C0 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light.png?raw=true\"> |\r\n| accent_dark_2 | #003E92 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light_2.png?raw=true\"> |\r\n| accent_dark_3 | #001A68 | <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/colors/accent_light_3.png?raw=true\"> |\r\n\r\nYou can get the accent color used in lockscreen, UAC (Windows 10), welcome screen and start menu (Windows 8.x) and other elements using `accent_menu` variable (usually it's the same color as `accent_normal`, but can be modified in the registry).\r\n\r\n> [!WARNING]\r\n> The variables will return the colors in HEX color strings (e.g. `#RRGGBB`). If you need an RGB tuple instead of a HEX color string, use the `hex_to_rgb()` function. More information is provided in the [Convert HEX color string to RGB tuple](#convert-hex-color-string-to-rgb-tuple) section.\r\n\r\nExample:\r\n\r\n```python\r\nimport winaccent\r\n\r\nprint(winaccent.accent_light_mode) # Prints the light mode accent color\r\n```\r\n\r\nYou may want to take a look at Microsoft's accent color guidelines. You can do that [here](https://learn.microsoft.com/en-us/windows/apps/design/style/color#accent-color-palette).\r\n\r\n---\r\n\r\n### Get active/inactive titlebar color or window border color\r\n\r\n> [!WARNING]\r\n> The colors provided by these variables are the colors used by Windows to colorize the titlebar and the window borders when the \"Show accent color on title bars and window borders\" option is enabled in Settings.\r\n> <br><br>\r\n> <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/show_accent_color_on_window_stuff.png?raw=true\">\r\n> <br><br>\r\n> Also, the `titlebar_active` and `window_border` variables don't always return the same color. The user can change the color of the titlebar or window borders from the registry. <br><br>\r\n> <img src=\"https://github.com/Valer100/winaccent/blob/main/assets/custom_window_colors_demo.png?raw=true\">\r\n\r\nYou can get the active titlebar color from `titlebar_active` variable and the inactive titlebar color from `titlebar_inactive`. The window border color can be obtained from `window_border` variable.\r\n\r\nYou can also check if colored titlebars are enabled using `is_titlebar_colored` boolean.\r\n\r\n> [!NOTE]\r\n> `titlebar_inactive` will return `None` if the inactive titlebar color isn't set (this is usually done via registry).\r\n\r\n---\r\n\r\n### Get apps or system theme\r\nThis module also allows you to check if the apps or system use the light theme or not using the `apps_use_light_theme` and `system_uses_light_theme` booleans. The difference between them is that `apps_use_light_theme` is used to check the apps' theme and `system_uses_light_theme` is used to check the theme of some system components, such as the taskbar, Start menu and others. Here's an example:\r\n\r\n```python\r\nimport winaccent\r\n\r\nif winaccent.apps_use_light_theme: \r\n    print(\"Apps use light theme\")\r\nelse: \r\n    print(\"Apps use dark theme\")\r\n\r\nif winaccent.system_uses_light_theme:\r\n    print(\"System uses light theme\")\r\nelse:\r\n    print(\"System uses dark theme\")\r\n    \r\n```\r\n\r\n> [!NOTE]\r\n> `apps_use_light_theme` and `system_uses_light_theme` will always return `True` on Windows 8.x.\r\n\r\n---\r\n\r\n### Update values\r\nThe colors and settings values provided by this module can be updated manually using the ```update_values()``` function. This function will retrieve them again.\r\n\r\n---\r\n\r\n### Convert HEX color string to RGB tuple\r\nThis module has a function that allows you to convert a HEX color string to an RGB tuple. Useful if the GUI toolkit you're using expects using RGB tuples as colors instead of HEX string colors.\r\n\r\nThe function that does this is `hex_to_rgb()` and takes `hex` as an argument, where `hex` is the hex string color you want to convert to an RGB tuple. Here's how you can use it:\r\n\r\n```python\r\nimport winaccent\r\n\r\n# Prints (0, 120, 212) instead of #0078D4\r\nprint(winaccent.hex_to_rgb(winaccent.accent_normal))\r\n\r\n# Prints (255, 255, 255) instead of #FFFFFF\r\nprint(winaccent.hex_to_rgb(\"#FFFFFF\"))\r\n```\r\n\r\n---\r\n\r\n### Appearance change listener\r\nThis module allows you to add a listener that will call a specific function when the accent color, active/inactive titlebar color, window border color or system theme changes. Here's how you can add it:\r\n\r\n```python\r\nimport winaccent, threading\r\n\r\n# Replace `callback` with the function that you want to be called\r\nthread = threading.Thread(target = lambda: winaccent.on_appearance_changed(callback), daemon = True)\r\nthread.start()\r\n```\r\n\r\n> [!NOTE]\r\n> If you added the listener, there's no need to call `update_values()` because it will be called automatically every time the appearance changes.\r\n\r\nHere's a demo:\r\n\r\nhttps://github.com/user-attachments/assets/c77e3219-fa44-4026-bbc3-1995358f4c7e\r\n\r\n## \ud83d\udcbb Demo\r\nTo see a demo, run the following command in your terminal (winaccent must be installed):\r\n\r\n```python\r\npython -m winaccent\r\n```\r\n\r\nThis command has an optional `--mode` argument. It can take the following values:\r\n\r\n| Value | Info |\r\n|:------|:-----|\r\n| gui | Shows a GUI demo. The GUI demo responds to accent color changes. |\r\n| console | Shows a console demo. The console demo **does not** respond to accent color changes. |\r\n| auto | If tkinter is installed and works correctly, a GUI demo will be shown. If that's not the case, a console demo will be shown. |\r\n\r\nExample usage:\r\n\r\n```\r\npython -m winaccent --mode gui\r\n```\r\n\r\nThe command will run with `--mode` set to `auto` by default.\r\n\r\nHere's how a GUI demo looks:\r\n\r\n| **Windows version** | **Default colors & settings** | **Modified colors & settings** |\r\n|:-------------------:|:------------------:|:----------------------------:|\r\n| **Windows 11** | ![Windows 11 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_11_default.png?raw=true) | ![Windows 11 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_11_modified.png?raw=true)\r\n| **Windows 10** | ![Windows 10 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_10_default.png?raw=true) | ![Windows 10 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_10_modified.png?raw=true)\r\n| **Windows 8** | ![Windows 8 default](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_8_default.png?raw=true) | ![Windows 8 modified](https://github.com/Valer100/winaccent/blob/main/assets/demo2/win_8_modified.png?raw=true)\r\n\r\nA console demo looks like this (for default blue accent color):\r\n\r\n```\r\nAccent palette\r\n==============\r\n\r\naccent_light_3:           #99EBFF\r\naccent_light_2:           #4CC2FF\r\naccent_light_1:           #0091F8\r\naccent_normal:            #0078D4\r\naccent_dark_1:            #0067C0\r\naccent_dark_2:            #003E92\r\naccent_dark_3:            #001A68\r\n\r\n\r\nWindows options\r\n===============\r\n\r\nis_titlebar_colored:      False\r\ntitlebar_active:          #0078D4\r\ntitlebar_inactive:        None\r\nwindow_border:            #0078D4\r\n\r\n\r\nSystem theme\r\n============\r\n\r\napps_use_light_theme:     False\r\nsystem_uses_light_theme:  False\r\n\r\n\r\nOther colors\r\n============\r\n\r\naccent_menu:              #0078D4\r\n```\r\n\r\n\r\n## \ud83e\udd29 Feedback\r\nIf you found a bug or want to make a suggestion, open a new issue. If you're ready to add a new feature or fix a bug, pull requests are welcome.\r\n\r\nIf you found this module useful, please consider starring this repository.\r\n\r\n## \ud83d\udccb To do\r\n- [x] ~~Add an accent color change listener~~\r\n- [x] ~~Add color shades~~\r\n- [x] ~~Add support for getting active/inactive titlebar color~~\r\n- [x] ~~Add support for getting window border color~~\r\n- [x] ~~Add support for Windows 8.x~~\r\n- [x] ~~Add support for retrieving apps' and system's theme~~\r\n- [ ] Add support for retrieving high contrast colors\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple and lightweight Python module for easily retrieving Windows' accent color, including shades, specific window colors such as active/inactive titlebar and window borders and theme. Supports Windows 8.x, 10 and 11 and doesn't require additional dependencies.",
    "version": "2.0.1",
    "project_urls": {
        "Documentation": "https://github.com/Valer100/winaccent?tab=readme-ov-file#-documentation",
        "Homepage": "https://github.com/Valer100/winaccent",
        "Issues": "https://github.com/Valer100/winaccent/issues",
        "Source": "https://github.com/Valer100/winaccent"
    },
    "split_keywords": [
        "accent",
        " accent-light",
        " accent-dark",
        " accent-coloraccent-palette",
        " dark-mode",
        " light-mode",
        " system-theme",
        " color",
        " theme",
        " modern",
        " gui",
        " win32",
        " fluent",
        " sun-valley",
        " windows-11",
        " windows-10",
        " windows-8",
        " winui",
        " winaccent"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "58161903c15f5b3725c73c4bb69e9bf2398a5efc77902fe2fa8aea436a0809ff",
                "md5": "6c17b179db06ac4a331282149fa93c36",
                "sha256": "e9dce7bb054652fd3bcfcb2d1d46d53982e8d5daf3c0cf9ee7b6724b77592b62"
            },
            "downloads": -1,
            "filename": "winaccent-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c17b179db06ac4a331282149fa93c36",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12672,
            "upload_time": "2024-10-21T07:46:04",
            "upload_time_iso_8601": "2024-10-21T07:46:04.178783Z",
            "url": "https://files.pythonhosted.org/packages/58/16/1903c15f5b3725c73c4bb69e9bf2398a5efc77902fe2fa8aea436a0809ff/winaccent-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82b2f6adbfe2ad2e76347a1445a6a1d342b103aded6ccad67c2917d8f0d2215c",
                "md5": "67ae2171f89b4e731e815d208a53e8ba",
                "sha256": "65a8710a500cc4bccf590a4a1ffa74888e27527a7690251a62294898508af220"
            },
            "downloads": -1,
            "filename": "winaccent-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "67ae2171f89b4e731e815d208a53e8ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 14885,
            "upload_time": "2024-10-21T07:46:05",
            "upload_time_iso_8601": "2024-10-21T07:46:05.742344Z",
            "url": "https://files.pythonhosted.org/packages/82/b2/f6adbfe2ad2e76347a1445a6a1d342b103aded6ccad67c2917d8f0d2215c/winaccent-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-21 07:46:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Valer100",
    "github_project": "winaccent",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "winaccent"
}
        
Elapsed time: 0.95796s