Feature: Text comments as Blender native UI layout.
Description of change
Proposal for a refactor of the nice text comments display in the Preview UI by @strangenoise.
Motivation
I've found some bugs with the OpenGL solution, ghost buttons clicks may happen, this is hard to change the font size, inconsistency accross platforms...
Using the Blender's native UI layout makes it much more stable, fully cross compatible, no clicking issue, faster (even is the speed wasn't critical) and easier to modify/maintain/read. And also adds some features like resizing the panel and zooming in/out in the content.
As an example, I don't remember how long it took to Tristan to implement this solution, several days for sure, this POC, with all the same features, took me half a day, and it's not a matter of skill at all, it's just much more easy.
This is a first draft as a POC that it could work even if it still needs some improvements.
If this design is decided to land, we will discuss about what to improve and I'll make it fully consistent and remove the remaining dead code.
NB: For now, the two solutions coexist.
Checklist
Please check if your MR fulfills the following requirements:
-
Unit tests have been added, if needed -
Documentation have been updated, if needed -
Build was run locally and any changes were pushed -
Lint has passed locally without error -
Package.py have been updated, if needed -
CHANGELOG.md have been updated, if needed -
Version numer has been tagged, if needed
FYI: @awesome_dev_too