Module talk:Shindo

Still alpha?

Is the "alpha" rating for this module still appropriate? It appears to conflict with the template's use in over 1,000 articles. – Jonesey95 (talk) 22:12, 1 October 2024 (UTC)[reply]

Dark mode color change

In light of Awesome Aasim's recent edits to add compatibility for dark mode, I wanted to discuss them as there was no previous mention I could find of it. The colors look incredibly unsaturated on light mode, and since this template controls every single earthquake intensity scale's template, I undid the revision so there could be a discussion of it first. I personally am not a fan, but I wanted to start a conversation to see how best to implement it, if at all.

Thanks, SamBroGaming (talk) 00:19, 23 June 2025 (UTC)[reply]

Hi, yes. I developed a module that essentially "unblends" colors by computing its corresponding hue and then determining alpha transparency to reblend them together. I created that module for a different reason, that some inline styles like those use on WP:EW originally specified opaque colors which are not dark mode friendly.
The issue I was running into was with regards to "unmixing" some of the darker colors. Also there isn't a way to specify "opposite, actually" when it is needed to invert the text color which means that on dark mode some elements would become unreadable. I wanted to make sure I preserved web accessibility even if it comes at the expense of slightly less saturated colors when expanding to dark mode.
A more proper solution probably would be the extensive use of templatestyles. But that would require specifying two different colors to specify for each cell item. Hence why I sought to instead cut the alpha transparency in half.
But the permanent temporary solution would probably be to probably "unmix" black as well which would allow darker colors more prominent in light mode to retain the same prominence in dark mode. Aasim (話すはなす) 01:21, 23 June 2025 (UTC)[reply]

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.