Commit Graph

5 Commits

Author SHA1 Message Date
Brackyt
7254d46401 feat: optimize ThemeEngine render performance
- Add layout caching in UIElement to skip redundant layout passes
- Use binary search for text wrapping in Label (O(log n) vs O(n))
- Cache rendered bitmaps using captureRegion/restoreRegion
- Add RAM caching for BMP files to avoid SD card reads
- Cache book metadata in HomeActivity.onEnter() instead of every render
- Reuse recent books data to avoid duplicate ePub loads
2026-01-29 13:17:42 +01:00
Brackyt
93a94ea838 feat: bug fixes and optimizations
- fix double-free
- safe int/float parse
- grid division guard
- list string allocations
- label vector reserve
- skip second layout pass for hstack/vstack
2026-01-29 13:14:57 +01:00
Brackyt
dccd200b86 fix: reset clang correctly 2026-01-29 13:06:44 +01:00
Brackyt
ad2bea2122 fix: make home navigation work for all themes 2026-01-29 13:04:36 +01:00
Brackyt
374f1a1106 refactor: Enhance Bitmap handling and introduce ThemeEngine
- Refactored Bitmap class to improve memory management and streamline methods.
- Introduced ThemeEngine with foundational classes for UI elements, layout management, and theme parsing.
- Added support for dynamic themes and improved rendering capabilities in the HomeActivity and settings screens.

This update lays the groundwork for a more flexible theming system, allowing for easier customization and management of UI elements across the application.
2026-01-29 12:57:54 +01:00