Overview
TeeGrid includes built-in themes (Default, iOS, Android, Black) and supports VCL/FMX styles for comprehensive visual customization.Built-in Themes
Applying Themes
Available Themes
| Theme | Description | Best For |
|---|---|---|
| Default | Standard grid appearance | Windows applications |
| iOS | Apple iOS style | Mobile apps, modern UI |
| Android | Google Material Design | Mobile apps, Android |
| Black | Dark theme | Dark mode applications |
VCL Styles
Listing Available Styles
Applying VCL Styles
Complete Example
FromUnit_Themes.pas:
Font Management
Parent Font
Custom Font
Performance Optimization
Reduce Mouse Activity
Custom Theme Creation
Manual Theme Application
FMX Themes
FireMonkey (FMX) applications use the same theme system:Theme Properties
Each theme configures:- Colors: Background, foreground, selection, headers
- Fonts: Size, style, family
- Borders: Line colors, visibility, width
- Spacing: Cell padding, row spacing
- Effects: Gradients, shadows (platform-dependent)
Platform-Specific Themes
| Platform | Recommended Themes |
|---|---|
| Windows VCL | Default, VCL Styles |
| Windows FMX | Default, iOS, Android |
| macOS | iOS, Default |
| iOS | iOS |
| Android | Android |
| Linux | Default, Android |
Best Practices
- Use built-in themes for consistency across platforms
- Enable ParentFont to respect user’s system font preferences
- Test themes with your data to ensure readability
- Provide theme selection for user customization
- Match application theme with grid theme
Combining Themes with Custom Formatting
Dynamic Theme Switching
Features Demonstrated
- Built-in theme application
- VCL style integration
- Font inheritance
- Performance optimization
- Platform-specific styling
Next Steps
- Learn about Custom Bands for headers/footers
- Explore Custom Editors with themed controls
- See Performance for optimization tips
