Re: [Pharo-dev] Replacing SBCI buttons in Nautilus.
Interesting enough, a PluggableButtonMorph does not center the label. I've improved the layout by adding a space, but for correct (optical) alignment, the I needs to move about half a space to the right, and the C needs to move a few pixels to the left. Even though a PluggableButtonMorph has lots of different ways to set colors, I've not found one that works. Themability is nice, but it should check for and respect overrides. In 30803, without Philippe's slices, with the three themes:
Instead of using PluggableButtonMorphs, you can try with ButtonModels (the Spec way). Or use a horizontal spacefill. I'll have a look tomorrow. Phil On Wed, Mar 26, 2014 at 10:17 PM, Stephan Eggermont <stephan@stack.nl>wrote:
Interesting enough, a PluggableButtonMorph does not center the label. I've improved the layout by adding a space, but for correct (optical) alignment, the I needs to move about half a space to the right, and the C needs to move a few pixels to the left.
Even though a PluggableButtonMorph has lots of different ways to set colors, I've not found one that works. Themability is nice, but it should check for and respect overrides.
In 30803, without Philippe's slices, with the three themes:
participants (2)
-
phil@highoctane.be -
Stephan Eggermont