TTMSFNCStyles Class
Utility class that extracts fill colors, stroke colors, and font information from the active framework style, enabling components to adapt their appearance to the current IDE or runtime theme.
API unit family: TMSFNCStyles
Syntax
TTMSFNCStyles = class
Methods
| Name | Description |
|---|---|
| FindCSSStyleProperty | Reads a single CSS property value from a named style rule in the browser document. |
| FindCSSStyleRule | Finds a CSS style rule object in the browser document by its selector name. |
| GetStyleAlternativeBackgroundFillColor | Retrieves the style-defined alternate row background fill color and returns True if a value was found. |
| GetStyleAlternativeBackgroundFillColorTo | Retrieves the style-defined alternate row secondary background fill color and returns True if a value was found. |
| GetStyleAlternativeTextFontColor | Retrieves the style-defined alternate text font color and returns True if a value was found. |
| GetStyleBackgroundFillColor | Retrieves the style-defined primary background fill color and returns True if a value was found. |
| GetStyleBackgroundFillColorTo | Retrieves the style-defined secondary (gradient end) background fill color and returns True if a value was found. |
| GetStyleBackgroundStrokeColor | Retrieves the style-defined background stroke (border) color and returns True if a value was found. |
| GetStyleDefaultButtonFillColor | Retrieves the style-defined default button fill color and returns True if a value was found. |
| GetStyleDefaultButtonStrokeColor | Retrieves the style-defined default button stroke color and returns True if a value was found. |
| GetStyleHeaderFillColor | Retrieves the style-defined header fill color and returns True if a value was found. |
| GetStyleHeaderFillColorTo | Retrieves the style-defined secondary header fill color and returns True if a value was found. |
| GetStyleHeaderStrokeColor | Retrieves the style-defined header stroke (border) color and returns True if a value was found. |
| GetStyleLineFillColor | Retrieves the style-defined color used for grid lines or separators and returns True if a value was found. |
| GetStyleSelectionFillColor | Retrieves the style-defined selection fill color and returns True if a value was found. |
| GetStyleSelectionFillColorTo | Retrieves the style-defined secondary selection fill color and returns True if a value was found. |
| GetStyleTextFontColor | Retrieves the style-defined text font color and returns True if a value was found. |
| SetActiveScene | Sets the active FMX scene that style-aware components will use for context during style updates. |
| StyleServicesEnabled | Returns True when framework style services are active and components should adapt their colors to the current theme. |