#2844 NORM Trial-3: Sugar Icon Size Parameters
Zarro Boogs per Child
bugtracker at laptop.org
Thu Aug 16 16:38:47 EDT 2007
#2844: Sugar Icon Size Parameters
--------------------------+-------------------------------------------------
Reporter: tannewt | Owner: dcbw
Type: enhancement | Status: new
Priority: normal | Milestone: Trial-3
Component: sugar | Version: Git as of bug date
Resolution: | Keywords: icon, size, patch,review?
Verified: 0 |
--------------------------+-------------------------------------------------
Changes (by tannewt):
* keywords: icon, size, patch,review- => icon, size, patch,review?
Comment:
Replying to [comment:1 marco]:
> Can you explain the use case for the scale property?
It can be used instead of size to resize a rectangular image. The size
property is both the width and height of the resulting image which
restricts the icon to square. With scale it alters the size by
maintaining the aspect ratio of the image.
>
> I don't think ToolButton should allow to specify a size. Buttons in a
toolbar should just use the toolbar size. If you explain the use case for
this we can probably figure out a better solution to your problem.
Typically, they should be a standard size but not necessarily. I've
written a Creative Commons license selector widgets based on CanvasIcon
and ToolButton. The reason I need rectangular icons is because each CC
license is represented by as many as 3 icons next to each other. Thus the
icon is approximately three times as wide as it is high.
--
Ticket URL: <https://dev.laptop.org/ticket/2844#comment:2>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list