Text for "corrupted" drives is red, and when is selected isn't really readable.



Default Yaru from 18.10 LiveCD.
Software that presents the issue:
Uhhh, we didn't have a corrupted drive when testing, so thanks for reporting this dawidpotocki
Any ideas @Feichtmeier ?
I'll check when I have a corrupted drive :D
@dawidpotocki please do not fix your drive yet :smile: , we need you to fix this :wink:
Could you please take the same screenshot with Adwaita, for comparison?
Thank you
I nearly though that I won't be able to make GNOME Disks to show my drive as broken :P. But there you go:


Adwaita doesn't also seem to do it nicely.
Please tell me how I can help with that :).
The label color is hardcoded in several places, e.g. here
/* Otherwise, if last self-test failed, return that for the one-liner */
if (g_str_has_prefix (udisks_drive_ata_get_smart_selftest_status (ata), "error"))
{
/* TODO: once https://bugzilla.gnome.org/show_bug.cgi?id=657194 is resolved, use that instead
* of hard-coding the color
*/
ret = g_strdup_printf ("<span foreground=\"#ff0000\"><b>%s</b></span>",
_("SELF-TEST FAILED"));
warn = TRUE;
goto out;
}
and it's hard to see if gnome-disk adds any special label to this item, because it's a row inside a tree_view and gtk-inspector doesn't show it.
Hardcoding red on blue is really a poor choice - very hard to red.
They knew it. There is a comment that reminds to a bug requesting to get the style from the theme. However the bug is now "RESOLVED OBSOLETE", so I don't know (yet) if this can be fixed or not
I double checked in source code and could not find any special class for this warning message. I am afraid we can't do nothing, so I close this now