Add Micron renderer #3

Closed
Sudo-Ivan wants to merge 12 commits from micron-renderer into master

12 Commits

Author SHA1 Message Date
b41c966bf3 Update control handling 2025-09-28 19:33:33 -05:00
a15f03ad8a Update Micron renderer to return Container instead of ListView 2025-09-28 19:29:07 -05:00
ad567cfac0 Add more tests for Micron rendering features 2025-09-28 18:58:49 -05:00
615a54852d Improved MicronParser styling and formatting logic
- Updated dark and light theme styles for headings to include bold formatting.
- Improved handling of backticks for text formatting, allowing for better toggling of styles.
- Refactored text accumulation logic to streamline character processing and ensure proper formatting.
2025-09-28 18:58:22 -05:00
dc18d57547 Refactor text extraction in Micron renderer for improved attribute access
- Updated the text extraction logic to use public attributes instead of private ones, enhancing readability and maintainability.
- Adjusted corresponding unit tests to reflect the changes in attribute access.
2025-09-28 18:29:25 -05:00
e8ee623a82 Update tests to work with new Micron renderer improvements. 2025-09-28 18:26:05 -05:00
79c3351fb4 Fix header background color to extend whole line,
- Add docstrings,
- Add section/header indentation
- Add color validation regex.
2025-09-28 18:22:57 -05:00
6508a89443 Update Micron renderer tests to validate Column structure and properties
- Updated test cases to reflect the new functionality of the Micron renderer, ensuring it returns a Column containing styled Text controls.
- Improved assertions to check for proper formatting, scroll behavior, and control properties.
- Adjusted test descriptions for clarity and accuracy.
2025-09-28 16:34:58 -05:00
219e6822e8 Update MicronParser methods to staticmethods 2025-09-28 16:31:25 -05:00
910fe3c8aa Add ASCII art scaling to MicronParser
- Introduced ascii_art_scale parameter to adjust font size for ASCII art.
- Enhanced text rendering logic to detect and scale ASCII art appropriately.
- Updated _color_to_flet method to be static for better accessibility.
2025-09-28 16:28:31 -05:00
3f40828707 Ruff formatting and fixes 2025-09-28 16:17:08 -05:00
4d3e3f6688 Add Micron markup renderer with Flet integration
- Implement MicronParser class with inline formatting support
- Support for headings, dividers, colors, and ASCII art
- Add monospace font for proper text rendering
- Enable text selection and scrolling in rendered content
2025-09-28 16:14:47 -05:00