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

    Color for QLinearProgress

    Framework
    4
    6
    349
    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.
    • K
      kelvionald last edited by

      Hi, is it possible to set the color of the bar bar for QLinearProgress using #000000 or rgb(…) and not a palette?

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @kelvionald last edited by

        @kelvionald yes https://quasar.dev/style/color-palette#Adding-Your-Own-Colors

        K 1 Reply Last reply Reply Quote 0
        • K
          kelvionald @metalsadman last edited by

          @metalsadman no

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            @kelvionald - Oh yes.

            https://codepen.io/smolinari/pen/KKpqWBe

            Scott

            dobbel 1 Reply Last reply Reply Quote 2
            • dobbel
              dobbel @s.molinari last edited by

              @s-molinari @kelvionald

              https://codepen.io/smolinari/pen/KKpqWBe

              but that will override the accent color in the whole app, right?

              According to this example in the doc you can also do it with some style.
              https://quasar.dev/style/color-palette#Adding-Your-Own-Colors

              <q-linear-progress color="myColor" ></q-linear-progress>
              
              .text-myColor{
                color: #a2aa33;
              }
              .bg-myColor{
                background: #a2aa33;
              }
              
              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                @dobbel - Yes. It’s just an example to show the colors are alterable.

                Scott

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