Added ability to specify default command display style for CommandBar
This commit is contained in:
parent
0175eee806
commit
e3a718eaca
BIN
Java/Themes/VisualStudio2012/Icons/16x16/MainIcon.png
Normal file
BIN
Java/Themes/VisualStudio2012/Icons/16x16/MainIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 600 B |
BIN
Java/Themes/VisualStudio2012/Icons/32x32/MainIcon.png
Normal file
BIN
Java/Themes/VisualStudio2012/Icons/32x32/MainIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Java/Themes/VisualStudio2012/Icons/scalable/MainIcon.ico
Normal file
BIN
Java/Themes/VisualStudio2012/Icons/scalable/MainIcon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
7
Java/Themes/VisualStudio2012/Theme.xml
Normal file
7
Java/Themes/VisualStudio2012/Theme.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<net.alcetech.UserInterface.Theming>
|
||||
<Themes>
|
||||
<Theme ID="889B0D01-5BAC-4C54-9A86-0B978B7A5510">
|
||||
|
||||
</Theme>
|
||||
</Themes>
|
||||
</net.alcetech.UserInterface.Theming>
|
||||
@ -27,6 +27,9 @@ public class MainWindow extends Window
|
||||
|
||||
CommandBar cbMenuBar = new CommandBar();
|
||||
|
||||
// this is a menu bar, so set the default display style to text only
|
||||
cbMenuBar.setDefaultCommandDisplayStyle(CommandDisplayStyle.TextOnly);
|
||||
|
||||
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuFile"));
|
||||
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuEdit"));
|
||||
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuView"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user