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

    change status bar color according to quasar theme in mobile version

    Help
    5
    11
    4341
    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.
    • S
      Sujan Dev last edited by

      HI team, i am working on quasar last 2 months. recently i have visited the WEEX playground and find a issue in quasar playground . i am attaching both image to make it understand clear. 0_1496729902523_Screenshot_20170606-121111.png
      quasar is
      0_1496729929460_Screenshot_20170606-121508.png

      is there any way to change the status bar color according to theme color in quasar mobile build .

      i have another question WEEX are native and quasar is not . what does it mean ?
      and what is the difference?

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

        I think the problem is the ‘theme-color’ meta tag in index.html

        Can you try to locate / add this to the <head> section:

        <meta name="theme-color" content="#db5945">
        

        Replace the color with the one that you want and it should work.

        1 Reply Last reply Reply Quote 1
        • S
          Sujan Dev last edited by

          @matt thanks a lot. it works 🙂

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

            No problem, glad to help 🙂

            1 Reply Last reply Reply Quote 0
            • rstoenescu
              rstoenescu Admin last edited by

              @Sujan-Dev v0.14 (to be released in a few days) also has a new component with which you can change that color dynamically 😉

              S 1 Reply Last reply Reply Quote 0
              • S
                Sujan Dev @rstoenescu last edited by

                @rstoenescu great. waiting for this release.

                just for asking. i heard that The performance of WEEX is better as it support native render. is there any feature in your v0.14 release for better performance. i mean like more native feel. 🙂

                i loved quasar and i want to stick with it.

                1 Reply Last reply Reply Quote 0
                • rstoenescu
                  rstoenescu Admin last edited by rstoenescu

                  @Sujan-Dev just wait for the release and you’ll see great improvements in performance as well as look’n’feel too 😉

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Sujan Dev @rstoenescu last edited by

                    @rstoenescu OK waiting…

                    1 Reply Last reply Reply Quote 0
                    • P
                      philliperosario last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • T
                        terumi last edited by

                        @matt said in change status bar color according to quasar theme in mobile version:

                        I think the problem is the ‘theme-color’ meta tag in index.html

                        Can you try to locate / add this to the <head> section:

                        <meta name="theme-color" content="#db5945">
                        

                        Replace the color with the one that you want and it should work.

                        I did the same thing

                        <head>
                            <meta charset="utf-8">
                            <meta name="format-detection" content="telephone=no">
                            <meta name="msapplication-tap-highlight" content="no">
                            <meta name="viewport"
                                  content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
                            <meta name="theme-color" content="#f44336">
                            <title>Quasar App</title>
                        </head><head>
                            <meta charset="utf-8">
                            <meta name="format-detection" content="telephone=no">
                            <meta name="msapplication-tap-highlight" content="no">
                            <meta name="viewport"
                                  content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
                            <meta name="theme-color" content="#f44336">
                            <title>Quasar App</title>
                        </head>
                        

                        And after that when I build my app on my device, the status bar is still on its default color.
                        Any ideas?

                        Thank you.

                        1 Reply Last reply Reply Quote 0
                        • T
                          terumi last edited by

                          Ok,
                          I first installed the status bar cordova plugin,

                          cordova plugin add cordova-plugin-statusbar
                          

                          and then, in the cordova/config.xml I added these lines:

                          <preference name="StatusBarOverlaysWebView" value="true" />
                          <preference name="StatusBarBackgroundColor" value="#F44336" />
                          

                          And everything is ok now 🙂

                          More on…
                          https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-statusbar/index.html

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