I'm working with the Design System, and using Style Business Objects (BOs) and Style Value BOs. What do I need to keep in mind regarding these BOs when upgrading Appway, or upgrading the Design System?
The styling elements introduced with the Appway 7 Base Package and the Design System support the implementation of client brand identities in the Appway Workspace. A set of purposely predefined Style Business Objects and Style Value Business Objects, they allow entire Solutions to be coherently and comprehensively styled by editing the different styling properties of the respective Style BOs and Style Value BOs.
Default Style BOs and Style Value BOs are stored partly in the Base Package, and partly in the DesignSystemStyles Package. From Appway 7.2, Style Packages should be used to hold the customized Style and Style Value BOs required for applying a brand identity to Appway applications.
IMPORTANT: Use Style Packages whenever the look and feel of an application needs to be changed from the default appearance (as defined by the Base and DesignSystemStyles Packages).
Using Style Packages means that no further care needs to be taken about Appway Platform upgrades, or Design System upgrades.
If you have already edited the Style BOs and Style Value BOs in the Base and DesignSystemStyles Packages, we nevertheless recommend switching to Style Packages. If you need assistance, please open a Support ticket here on Community.
IMPORTANT! Only modify BOs in the Base Package: Do not create new Style or Style Value BOs in the Base Package! Adding new BOs can lead to missing dependencies when moving Packages across environments, as the Base Package cannot be moved as part of .awdeploymentexports.
IMPORTANT! The Base Package cannot depend on other Packages (but other Packages can depend on the Base Package). Business Objects contained inside the Base Package can only depend on BOs contained in the Base Package. If not handled properly, maintenance of Base Package Styles becomes difficult.
Appway Platform updates never override any styling values already defined on your application.
This principle applies to styling values you changed after the original installation, as well as to values that you decided not to alter. This principle also means that any new default styling values included in the update are not reflected in an application already using styles provided in the Base Package . This is to prevent upgrades causing unintentional style changes that have not been mandated by you, the user.
In some cases, Appway updates may introduce changes in styling property default values to improve usability and visual appearance of the default Appway Workspace. In addition, updates may also expose styling properties that were previously hard coded. Any newly-exposed properties have a default value equal to the previous, 'hard coded' implementation. New, or newly-exposed properties, are explained in the accompanying Appway release notes.
If you want to keep the same styling as you had before the Appway platform upgrade, no additional work is necessary.
If you want to take advantage of any default styling value changes delivered with a new release, there are two possible scenarios:
- Scenario 1—You have applied some branding to your application (that is, you've changed the styling values)
- Refer to the release notes for the list of changes (available in the Support News area)
- Scenario 2—No own branding in place
- Import the relevant Style BO and Style Value BOs from a clean Appway installation (such as an Appway Standalone.)
Note: In the unlikely case of properties being removed from Style BO and Style Value BOs, Appway will provide an automatic migration tool
Alongside styling out-of-the-box Screen Components, the Design System also defines additional specific Style BOs and Style Value BOs necessary for the styling of the different prebuilt modules (Screen Templates and Solution Components).
These BOs are all stored in a dedicated Package: the DesignSystemStyles Package. The DesignSystemStyles Package, together with the DesignSystemExamples Package, is a part of the Design System Package.
When a new Design System Package is released, there are two Package upgrade scenarios:
In this case, simply upgrade the Design System Package. No additional work is required.
Follow these three steps:
- Create an
.awexport of all your styles found in the DesignSystemStyles Package. To support you, the DesignSystemStyles Package comes with a predefined Smartlist: Changes in Current Package Version - Upgrade the Design System Package.
- Import the styles back into your environment from the
.awexport created in step 1.
If you have extended your solution with elements that are not yet covered by the Design System—a footer with a copyright note, for example—these additional Style BOs and Style Value BOs required must be created in a separate Style Package maintained on the Solution. This separate Package should contain only BOs related to styling.
Style Packages are not affected by Appway Platform or Design System upgrades. They can be handled as any normal Package.