fix: milgra/sov#42 CSS Colors don't follow standard #RRGGBBAA (fixes #42, closes #40) #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before patch & After patch Examples
Before
After
Note: Both above examples are using the following
main.cssconfigWhile hexidecimal color palindromes will be the same across both Before & After examples...
Extreme pure color choices reveal the BGR vs. RGB behavior. The config specifies the following colors in RGB hex format:
mainborder-color: Redworkspaceborder-color: Bluewindowborder-color: Greenwindow_activeborder-color: Teal~/.config/sov/html/main.css:Explanation of Change
Although very misleading, the Wayland RGBA format appears to be actually stored as BGRA:
Compatible format between OpenGL
GL_RGBA+GL_UNSIGNED_BYTEandwayland_drmfamily appears to be:WL_DRM_FORMAT_ABGR8888In this code,
WL_SHMis used, so this commit uses theSHMvariant.Reference:
Video: https://www.youtube.com/watch?v=NoZwgNSuqkU
Slides: https://archive.fosdem.org/2018/schedule/event/pixel_formats/attachments/slides/2627/export/events/attachments/pixel_formats/slides/2627/fosdem_2018_pixel_format_guide.pdf
pixel-format-guide
Project Page: https://afrantzis.github.io/pixel-format-guide/
Project Repo: https://github.com/afrantzis/pixel-format-guide
Blog: https://afrantzis.wordpress.com/