feat: support bg color in code blocks#223
feat: support bg color in code blocks#223Valentin271 wants to merge 2 commits intoInlyne-Project:mainfrom
Conversation
|
I'm too busy with work to take a look today/tomorrow, but I should have time to try and get things working this weekend The renderer is pretty foreign to me too, so I don't have much guidance without digging in myself unfortunately 😅 |
|
No problem at all! Review when you have time and motivation 🙂. In the meantime I'll still try to get this working. |
|
So, this is the area where the background of the entire codeblock gets drawn, so it'll also be where the background color for the individual lines get drawn as well I also think the default background color and style changes can be dropped in Feel free to ask questions if things are still unclear. I'd also be happy to take a stab at getting things working if you get stuck |
4c46a04 to
e089856
Compare
|
Thanks for all your work on this! I should have some time to look over things either today or tomorrow |
|
Sorry for the delay. I'm on vacation, so I probably won't have much time to look into this for the next week or so (Me thinking I would have enough spare time was a bit optimistic 😅) |
|
Hey, no problem, have a great vacation! I'm still working on this when I have time (essentially week-ends). I think I need to refactor some of the code around though to make this specific change easier (to do and review). |

In order to fix #211, I've tried adding support for background colors.
I just can't get the final
Textrender to work because I'm not sure where it is.I think if
Attrhadbg_coloror similar here that could work. But that's acosmic_textstruct andcosmic_textdoesn't mention background anywhere in their doc.So I'm kind of lost here, I tried looking at how
TextBoxrenders its background but couldn't find it either.PS. I'll check if the tests changes are valid once I can get this to work.