Automatically modify extension icons when "invisible" |
|||
Issue descriptionMalicious extensions sometimes try to make their icons blend against the toolbar/menu so users don't see them and don't realize they can right-click and remove them. We should try to detect this case and modify the icon programmatically to increase visibility. I don't know precisely how to do this; look for "sufficient area of sufficient contrast" and if it doesn't exist, either luma-invert the icon (if that will help enough) or badge/replace it? We have helper functions to compute the contrast of two colors or the luma inversion of a color, but working with whole images/regions is a different story. Maybe some of the accessibility folks know of relevant recommendations for if imagery is "easy enough to spot".
,
Jan 23 2018
That would avoid the challenge of detecting visibility, but it has some downsides: * Just drawing a border says "there's something here", but not what it is; things can still look broken/unintuitive. Luma inversion or using a default extension icon make it much clearer that "this is an extension". * Something like luma inversion could help non-malicious cases, too: if the user has installed a custom theme and the extension's icon is not visible over that theme's toolbar color, this can "fix" the problem automatically. * None of the rest of Chrome's toolbar uses such effects, and in general icon buttons in Chrome don't have borders, so either we'd have to live with extensions looking like a Win 95 effect dropped into a Win 10 world, or we'd need to redesign our UI language; neither course is very appealing.
,
Feb 7 2018
,
Feb 7 2018
Sorry Peter, didn't see this before I filed issue 805600. Merging into that one to continue the discussion, but I'm very interested in your thoughts there. |
|||
►
Sign in to add a comment |
|||
Comment 1 by lambroslambrou@google.com
, Jan 23 2018