• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Angular Background Image

    Dashboard Designer & Custom AngularJS Pages
    4
    15
    16.8k
    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.
    • Jared WiltshireJ
      Jared Wiltshire @atkins.chrisw
      last edited by

      @atkins.chrisw said in Angular Background Image:

      <base href="/user-dashboards/chrisground/

      Hmm, no what you have should work. When you update the module the module's folder will be deleted, did you put the image in the overrides folder?

      Developer at Radix IoT

      1 Reply Last reply Reply Quote 0
      • A
        atkins.chrisw
        last edited by

        Yeah it is in the overrides folder. It in the following:
        root/mango/overrides/web/modules/dashboards/vitalityimages

        1 Reply Last reply Reply Quote 0
        • A
          atkins.chrisw
          last edited by

          sorry. vitalimages

          1 Reply Last reply Reply Quote 0
          • A
            atkins.chrisw
            last edited by

            Any luck? This background is kinda important

            1 Reply Last reply Reply Quote 0
            • Jared WiltshireJ
              Jared Wiltshire
              last edited by

              OK so the HTML layout in main.html changed a little, update your CSS rule to the following

              md-content.main-content {
                background-image: url(/modules/dashboards/web/vitalimages/Test3.jpg);
              }
              

              Developer at Radix IoT

              S 1 Reply Last reply Reply Quote 0
              • A
                atkins.chrisw
                last edited by

                That worked great!!

                1 Reply Last reply Reply Quote 0
                • A
                  atkins.chrisw
                  last edited by

                  Sorry Jared,

                  how would I make the date/pickers have a white color instead of the black?

                  0_1473449497889_upload-0833ee70-4453-4d7d-a8a6-252786dc8088

                  Jared WiltshireJ 1 Reply Last reply Reply Quote 0
                  • Jared WiltshireJ
                    Jared Wiltshire @atkins.chrisw
                    last edited by

                    @atkins.chrisw said in Angular Background Image:

                    Sorry Jared,

                    how would I make the date/pickers have a white color instead of the black?

                    0_1473449497889_upload-0833ee70-4453-4d7d-a8a6-252786dc8088

                    Sorry for the extremely delayed response but you can easily change this by creating a "dark" theme and applying it to the section of the page you want inverted colors on.

                    In app.js copy the theme you are using and add .dark() to it. e.g. for the adminTemplate you will have

                        // configure the angular material colors
                        $mdThemingProvider
                            .theme('default')
                            .primaryPalette('yellow')
                            .accentPalette('red');
                    
                        $mdThemingProvider
                            .theme('dark')
                            .primaryPalette('yellow')
                            .accentPalette('red')
                            .dark();
                    

                    Then use the dark theme on the page where you want -

                    <md-toolbar md-theme="dark">
                    

                    Developer at Radix IoT

                    1 Reply Last reply Reply Quote 0
                    • S
                      shaun @Jared Wiltshire
                      last edited by

                      Hi Guys,

                      I'm having a problem with the following not giving me the expected results... I'm assuming the content in this thread applies to the admin template? I've put in :

                       <style>
                         md-content.main-content {
                           background-image: url(/modules/dashboards/web/images/bg/blue_dots_blur3.jpg);
                         }
                       </style>
                      

                      And I see no change.

                      I've also put in

                         <style>
                           body {
                           background-image: url(/modules/dashboards/web/images/bg/blue_dots_blur3.jpg);
                           }
                         </style>
                      

                      and I see the background image flash up when i hit reload and see the spinning gear, but then the dashboard pops up over the top and its all white.

                      Any suggestions?

                      1 Reply Last reply Reply Quote 0
                      • Jared WiltshireJ
                        Jared Wiltshire
                        last edited by

                        Hey shaun, the best way to figure out what is going on is to use Chrome and open the inspector (right click on page and choose Inspect). Find the element (on the elements tab) you are trying to add a background to and check its styles. You will also be able to see if the .jpg is actually being loaded or is not found (404 error etc) in the console.

                        If you style the body tag you will not see the background as there are other elements "in front" of the body element which have opaque backgrounds. Also if you are targeting md-content.main-content which is the main content pane you may have to add a !important to your CSS rule to override inline styles.

                        Developer at Radix IoT

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          shaun @Jared Wiltshire
                          last edited by

                          Thanks @Jared-Wiltshire! great advice.
                          Its fixed now, but im not sure where I went wrong.. best guess is a typo - perhaps a misplaced closing } or something.

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