Dark mode PDF reader. Contribute to samestep/satin development by creating an account on GitHub.
2 comments
keenankaufman3 days ago
Remapping only L in Oklab will be much more efficient than using the standard combination of invert() and hue-rotate(180deg), because it keeps hues correct while messing up saturations and making reds darker. With a and b remaining the same, any red highlights remain red. What about images and graphics? Remapping lightness in an image will make it seem like a negative image, hence you wouldn’t use image XObjects, but then diagrams that have white backgrounds end up as white boxes on a dark background.
sestep2 days ago
Currently I remap all backgrounds, text, and vector graphics, and I leave raster images alone. This works great for documents whose only raster images are photographs; some documents do have other raster images that might even have white backgrounds instead of transparent, so that's not ideal, but it seems to work decently well in practice.
Read the full thread on Hacker News →
Related stories
- Notes on implementing dark modebrandur.orgLobsters · 14 points · over 2 years ago
- Embracing Dark Mode: A User's Perspective on Accessibilityblog.master.devHacker News · 1 points · 6 days ago
- Practical Decryption exFiltration: Breaking PDF Encryptionpdf-insecurity.orgLobsters · 3 points · almost 7 years ago
- DEV Community · 2 points · 3 days ago
- Show HN: Why is my PDF so big? – See every byte of a PDF as a treemapwhyismypdfsobig.comHacker News · 2 points · 7 days ago
- Lobsters · 9 points · about 4 years ago