No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Dark for all components

    Framework
    3
    3
    637
    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.
    • binaryconstruct
      binaryconstruct last edited by binaryconstruct

      Is there a way to ‘globally’ set properties, such as dark for all components?

      Right now I have a user configurable global app state isDark in Vuex, but i have to add :dark="state.isDark" to every component that has that takes the dark prop, and add the Vuex state or getter to every component.

      It is getting to be quite a bit of overhead, and I was wondering if anyone had a better solution. Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • F
        fakx last edited by

        Maybe color branding helps: https://quasar-framework.org/components/color-utils.html ?

        1 Reply Last reply Reply Quote 0
        • valasek
          valasek last edited by

          @binaryconstruct, @fakx dark mode was released - https://quasar.dev/style/dark-mode or https://dev.to/quasar/hys-1-quasar-1-3-0-15eo.

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