Bug 151502 - [GTK] Non-symbolic icons used for edit-find and edit-clear
Summary: [GTK] Non-symbolic icons used for edit-find and edit-clear
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-20 10:40 PST by Michael Catanzaro
Modified: 2016-01-11 04:52 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-11-20 10:40:09 PST
RenderThemeGtk.cpp improperly uses color icons in paintSearchFieldResultsDecorationPart(), paintSearchFieldCancelButton(), and paintCapsLockIndicator(). The proper icons would be edit-find-symbolic, edit-clear-symbolic, and dialog-warning-symbolic, respectively.

I tried to fix this by calling getStockSymbolicIconForWidgetType() rather than getStockIconForWidgetType() in those functions, but the icons in the search entry didn't display unless I removed the flag GTK_ICON_LOOKUP_FORCE_SIZE from the call to gtk_icon_theme_lookup_icon() in getStockSymbolicIconForWidgetType(), and then they displayed blurry, which is weird for symbolic icons, so I was doing something wrong.

Testcase for the search entry is to open the web inspector and look in the upper right.
Comment 1 Michael Catanzaro 2015-12-09 04:13:57 PST
Better testcase: the search box on https://www.wikipedia.org/

The magnifying glass icon should be monochrome, not blue.
Comment 2 Carlos Garcia Campos 2016-01-11 04:52:35 PST
Fixed in r194847