Skip to content
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

Add support for Oklab Color Standard #7744

Open
Gh0stD3x opened this issue Feb 26, 2025 · 2 comments
Open

Add support for Oklab Color Standard #7744

Gh0stD3x opened this issue Feb 26, 2025 · 2 comments
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request

Comments

@Gh0stD3x
Copy link

Feature Description

Brief:
The OKLab color space offers perceptual uniformity, improving color accuracy and consistency in visual applications. Implementing OKLab in the Slint GUI framework would enhance color manipulation, interpolation, and overall user experience.

Technical Benefits:

  • Perceptual Uniformity: Ensures consistent color perception, crucial for applications requiring precise color representation.
  • Improved Color Accuracy: Facilitates high-fidelity color reproduction, essential for design and visual data
  • Enhanced Interpolation: Allows for smoother color transitions and animations, resulting in a more appealing
  • Alignment with Modern Standards: Meets contemporary design trends favoring vibrant and accurate color
  • Future-Proofing: Positions Slint to adapt to evolving color management technologies.

A good explaination of the oklab color standard can be found here.

Would also be good as a first issue for someone else, as hsv and rgb are already implemented.

Product Impact

Its not very critical, but would greatly enhance Quality of Life, building apps in slint. Would also be great for creating palletes with nicelooking color transitions.

@Gh0stD3x Gh0stD3x added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Feb 26, 2025
@ogoffart ogoffart added a:language-slint Compiler for the .slint language (mO,bF) and removed need triaging Issue that the owner of the area still need to triage labels Mar 5, 2025
@ogoffart
Copy link
Member

ogoffart commented Mar 5, 2025

I guess we could have a Colors.oklab(...) following the CSS spec: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklab

@ogoffart
Copy link
Member

ogoffart commented Mar 5, 2025

Akthough it seems that this is not a simple function and will need a @oklab(...) syntax understood by the parser. (similar to the @linear-gradiant thing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants