Forum
    • Categories
    • Register
    • Login

    Css classes in regular look and feel?

    Scheduled Pinned Locked Moved Scripting
    csslook and feel
    3 Posts 2 Posters 61 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • David HealeyD
      David Healey
      last edited by

      I think it would be useful to have css classes in the obj in regular look and feel functions, it would also be good to have a getStyleSheetClass script function.

      Even though I'm not using css I think being able to tag components with classes like this would help me make my look and feel scripting more generic.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @David Healey
        last edited by

        @David-Healey yes why not - the classes are stored in the juce::Component::properties object for each UI element so we can simply query it (just like we do with the id property) - however it will show custom class selectors as well as the ones that HISE automatically attaches to components - there is no way of distinguishing those at that point. This would make this field (and the method) a bit more noisy than you would expect.

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @Christoph Hart
          last edited by

          @Christoph-Hart I don't think that's a problem, it might even be beneficial. I notice that some of the preset browser laf functions already include the classes in the obj.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          21

          Online

          2.3k

          Users

          13.7k

          Topics

          118.7k

          Posts