Inherited Styles

Description

Inherited styles are web themes derived from an existing style. Styles can inherit from system styles shipped with Alpha Anywhere or custom user-defined styles.

Discussion

Inherited Styles are themes that modify an existing theme, such as a system style (e.g. AndroidDark or Alpha). Modifications are stored in a separate file that are applied to the base theme. Inherited styles are similar to Style Tweaks in that they overwrite an existing style. However, unlike Style Tweaks which are saved in the project workspace, Inherited Styles are saved as a local or global style which can be referenced in other projects or workspaces.

Assigning an Inherited Style to a Component

Inherited styles are assigned to a component the same way Sass styles are assigned. Select the style from the Style name dialog or, if you are using <ProjectStyle> for your components, set the style in the Project Properties. If a style is an Inherited style, it will be indicated in the style picker.

images/selecStyle.png

Creating an Inherited Style

Inherited styles are created from within the Web Theme Builder. In order to create a new Inherited style, you must first open an existing local or global style or Style Tweak in the Web Theme Builder for editing. If you do not have an existing style or Style Tweak to open, you can copy a system style (give it a name such as "tempstyle") to launch the Web Theme Builder. The temporary theme can be deleted later.

In the Web Theme Builder, select New Copy of Existing Style from the File menu.

images/createInherited1.png

Next, select the theme from which the new theme inherits. You can only create Inherited Styles that modify a SASS theme. Inherited Styles cannot inherit from CSS themes or other Inherited themes. If you select a theme that is not supported, the Create Inherited button will be disabled.

images/createInherited2.png

After selecting the theme, give your new Inherited Theme a name, select where the Style should be stored ("Local" or "Global" -- see Stylesheet Builder for more information), and click the Create Inherited button.

images/createInherited3.png

Modifying an Inherited Style

Inherited styles, unlike full Sass styles, cannot be modified using Style Tweaks. They can only be modified from within the Web Theme Builder. If you wish to change one of the Inherited styles shipped with Alpha Anywhere, you must first create a local or global copy of the system style.

Since Inherited styles are based off of a system style, they can be thought of as "Named Style Tweaks". Copying an Inherited style to create a local or global style does not come with any of the drawbacks typically seen when copying a system style. This is because they are "tweaks" to the existing styles in Alpha Anywhere.

To modify an Inherited style, open the style in the Web Theme Builder. If prompted, create a local or global copy of the Inherited style. Adjustments to any exposed Sass variables in the system style or Inherited style will be available on the Adjust tab in the Web Theme Builder. The Code tab will contain any additional tweaks added to the Inherited style -- including sub-themes. Add any additional changes you would like to make on the Code tab.

Built-in Inherited Styles

The following Inherited Styles are built-in to Alpha Anywhere.

The images below do not include all controls.

Alpha-Amber

images/alphaInheritedTheme_00020.png
List control with a Panel Header styled with Alpha-Amber

Alpha-Aqua

images/alphaInheritedTheme_00019.png
List control with a Panel Header styled with Alpha-Aqua

Alpha-Blue

images/alphaInheritedTheme_00018.png
List control with a Panel Header styled with Alpha-Blue

Alpha-Blue2

images/alphaInheritedTheme_00017.png
List control with a Panel Header styled with Alpha-Blue2

Alpha-Bluegrey

images/alphaInheritedTheme_00016.png
List control with a Panel Header styled with Alpha-Bluegrey

Alpha-Coffee

images/alphaInheritedTheme_00015.png
List control with a Panel Header styled with Alpha-Coffee

Alpha-Dark

images/alphaInheritedTheme_00014.png
List control with a Panel Header styled with Alpha-Dark

Alpha-Dark-Green

images/alphaInheritedTheme_00013.png
List control with a Panel Header styled with Alpha-Dark-Green

Alpha-Dark-Rose

images/alphaInheritedTheme_00012.png
List control with a Panel Header styled with Alpha-Dark-Rose

Alpha-Green

images/alphaInheritedTheme_00011.png
List control with a Panel Header styled with Alpha-Green

Alpha-Grey

images/alphaInheritedTheme_00010.png
List control with a Panel Header styled with Alpha-Grey

Alpha-Indigo

images/alphaInheritedTheme_00009.png
List control with a Panel Header styled with Alpha-Indigo

Alpha-Magenta

images/alphaInheritedTheme_00008.png
List control with a Panel Header styled with Alpha-Magenta

Alpha-Orange

images/alphaInheritedTheme_00007.png
List control with a Panel Header styled with Alpha-Orange

Alpha-Purple

images/alphaInheritedTheme_00006.png
List control with a Panel Header styled with Alpha-Purple

Alpha-Red

images/alphaInheritedTheme_00005.png
List control with a Panel Header styled with Alpha-Red

Alpha-Rose

images/alphaInheritedTheme_00004.png
List control with a Panel Header styled with Alpha-Rose

Alpha-Slate

images/alphaInheritedTheme_00003.png
List control with a Panel Header styled with Alpha-Slate

Alpha-Teal

images/alphaInheritedTheme_00002.png
List control with a Panel Header styled with Alpha-Teal