Opened 12 years ago
Last modified 11 years ago
#3385 closed defect
'dialog-cancel' icon has not the correct size when inside a gtk entry — at Version 5
Reported by: | erikos | Owned by: | benzea |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | |
Component: | Sugar | Version: | Git as of bugdate |
Severity: | Major | Keywords: | 12.1.0, screenshot |
Cc: | garycmartin, humitos | Distribution/OS: | OLPC |
Bug Status: | Assigned |
Description (last modified by erikos)
Steps to reproduce:
- type something into the search field in the Home view
---> the 'dialog-cancel' icon to clear the field is too small
- open Browse/Read and search a string in the page
---> the 'dialog-cancel' icon to clear the field is too big
Change History (6)
comment:1 Changed 12 years ago by erikos
- Keywords 12.1.0 added
Changed 12 years ago by humitos
comment:2 Changed 12 years ago by humitos
I think this is not related with browser. In fact, I think that it's related with sugar3.graphics.iconentry.IconEntry class because Browse just used it.
This is the relevant part of IconEntry class:
def show_clear_button(self): if not self._clear_shown: self.set_icon_from_name(ICON_ENTRY_SECONDARY, 'dialog-cancel') self._clear_shown = True
comment:3 Changed 12 years ago by erikos
- Bug Status changed from Unconfirmed to Assigned
- Cc garycmartin added
- Component changed from Browse to sugar-artwork
- Owner changed from erikos to benzea
This is as well an issue in Read.
I changed the icon from 'dialog-cancel' to 'system-search' in http://git.sugarlabs.org/sugar-toolkit-gtk3/sugar-toolkit-gtk3/blobs/master/src/sugar3/graphics/iconentry.py#line76 and the icon size is correct. So the issue seem to be in the icon itself.
Another example of this icon behaving strange is the serach in the home view. The icon is too small there.
comment:4 Changed 12 years ago by erikos
I remember that we did an dialog-cancel icon for Browse at one point, as far as I remember because we did not get the sizing in the entry right: http://git.sugarlabs.org/browse/mainline/blobs/master/icons/browse-dialog-cancel.svg
'dialog-ok' has the same issue. Both are larger than 'system-search' for example and in the entry they probably can not use the full size and scale badly (too small or too big).
Gary, any suggestions from your side?
comment:5 Changed 12 years ago by erikos
- Description modified (diff)
- Summary changed from Browse edit: in document search's stop icon is too big to 'dialog-cancel' icon has not the correct size when inside a gtk entry
Still the case in os8. Seen as well issues with icons in Fedora beta (e.g. reload icon in url entry which is drawn to low).