GithubHelp home page GithubHelp logo

altalex531 / dwm_colorization_calculator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

Converts HSB color and control panel color intensity slider or just ARGB color to the DWMCOLORIZATIONPARAMETERS structure

License: GNU General Public License v3.0

Python 100.00%
aero colorization dwm windows windows7

dwm_colorization_calculator's Introduction

DWM Colorization Calculator

Converts HSB color and control panel color intensity slider or just ARGB color to the DWMCOLORIZATIONPARAMETERS structure used by DwmSetColorizationParameters.

You can read the code to understand how the Windows 7 Control Panel converts the values of several sliders into relevant DWM registry items.

Details

Windows 7 Control Panel colors are actually in HSB format, and the color intensity slider actually controls the alpha value of the converted CColorizationColor structure which is a DWORD stored in ARGB format.

When the user moves the sliders, the control panel reads the values of those sliders and performs a color format conversion. For some strange reasons, the value of the slider for color intensity is limited to 0x0D(13) to 0xD9(217).

Windows 10 only retains the last bit of calculations regarding color balance, however ColorizationAfterglowBalance is hardcoded to 10 and ColorizationBlurBalance is hardcoded to 1. Inside UxTheme.dll, new immersive color-related interfaces and functions have been introduced, which internally check if the calculated result of current color matches the value in the registry, and override the registry value if it doesn't, which is why Colorization*Balance is often reset to its default value.

dwm_colorization_calculator's People

Contributors

altalex531 avatar

Stargazers

Akay Devel Coder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.