MojoX & App Theme

About Monkey 2 Forums Monkey 2 Development MojoX & App Theme

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4091

    scurty
    Participant

    Upon browsing the Module source directory, I found the MojoX theme file /modules/mojox/assets/themes/default.json

    Does MojoX use HTML and CSS? Or is it rendered as such? If so, what are the limitations of it’s rendering features like transitions, animations, and what not? I imagine having a full HTML5 & CSS3 compatible web renderer would consume a lot of memory. I can’t seem to find anything on litehtml if that’s related to MojoX or not besides the webview module. Documentation is a little sparse at the moment. xD

    Otherwise, can anyone recommend a lightweight layout engine/web renderer for C++? I would like to try and implement an experimental monkey module for creating HTML & CSS rendered UI connected to monkey code for simplicity. I think it would be a great addition to MX2.

    Also, I know Ted2 is far from finished, but any expected features to come soon?

    #4095

    nerobot
    Participant

    Litehtml  has layout engine only, not contains paint engine. So there is no css support.

     

    About ted2 – you can find some planned features on my fork here https://github.com/engor/Ted2Go

    What about official version – I don’t know.

    #4100

    scurty
    Participant

    Thank you for the info. I checked your Fork out and compiled it on Linux under GNOME 3.22. Keep it up! No issues I can see right off the bat.

    #4237

    nerobot
    Participant

    @Mark

    I have idea about mojox – in views like TreeView delegate drawing command to child ‘item’ classes (Node in this case), and then we can easily override this for our custom nodes.

    Also there is a way to make TreeView generic:

    TreeView<T> where T extends TreeView.Node

    So, custom nodes will draw themselves without changing TreeView.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.