HISE Logo Forum
    • Categories
    • Register
    • Login

    Check if system is using a dark theme

    Scheduled Pinned Locked Moved General Questions
    cssthemedark mode
    1 Posts 1 Posters 115 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.
    • d.healeyD
      d.healey
      last edited by

      Now that we have CSS I think it's quite likely we'll start to see developers wanting to provide both light and dark theme variations, with the ability to select the correct one based on the user's system theme.

      So I've added an isDarkMode property to the output of Engine.getSystemStats().

      I notice JUCE also provides a way to add a listener for this so you could get a callback if the system theme is changed. @Christoph-Hart That would be a good candidate for the broadcaster system perhaps?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

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

      14

      Online

      1.7k

      Users

      11.8k

      Topics

      102.8k

      Posts