-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Milestone
Description
There seem to be 4 main button widgets in BOY, and they all draw their borders differently. I'd like to rationalise the behaviour, but I'm not sure which is the correct behaviour.
Action Button
1 pixel light grey top, 1 pixel grey bottom

ButtonScheme BUTTON = new ButtonScheme(
new Color[] {buttonLightest},
new Color[] {buttonDarker}
);
Menu Button
Doesn't draw a border. This is what it looks like with the border property set to "Button Raised".
Boolean Button
private final static int SQURE_BORDER_WIDTH = 3;
...
pattern = GraphicsUtil.createScaledPattern(graphics, Display.getCurrent(), clientArea.x, clientArea.y, clientArea.x, clientArea.y+SQURE_BORDER_WIDTH, GRAY_COLOR, DARK_GRAY_COLOR);
Choice Button
1 pixel light grey top, 2 pixels dark grey bottom. Inherits whatever the draw2d ToggleButton does.
Proposed changes
The line of least resistance would appear to be:
- Make the action button draw a border that looks like the "Button Raised" border property
- Leave the menu button as it is
- Reduce the toggle button border to 2 pixels and make the grey colours the same as the "Button Raised" border property
- Leave the choice button as it is
Sound reasonable to everyone?
Metadata
Metadata
Assignees
Labels
No labels


