Winaccent

Latest version: v2.0.1

Safety actively analyzes 681790 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.1

Breaking changes
- The minimum Python version supported was changed to 3.6
- The module will now raise an `ImportError` exception instead of an `UnsupportedPlatfromException` exception
- `on_accent_changed_listener()` function was renamed to `on_appearance_changed()`
- `update_accent_colors()` function was renamed to `update_values()`

New features
- Added Windows 8.x support
- Added a function to convert HEX colors to RGB tuples (`hex_to_rgb()`)
- Retrieve apps' theme and system's theme using `apps_use_light_theme` and `system_uses_light_theme` booleans

Read the documentation to learn more about the new features.

Fixes
- Get the right `window_border` color in Windows 10 and 11
- Use placeholder values if the registry keys for some values do not exist
- More optimizations and improvements

2.0.0

Well, that version had a bug that I didn't notice. The `system_uses_light_theme` boolean was returning the wrong value for the current system theme. This is fixed in v2.0.1.

<br>

> [!NOTE]
> To update, run the following command:
>
>
> pip install --upgrade winaccent
>

1.1.0

What's new
- Now you can check if the "Show accent color on title bars and window borders" option from Settings > Personalization > Color is enabled using the `is_titlebar_colored` boolean.
- New colors added: `titlebar_active`, `titlebar_inactive`, `window_border` and `accent_menu`. Read the documentation to learn more about them.
- Some demo improvements.


> [!NOTE]
> To update, run the following command:
>
>
> pip install --upgrade winaccent
>

1.0.1

What's new
- Raise a `winaccent.UnsupportedPlatformException` exception when the module is imported on a different OS than Windows and Windows versions older than 10.
- `winreg` module won't be imported anymore on platforms other than Windows
- Now `python -m winaccent` supports an optional `--mode` argument. Read the documentation to learn more about it.


> [!NOTE]
> To update, run the following command:
>
>
> pip install --upgrade winaccent
>

1.0.0

Breaking changes
`accent_light` was renamed to `accent_dark` and `accent_dark` to `accent_light` to reflect the lightness/darkness of the color. This means that after upgrading to 1.0.0 these colors will be inverted.

The easiest fix for this is to replace all occurences of `accent_light` with `accent_light_mode` and `accent_dark` with `accent_dark_mode`.

`accent_light_mode` and `accent_dark_mode` variables are named to reflect the theme (light/dark mode) and work the same way like `accent_light` and `accent_dark` variables from previous versions.

What's new
- Added accent color shades. Read the documentation to learn more about them.
- When running `python -m winaccent` in terminal a window with the current accent palette will be shown

> [!NOTE]
> To update, run the following command:
>
>
> pip install --upgrade winaccent
>

0.3.0

What's new
- Added on accent color changed listener

> [!NOTE]
> To update, run the following command:
>
>
> pip install --upgrade winaccent
>

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.