[Bugs] #3569 sugar-artwork NORM: Icons inside text entries are not centered vertically
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Jan 8 14:36:57 EST 2013
#3569: Icons inside text entries are not centered vertically
------------------------------+---------------------------------------------
Reporter: tonyforster | Owner: erikos
Type: defect | Status: new
Priority: Normal | Milestone: 0.98
Component: sugar-artwork | Version: Unspecified
Severity: Unspecified | Keywords: screenshot, regression
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------+---------------------------------------------
Comment(by manuq):
After more testings I found that the icons are not scaled right by GTK+ to
the size needed in the entry, if they are of 55x55 pixels.
The current dialog-cancel.svg is 55x55 because it can also be used in the
standard icon size, like in toolbars. Other icons that display properly
inside entries, like system-search.svg, are of size 22x22.
{{{
icon name | size of the svgs | size of the pixbuf
dialog-cancel | 55.125 55 | 55 55
system-search | 22.156 22.156 | 22 22
}}}
"size of the pixbuf" is the size of the GdkPixbuf returned to IconEntry
from _SVGLoader .
Proposal 1: add a workaround that resizes the icons if the size is not
22x22. Patch attached.
Proposal 2: add a new icon for this usage: entry-cancel.svg. proposed SVG
attached.
2. has the benefit that we can remove the space around the circle, needed
in the 55x55 flavour for margin around the graphic, and make the circle
22px diameter. This seems to look better to me.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3569#comment:15>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list