Show last authors
1 In order to create a theme for the {{formcycle/}} backend, you just have to create a class that implements the interface {{jpath path="de.xima.fc.plugin.interfaces.backend.IPluginBackendTheme"/}}.
2
3 {{panel title="{{code language='java'~}~}String getCSSResource(){{/code~}~}" triggerable="true" fullwidth="true"}}
4 Method for providing the CSS resource of the theme.<br>
5 **Return value:**<br>
6 Path to the CSS resource. The path has to be relative to the resource path of the Java Archive (src/main/resources).<br><br>
7 **Example**:<br>
8 If the file resides in "src/main/resources/css/theme.css" of the Java Package, the method has to return "css/theme.css".
9 {{/panel}}
10
11 {{panel title="{{code language='java'~}~}String getJSResource(){{/code~}~}" triggerable="true" fullwidth="true"}}
12 Method for providing the JavaScript resource of the theme.<br>
13 **Return value:**<br>
14 Path to the JavaScript resource. The path has to be relative to the resource path of the Java Archive (src/main/resources).<br><br>
15 **Example**:<br>
16 If the file resides in "src/main/resources/js/theme.js" of the Java Package, the method has to return "js/theme.js".
17 {{/panel}}
18
19 After installing a theme plugin in {{formcycle/}} the theme may be selected in the system settings under [[Look & Feel>>Formcycle.SystemSettings.UserInterface.LookAndFeel]].