• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Change Currentweather colors

Scheduled Pinned Locked Moved Unsolved Development
9 Posts 7 Posters 11.2k Views 6 Watching
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.
  • A Offline
    Anachor
    last edited by Jul 14, 2016, 8:50 AM

    Hello!

    How i can change the colors of the currentweather module ? I want to change every weather icon and the font color. I successful change the colors of the calender and the compliments but i don’t get it on the currentweather module… :confused:

    P 1 Reply Last reply Jul 14, 2016, 12:46 PM Reply Quote 0
    • P Offline
      Phate @Anachor
      last edited by Phate Jul 14, 2016, 12:47 PM Jul 14, 2016, 12:46 PM

      @Anachor

      Can you please post how you even changed the colour of the calendar…

      Much appreciated for people like myself who need a little more help…

      I’m starting to see a few UI tweaks scattered about… Would be nice to get them all in one thread

      1 Reply Last reply Reply Quote 2
      • M Offline
        MichMich Admin
        last edited by Jul 15, 2016, 7:21 AM

        You can modify the styling of your mirror using css/custom.css.

        P 1 Reply Last reply Jul 15, 2016, 1:36 PM Reply Quote 1
        • P Offline
          Phate @MichMich
          last edited by Jul 15, 2016, 1:36 PM

          @MichMich

          thank you… even the basic info helps… I see little snippets about that are specific.

          They really help amateurs like me… Cant beat copy paste and a little finagling lol

          Awesome job tho for any help

          1 Reply Last reply Reply Quote 1
          • A Offline
            Anachor
            last edited by Jul 16, 2016, 9:25 PM

            Hello Phate!

            i change the colors with some help from a other post. Here is the quote :-)

            @KirAsh4 said in Change default interface colors:

            By the way, that colorful screen capture was simply demonstrating that if you want to edit the default modules, you can, and you can then color them any way you want. In this case, I opened calendar.js and in the 'getStyles' section, I added another file:

                    // Define required scripts.
                    getStyles: function() {
                            return ["calendar.css", "font-awesome.css", "mystyles.css"];
                    },
            

            In this instance, 'mystyles.css' is my custom one, which I then created and added my own colors to the various elements:

            #module_1_clock .time, #module_1_clock .date {
                    color: #99F;
            }
            
            #module_1_clock .dimmed {
                    color: #449;
            }
            
            #module_2_calendar header {
                    color: #F00;
                    border-bottom: 2px solid #600;
            }
            
            #module_2_calendar .title {
                    color: #F99;
            }
            
            #module_2_calendar .time {
                    color: #FBB;
            }
            
            #module_2_calendar .symbol {
                    color: #FF0;
            }
            

            Use this and you can change the colors of the calender with some use of HTML color codes. What i’am now need is some example of the code for each symbol of the currentweather module…try a few times but nothing real works. :-/

            D 1 Reply Last reply Jan 8, 2017, 10:48 AM Reply Quote 2
            • S Offline
              smithdsl
              last edited by paviro Sep 27, 2016, 8:58 PM Aug 1, 2016, 6:45 PM

              Hey @Anachor ,

              This is what I found. Let start by saying I’m a new to css and java, But I seem to be learning something from this ( or just lucky). I found that the order a module loads needs to be listed in the custom.css file. This is have my default layout looks:

              alert module 0
              clock module 1
              calendar module 2
              compliments module 3
              currentweather module 4
              weatherforecast module 5
              newsfeed module 6

              So to change the sunrise and sunset icon colors I add the “module_4_currentweather” before the css tag .wi-sunrise:

              #module_4_currentweather .wi-sunrise {
                      color: #ff0;
              }
              #module_4_currentweather .wi-sunset {
                      color: #eb0;
              }
              

              Same thing for rain and showers tags:

              #module_4_currentweather .wi-night-showers {
                      color: #07f;
              }
              #module_4_currentweather .wi-degrees {
                      color: #415;
              }
              
              #module_4_currentweather  .wi-rain {
                      color: #00f;
              

              I’m attaching my custom file so you can take a look.
              0_1470076546710_custom.css

              It does not change all icons yet, some tags I have not found the right name for. But I hope it helps.


              Note from admin: Please use Markdown on code snippets for easier reading!

              D 1 Reply Last reply Oct 10, 2016, 6:21 AM Reply Quote 0
              • D Offline
                daveyg_71 @smithdsl
                last edited by Oct 10, 2016, 6:21 AM

                @smithdsl How did you find which modules are loaded in which order?

                S 1 Reply Last reply Oct 10, 2016, 9:05 AM Reply Quote 0
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer @daveyg_71
                  last edited by Oct 10, 2016, 9:05 AM

                  @daveyg_71 it’s the order they’re listed in the config.js file

                  Please create a github issue if you need help, so I can keep track

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    djdwayneanthony @Anachor
                    last edited by Jan 8, 2017, 10:48 AM

                    @Anachor Hi i’m following your instructions, in what folder do you save your new “mystyles.css” in order for this to work?

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy