Pre-Built Themes
TeeGrid includes these themes:- Default - Standard TeeGrid appearance
- iOS - iOS-style theme with teal blue accents
- Android - Material Design inspired theme
- Black - Dark theme with light text
Applying Themes
Apply a theme using theTGridThemes helper:
VCL Style Themes
For VCL applications, integrate with Windows themes:Getting Available VCL Themes
List all available VCL themes:Creating Custom Themes
Create a custom theme usingTCustomTheme:
Manual Theme Customization
Customize individual grid elements:Row-Level Formatting
Format specific rows:Cell-Level Formatting
Format individual cells:Column-Level Formatting
Format entire columns:Indicator Column
Customize the indicator column (row selector):Parent Font
Make grid inherit font from parent control:Scrollbar Styling
Scrollbars automatically adapt to themes, but you can customize them:Responsive Font Sizing
Make fonts scale with DPI:Theme Example with Switching
Implement theme switching in your application:Dark Mode Support
Implement dark mode detection:Saving Theme Preferences
Persist user theme selection:Best Practices
- Apply themes after loading data for consistent appearance
- Use
TGridThemesfor quick, consistent styling - Combine themes with custom formatting for specific columns or cells
- Make the grid
ParentFont := Truefor consistent typography - Test themes with different screen DPI settings
- Consider user preferences and system dark mode settings
- Cache theme objects if switching frequently
