-
Notifications
You must be signed in to change notification settings - Fork 133
fixes ColorOption.contrast (issue #105) #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This looks robust. Can you add it as a comment to the factory constructor? Such as: /// The contrast translate follows the guide at
/// https://docs.rainmeter.net/tips/colormatrix-guide. Also, to make sure the value will be translated correctly and to avoid regressions, can you add a simple test to make sure the matrix is produced correctly through this option? |
I added the reference to the guide. By 'add a simple test' I didn't know if you mean a programatic test or a simple test app. I didn't find any already written tests in the package's files, only examples, so I concluded you mean a simple example test app. Here it is:
|
Well here I mean a simple unit test to use the factory and check expectations. |
The current matrix for contrast is identical to the brightness matrix. The modification is based on the following guide:
https://docs.rainmeter.net/tips/colormatrix-guide/
and tested, too.