How timthedevguy/bghudappkit works
Main Components
a) Core Framework Layer:
• BGTheme System (Base theme infrastructure)
• Theme Manager (Singleton pattern)
• Common Utilities (BGHUDCommon, BGHUDGeometry)
b) UI Components Layer:
• Basic Controls (Button, Label, View)
• Input Controls (TextField, SearchField, SecureTextField)
• Complex Controls (TableView, OutlineView)
• Selection Controls (ComboBox, PopUpButton, Segmented)
• Indicator Controls (ProgressIndicator, Slider, Stepper)
c) Interface Builder Integration:
• IBPlugin Component
• Design-time Preview Support
┌─────────────────────────────────────────────┐
• Application Layer │
• ┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• BGHUDAppKit Framework │
• ┬──────────────┬───────────┤
• Theme System │ UI Controls │ IB Plugin │
• ┌──────────┐ │ ┌──────────┐ │ │
• BGTheme │ │ │Basic │ │ │
• Manager │ │ │Controls │ │ │
• ┘ │ └──────────┘ │ │
• ┌──────────┐ │ ┌──────────┐ │ │
• Gradient │ │ │Container │ │ │
• Theme │ │ │Controls │ │ │
• ┘ │ └──────────┘ │ │
• ┴──────────────┴───────────┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• Cocoa Framework │
• ┘
Important Relationships
• Theme inheritance hierarchy:
• BGTheme (base) → BGGradientTheme
• Relationship to BGThemeManager
• Control hierarchy:
• Controls by type (input, container, etc.)
• Inheritance from standard NSControl classes
• Theme application flow
Implementation Details
• That all drawing is done using native Cocoa drawing functions
• Resolution Independence support
• Framework embedding process in host applications
• OS version compatibility (10.5+)
Deployment Aspects
• Framework packaging structure
• Optional components (Resources directory)
• Integration points with host applications