Appboard/2.4/builder/themes: Difference between revisions
imported>Mike.berman (created page) |
imported>Mike.berman No edit summary |
||
Line 8: | Line 8: | ||
This page contains general instructions for creating and managing Themes in AppBoard. For more detailed documentation of configuring Theme layering and controls, see [[ | This page contains general instructions for creating and managing Themes in AppBoard. For more detailed documentation of configuring Theme layering and controls, see [[appboard/2.4/builder/theme_configuration|Theme Configuration]]. | ||
Line 16: | Line 16: | ||
# Log in to AppBoard Builder as an administrator. | # Log in to AppBoard Builder as an administrator. | ||
# In the <b>Builder Modes</b> panel, select <b>Settings</b>, then select <b> | # In the <b>Builder Modes</b> panel, select <b>Settings</b>, then select <b>Theme Manager</b>. This will launch the Theme Manager panel. | ||
Line 22: | Line 22: | ||
AppBoard ships with several base themes: | AppBoard ships with several base themes: | ||
# Dark | # Dark | ||
# Frosted Glass | |||
# Light | # Light | ||
# | # Minimalist | ||
# Smoked Glass | # Smoked Glass | ||
Line 36: | Line 36: | ||
Perform the following steps to create a new Theme: | Perform the following steps to create a new Theme: | ||
# Click | # Click "Add" in the bottom toolbar. This will launch the "Theme Editor". | ||
# Enter a name for the new Theme to be created. | # Enter a name for the new Theme to be created. | ||
# Click "Add Theme". | |||
# The Theme is created with a set of default settings. | # The Theme is created with a set of default settings. | ||
# Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme. | # Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme. | ||
# Apply the theme to the system, if desired, by clicking | # Apply the theme to the system, if desired, by clicking "Activate Theme" in the bottom toolbar. | ||
Line 47: | Line 48: | ||
# Select the Theme from the list of available Themes. | # Select the Theme from the list of available Themes. | ||
# Click | # Click "Delete" in the bottom toolbar. | ||
Line 57: | Line 58: | ||
# Select the Theme from the list of available Themes. | # Select the Theme from the list of available Themes. | ||
# Click | # Click "Edit" in the bottom toolbar. This will launch the "Theme Editor". | ||
# Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme. | # Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme. | ||
# Apply the Theme to the system, if desired, by clicking | # Apply the Theme to the system, if desired, by clicking "Activate Theme" in the bottom toolbar. | ||
Line 72: | Line 73: | ||
Altering the values in BaseThemes.csv will modify the base themes that ship with AppBoard, and requires a server restart to take effect. However, it is recommended that users go through the Builder for modifying Themes. Small syntax errors inside of BaseThemes.csv can cause AppBoard to crash. Always create a backup of BaseThemes.CSV before modifying the attributes in this file. | Altering the values in BaseThemes.csv will modify the base themes that ship with AppBoard, and requires a server restart to take effect. However, it is recommended that users go through the Builder for modifying Themes. Small syntax errors inside of BaseThemes.csv can cause AppBoard to crash. Always create a backup of BaseThemes.CSV before modifying the attributes in this file. | ||
== Using the Theme Editor == | == Using the Theme Editor == | ||
Line 89: | Line 91: | ||
Each attribute has a default value that it inherits from its template. To provide an override for that value, check the check box next to the desired attribute. If you decide you do not like the new values you entered, uncheck the checkbox next to the attribute, and the theme will return to its default value. | Each attribute has a default value that it inherits from its template. To provide an override for that value, check the check box next to the desired attribute. If you decide you do not like the new values you entered, uncheck the checkbox next to the attribute, and the theme will return to its default value. | ||
Details on certain options for attribute overrides are available in the [[appboard/2.4/builder/theme_configuration_detail|theme configuration detail]] page. | |||
Line 100: | Line 105: | ||
#Click "Settings" to open the System Configuration panel on the right. | #Click "Settings" to open the System Configuration panel on the right. | ||
#Click "Backup" to open the Backup screen. | #Click "Backup" to open the Backup screen. | ||
#Click "Create" and select "Backup AppBoard" or "Backup All". For more information on backups, see [[ | #Click "Create" and select "Backup AppBoard" or "Backup All". For more information on backups, see [[appboard/2.4/builder/backup_and_restore#Backup|Backup and Restore]]. | ||
The above steps will create an archive of AppBoard settings in <tt>[AppBoard_Home]\server\webapps\enportal\WEB-INF\archive\</tt>. | |||
Inside this archive, located at | Inside this archive, located at <tt>[AppBoard_Home]\server\webapps\enportal\WEB-INF\xmlroot\appboard\config</tt>, will be a file named "themes.xml". | ||
Line 111: | Line 116: | ||
Importing a custom theme from another AppBoard installation will require collecting the "themes.xml" file as shown above. | Importing a custom theme from another AppBoard installation will require collecting the "themes.xml" file as shown above. | ||
It will also be prudent to collect the | It will also be prudent to collect the associated image files, typically found in <tt>[AppBoard_Home]\server\webapps\enportal\visualizer\assets\images</tt> (include ".\backgrounds" as well) from the source AppBoard installation. | ||
Once all associated files are collected, perform the following steps on the target AppBoard installation: | Once all associated files are collected, perform the following steps on the target AppBoard installation: | ||
#Shut AppBoard down, if running. | #Shut AppBoard down, if running. | ||
#Copy the “themes.xml” file (that you captured in the section above) to | #Copy the “themes.xml” file (that you captured in the section above) to <tt>[AppBoard_Home]\server\webapps\enportal\WEB-INF\xmlroot\appboard\config\</tt>. | ||
#Copy the image files to | #Copy the image files to <tt>[AppBoard_Home]\server\webapps\enportal\visualizer\assets\images\</tt> and <tt>.\backgrounds\</tt> (if any backgrounds were used). | ||
#Start AppBoard. | #Start AppBoard. | ||
#Log | #Log in to AppBoard and within Builder, click Settings|Theme Manager to see that the new theme has been imported. | ||
{{Note|The above procedure assumes there are no custom themes existing in the target AppBoard installation. To add a custom theme to a system that already has custom themes will require manually merging the two "themes.xml" files and should be done with extreme care.}} | {{Note|The above procedure assumes there are no custom themes existing in the target AppBoard installation. To add a custom theme to a system that already has custom themes will require manually merging the two "themes.xml" files and should be done with extreme care.}} |
Revision as of 16:45, 4 August 2013
An AppBoard Theme is a collection of settings that manage the overall visual presentation of the application to the end-user in the web browser. Elements included in a Theme include colors, button styles, shadows, borders, backgrounds, and so on.
Multiple Themes can be configured in an AppBoard system. One Theme is in place at any given time. For example, you could create four seasonal Themes, and change the selected Theme once every three months to give the system a fresh look.
This page contains general instructions for creating and managing Themes in AppBoard. For more detailed documentation of configuring Theme layering and controls, see Theme Configuration.
Managing Themes
Perform the following to manage Themes:
- Log in to AppBoard Builder as an administrator.
- In the Builder Modes panel, select Settings, then select Theme Manager. This will launch the Theme Manager panel.
Base Themes
AppBoard ships with several base themes:
- Dark
- Frosted Glass
- Light
- Minimalist
- Smoked Glass
The default theme is set to Dark. The base Themes are not editable, and are shown in gray with a lock icon, to help differentiate from custom Themes that can be edited. To activate a different theme, select another theme from the list of available themes, and click the "Activate Theme" option in the bottom toolbar. The checked Theme indicates the Theme that is currently active.
Creating a New Custom Theme
Perform the following steps to create a new Theme:
- Click "Add" in the bottom toolbar. This will launch the "Theme Editor".
- Enter a name for the new Theme to be created.
- Click "Add Theme".
- The Theme is created with a set of default settings.
- Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme.
- Apply the theme to the system, if desired, by clicking "Activate Theme" in the bottom toolbar.
Deleting a Theme
Perform the following steps to delete a Theme:
- Select the Theme from the list of available Themes.
- Click "Delete" in the bottom toolbar.
Editing a Theme
Perform the following steps to edit the settings for a Theme:
- Select the Theme from the list of available Themes.
- Click "Edit" in the bottom toolbar. This will launch the "Theme Editor".
- Modify the Theme as desired, and then click "Save Changes" to save the changes to the Theme.
- Apply the Theme to the system, if desired, by clicking "Activate Theme" in the bottom toolbar.
Advanced Editing
It is possible to edit base themes outside of the AppBoard Builder. The attributes for each base theme are loaded from: /server/webapps/enportal/WEB-INF/data/pkg/BaseThemes.CSV
Altering the values in BaseThemes.csv will modify the base themes that ship with AppBoard, and requires a server restart to take effect. However, it is recommended that users go through the Builder for modifying Themes. Small syntax errors inside of BaseThemes.csv can cause AppBoard to crash. Always create a backup of BaseThemes.CSV before modifying the attributes in this file.
Using the Theme Editor
An AppBoard theme is a collection of overrides for a default set of attributes. Rather than build up a Theme from scratch, AppBoard Themes start with default values pre-populated from a template. AppBoard ships with 4 base themes to provide a range of starting points.
To get started, select a Theme Template using the pull-down selector at the top of Theme Editor. The base template is all that is required for a Theme. A new Theme without any overrides is basically just a copy of the Theme Template.
By selecting a different Theme Template, you will swap out the base values used by the current Theme. Any overrides configured as part of your new Theme will persist; however, the values used in your overrides may no longer make sense after you have switched from a "Dark" theme to a "Light" theme.
Attribute Overrides
Theme-able elements are organized into categories, which can be selected using the list on the left side of Theme Editor.
Each attribute has a default value that it inherits from its template. To provide an override for that value, check the check box next to the desired attribute. If you decide you do not like the new values you entered, uncheck the checkbox next to the attribute, and the theme will return to its default value.
Details on certain options for attribute overrides are available in the theme configuration detail page.
Migrating Custom Themes
Perform the the following steps to export a custom theme:
- Log in to AppBoard as an administrator.
- Click "Settings" to open the System Configuration panel on the right.
- Click "Backup" to open the Backup screen.
- Click "Create" and select "Backup AppBoard" or "Backup All". For more information on backups, see Backup and Restore.
The above steps will create an archive of AppBoard settings in [AppBoard_Home]\server\webapps\enportal\WEB-INF\archive\.
Inside this archive, located at [AppBoard_Home]\server\webapps\enportal\WEB-INF\xmlroot\appboard\config, will be a file named "themes.xml".
Importing a custom theme from another AppBoard installation will require collecting the "themes.xml" file as shown above.
It will also be prudent to collect the associated image files, typically found in [AppBoard_Home]\server\webapps\enportal\visualizer\assets\images (include ".\backgrounds" as well) from the source AppBoard installation.
Once all associated files are collected, perform the following steps on the target AppBoard installation:
- Shut AppBoard down, if running.
- Copy the “themes.xml” file (that you captured in the section above) to [AppBoard_Home]\server\webapps\enportal\WEB-INF\xmlroot\appboard\config\.
- Copy the image files to [AppBoard_Home]\server\webapps\enportal\visualizer\assets\images\ and .\backgrounds\ (if any backgrounds were used).
- Start AppBoard.
- Log in to AppBoard and within Builder, click Settings|Theme Manager to see that the new theme has been imported.