Giter VIP home page Giter VIP logo

Comments (6)

tombenner avatar tombenner commented on June 18, 2024

I had been thinking about this a while back; the issue is that the implementation of a given property varies greatly among different UIKit classes. We could add a lot of coverage for properties in NUIViewRenderer, but almost all of them wouldn't be usable in subclasses, or at least there would be better ways to implement them in subclasses.

That said, I haven't sat down and tried to switch over to this setup, so it's very possible that I could be overlooking something. I'm always for DRYing up code, so if you or anyone else wants to try doing this and are able to simplify things with it, definitely let me know!

from nui.

happycodelucky avatar happycodelucky commented on June 18, 2024

Thanks Tom, I only toyed with the refactoring a little and haven't sat down to see any potential. I'll take a look and see if there is something we can do here, or something a little different to share common implementation of styles. If I come up with anything I'll let you know.

from nui.

tombenner avatar tombenner commented on June 18, 2024

Great, thanks!

from nui.

gastonmorixe avatar gastonmorixe commented on June 18, 2024

This would be great, any update on this? We'd be able say define a class for UIButton and then just modify the background color for some of them, it'd be awesome! extremely flexible.

from nui.

happycodelucky avatar happycodelucky commented on June 18, 2024

@imton Sorry, I actually lost track of this a while ago. I ended up using Pixate for a while, and then we decided back before Pixate was officially released it wasn't performant enough. That cause me to look at implementing our own succinct style engine.

from nui.

gastonmorixe avatar gastonmorixe commented on June 18, 2024

@pryomoax oh! any plans to open source it? :)

from nui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.