2.4.4.278 QuickStyleVariation

The QuickStyleVariation cell is a PtgByte parse token that can affect formula evaluation of the ThemeVal function token. It MUST have a ShapeSheet_Type or StyleSheet_Type parent element.

The value of the structure MUST be a bitwise OR combination of one or more of the values from the following table.

Value

Meaning

0x0

Specifies no effect on formula evaluation of the ThemeVal function token.

0x1

Specifies no effect on formula evaluation of the ThemeVal function token.

0x2

Specifies that formula evaluation of the "TextColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is affected as follows.

If the absolute difference in luminance in hue-saturation-luminance (HSL) color space between the formula evaluation of the "BackgroundColor" and "TextColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token is greater than or equal to 16.66%, then formula evaluation of the "TextColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is not affected.

Otherwise, if the luminance of the formula evaluation of the "BackgroundColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is less than or equal to 72.92%, then formula evaluation of the "TextColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token MUST return a color equal to RGB(255, 255, 255); otherwise it MUST return the color with the largest absolute difference in luminance from the formula evaluation of the "TextColor", "FillColor", and "LineColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token.

0x4

Specifies that formula evaluation of the "LineColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is affected as follows.

If the absolute difference in luminance in hue-saturation-luminance (HSL) color space between the formula evaluation of the "BackgroundColor" and "LineColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token is greater than or equal to 16.66%, then formula evaluation of the "LineColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is not affected.

Otherwise, if the luminance of the formula evaluation of the "BackgroundColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is less than or equal to 72.92%, then formula evaluation of the "LineColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token MUST return a color equal to RGB(255, 255, 255); otherwise it MUST return the color with the largest absolute difference in luminance from the formula evaluation of the "FillColor" and "LineColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token.

0x8

Specifies that formula evaluation of the "FillColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token can be affected.

If the absolute difference in luminance in hue-saturation-luminance (HSL) color space between the formula evaluation of the "BackgroundColor" and "FillColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token is greater than or equal to 16.66%, then formula evaluation of the "FillColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is not affected.

Otherwise, if the luminance of the formula evaluation of the "BackgroundColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token is less than or equal to 72.92%, then formula evaluation of the "FillColor" vDynamicThemeString ThemeProperty argument for the ThemeVal function token MUST return a color equal to RGB(255, 255, 255); otherwise it MUST return the color with the largest absolute difference in luminance from the formula evaluation of the "FillColor" and "LineColor" vDynamicThemeString ThemeProperty arguments for the ThemeVal function token.