-
Notifications
You must be signed in to change notification settings - Fork 32
RoundedToolbar
lcaron edited this page Jul 7, 2015
·
1 revision
A simple rounded toolbar with grey icons.
This is very simple : you instantiate a RoundedToolbar and then you create RoundedToolItems :
final RoundedToolbar roundedToolBar = new RoundedToolbar(shell, SWT.NONE);
RoundedToolItem item = new RoundedToolItem(roundedToolBar);
item.setTooltipText("Simple item");
item.setSelectionImage(iconBubble1w);
item.setImage(iconBubble1b);
item.setWidth(40);
And voilà !
You can customize your buttons: selection image, image when not selected or disabled, font color, size...
An example called RoundedToolbarSnippet.java is located in the directory src/test/java/org/mihalis/opal/roundedToolbar.
This example is also available here :