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

    Display different theme based on platform

    Framework
    dynamic-change themes
    3
    6
    869
    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.
    • R
      reath last edited by

      Hello!
      First I would like to thank the developer and all people involved in this project. I’m a newbie, but from the first one hour playing with Quasar I’m in love with it!

      So I’m building a PWA application and I was wondering if it’s possible to display the ios theme to iOS visitors and the android theme to android visitors? Is the theme configuration only for when I’m building a native app or it’s possible to display the corresponding theme in a web scenario?

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

        Check this thread out.

        https://forum.quasar-framework.org/topic/701/different-ui-for-different-platform-android-iphone-using-same-code

        Scott

        R 1 Reply Last reply Reply Quote 1
        • R
          reath @s.molinari last edited by

          @s-molinari
          Thank you for the response. So no way to do this, unless I deploy two different versions of the project and redirect clients.

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

            That is correct.

            Scott

            1 Reply Last reply Reply Quote 0
            • J
              jaehyeon last edited by jaehyeon

              Just wonder if it’s possible to apply style conditionally? https://quasar-framework.org/guide/quasar-theming.html#Platform-Specific-Styles

              An example that applies to iOS style may be

              body
              &.mat &.mobile & .desktop
              @import ‘material-theme.styl’’
              &.ios
              @import ‘ios-theme.styl’

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

                Currently, the styles are calculated and loaded with the flag set at build time. This is to lower CSS density/ file size.

                Scott

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