Global style management component for applying Bootstrap color schemes and themes across all FlexFMX components.
StyleController1.ColorScheme := csDark; // All FlexFMX controls automatically update
StyleController1.PrimaryColor := $FF6B4C93; // Purple StyleController1.SecondaryColor := $FF48C9B0; // Turquoise StyleController1.ApplyStyles; // Update all controls
StyleController1.ColorScheme := csAuto; // Automatically switches between light/dark based on OS settings
StyleController1.CustomCSS.Add('.my-button {');
StyleController1.CustomCSS.Add(' background-color: #FF5733;');
StyleController1.CustomCSS.Add(' color: white;');
StyleController1.CustomCSS.Add(' border-radius: 20px;');
StyleController1.CustomCSS.Add('}');
StyleController1.ApplyStyles;
// Use in button
Button1.FlexFMXCSS.Text := 'my-button';
StyleController1.PrimaryColor := $FF6200EE; // Material Purple StyleController1.SecondaryColor := $FF03DAC6; // Material Teal StyleController1.SuccessColor := $FF4CAF50; StyleController1.DangerColor := $FFF44336; StyleController1.WarningColor := $FFFF9800; StyleController1.ApplyStyles;
ApplyStyles - Apply current style settings to all controlsLoadTheme(FileName) - Load theme from JSON fileSaveTheme(FileName) - Save current theme to JSON fileResetToDefaults - Restore Bootstrap default colorsOnColorSchemeChange - Color scheme changed (light/dark)OnThemeApplied - After theme applied to controls