Desktop: Add a button in dockbar to get the help about the component
[scilab.git] / scilab / modules / gui / etc / flexdock-themes.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <flexview-themes>
3
4     <!-- Map the PLAFs to specific themes -->
5     <plaf name="com.apple.laf.AquaLookAndFeel" ref="scilab-macos" />
6     <plaf name="javax.swing.plaf.metal.MetalLookAndFeel" ref="scilab" />
7     <plaf name="com.sun.java.swing.plaf.gtk.GTKLookAndFeel" ref="scilab" />
8     <plaf name="com.sun.java.swing.plaf.windows.WindowsLookAndFeel" ref="scilab" />
9     <plaf name="com.sun.java.swing.plaf.motif.MotifLookAndFeel" ref="scilab" />
10         
11     <!-- Begin Scilab -->
12     <theme name="scilab" description="Scilab Theme" view-ui="scilab">
13         <view-ui name="scilab">
14             <property name="titlebar-ui" value="scilab"/>
15         </view-ui>
16         
17         <!-- List the various titlebars that are available -->
18         <titlebar-ui name="scilab" extends="default">
19             <property name="icon-map" value="scilab" />
20         </titlebar-ui>
21         
22         <icon-resource name="scilab.undock">
23                 <property name="default" value="undock_default.png" />
24                 <property name="active" value="undock_active.png" />
25                 <property name="tooltip" value="Undock" handler="string" />
26         </icon-resource>
27
28         <icon-resource name="scilab.help">
29                 <property name="default" value="dock_help_default.png" />
30                 <property name="active" value="dock_help_active.png" />
31                 <property name="tooltip" value="Help on component" handler="string" />
32         </icon-resource>
33
34         <icon-resource name="scilab.close" extends="win32.close">
35                 <property name="default" value="scilab_close_default.png" />
36                 <property name="active" value="scilab_close_active.png" />
37         </icon-resource>
38
39         <!-- List the available icon maps -->   
40         <icon-map name="scilab">
41             <property name="close" value="scilab.close" />
42             <property name="pin" value="win32.pin" />
43             <property name="undock" value="scilab.undock" />
44             <property name="help" value="scilab.help" />
45         </icon-map>
46     </theme>
47     <!-- End Scilab -->
48
49     <!-- Begin Scilab MacOS-->
50     <theme name="scilab-macos" description="Scilab Theme for MacOS" view-ui="scilab-macos" extends="scilab">
51
52         <view-ui name="scilab-macos" extends="scilab">
53             <property name="titlebar-ui" value="scilab-macos"/>
54         </view-ui>
55         
56         <titlebar-ui name="scilab-macos" extends="scilab">
57           <property name="painter" value="scilabMacosPainter" handler="paint"/>
58         </titlebar-ui>
59
60         <painter-resource name="scilabMacosPainter">
61           <property name="classname" value="org.flexdock.plaf.resources.paint.DefaultPainter"/>
62           <property name="bgcolor.active" value="#000000" handler="color"/>
63         </painter-resource>
64         
65     </theme>
66
67
68 </flexview-themes>