It is possible to change this theme by setting the iscobol.wd2.style configuration property. The following screenshot shows how the same screen as above is shown when iscobol.wd2.style=bs (Bootstrap styling)The default styling can be customized by writing a new css file, putting it in the resources/css folder of the web application and point to it by setting the configuration property iscobol.wd2.additional_stylesheet.
Fonts and colors set by the COBOL program have priority over fonts and colors set by the style associated to the CSS-STYLE-NAME property, unless you put the !important clause after the css entries. Fonts and colors set by the COBOL program are overridden by fonts and colors set by the style associated to the CSS-BASE-STYLE-NAME property instead.When iscobol.wd2.style is set to "bs", you have available Bootstrap css classes for easy styling of the application. For example, to create OK and CANCEL buttons, you could use the following:
Where btn-success and btn-danger are two of the available CSS classes provided by Bootstrap. See http://getbootstrap.com/components for the list of available classes.For the Push-Button controls, the CSS-ICON is also available. This alphanumeric property allows the use of font-awesome icons when the application is deployed as WD2. The icon list is available at the following web page: https://fortawesome.github.io/Font-Awesome/icons/.Note - ZK integrates Font Awesome 4.0.1, therefore some of the icons listed in the above page might not be available.For example, to have a Push-Button with a checkmark, all is needed is to find the relevant icon from the list at the above web page (in this case is http://fortawesome.github.io/Font-Awesome/icon/check/), copy the icon class name, in this case "fa-check", and paste it in the CSS-ICON property of the PUSH-BUTTON, e.g.
Note - CSS-ICON replaces the icon set by BITMAP-HANDLE property, if any.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |