Hi!
But it's not that point. An svg is a graphic image file. Colors shouldn't be changed by dark mode enhanced. You can't see other dark images and pictures on dark background, too. An svg with coded colors can show the wrong colors, when they are changed by dark mode enhanced.
I have one option in my mind. Code an svg file for light mode and an svg file for dark mode and change the Mediawiki software in that manner, to read whether dark mode is enhanced or not and then select the correct svg file. I can't do that, I guess it needs a phabricator task.
(I hope you can read and understand this, my technical English is not the best.)
Kind regards Doc Taxon ...
Am Mi., 3. Juli 2024 um 12:46 Uhr schrieb יגאל חיטרון < khitron@post.bgu.ac.il>:
Well, I'm giving up. I tryed a dozen of options, and nothing helps. This file will remain the same in the dark mode. Thank you for trying. Igal
בתאריך יום ד׳, 3 ביולי 2024, 00:04, מאת יגאל חיטרון < khitron@post.bgu.ac.il>:
This is the file: https://ru.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Moscow_metro_map_sb_l.... This is gray on gray in the dark mode: https://commons.wikimedia.org/wiki/File:Russian_Wikipedia_%D0%A8%D0%B0%D0%B1...
בתאריך יום ג׳, 2 ביולי 2024 ב-23:57 מאת Chris Ciufo < cciufo@wikimedia.org>:
Hi IKhitron, are you able to provide a link to the svg in question so that more specific guidance can be given?
In case you haven't seen it, there are specific recommendations for making content compatible with dark mode on wiki here https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis . This section https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis#Apply_filters_to_dark_images_with_transparent_background about dark images with transparent backgrounds might be the most useful to you.
I saw, of course, but it's definitely not an icon. Thank you.
Igal
On Tue, Jul 2, 2024 at 3:50 PM Igal Khitron khitron@gmail.com wrote:
Hello. Is there a chance anybody knows a codex variable color that is gray in regular, and much darker in the dark mode? I'm looking for a way to adjust an svg file to the Mediawiki dark mode, and I have some gray text on white background that can't remain gray on gray background, it should have a good contrast to be readable. Unfortunately, we couldn't find a way to change the colors of the .svg file itself (not .svg.png) for the dark mode. Thank you. Igal (User:IKhitron)
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
-- *Christopher Ciufo* (He/him) Senior Product Manager, Platform Wikimedia Foundation https://wikimediafoundation.org/ _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/