MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Calendar Color

    Troubleshooting
    12
    27
    8967
    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
      sdetweil @RJDaPirate last edited by

      @RJDaPirate the code does this

      if (this.config.colored && !this.config.coloredSymbolOnly) {
      				eventWrapper.style.cssText = "color:" + this.colorForUrl(event.url);
      			}
      
      	colorForUrl: function (url) {
      		return this.getCalendarProperty(url, "color", "#fff");
      	},
      

      Sam

      Create a working config
      How to add modules

      R 1 Reply Last reply Reply Quote 0
      • R
        RJDaPirate @sdetweil last edited by

        @sdetweil This is not visible in the config.js file. Earlier in the thread you instructed another user not the change settings in source instead of the config.js. Where are the setting you highlighted?

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @RJDaPirate last edited by sdetweil

          @RJDaPirate i am just showing the code that uses the settings from config.js… not changing it…

          this.config.colored
          u have colored: true, in config.js calendar config section

          then it looks up color value by url…

          if not found it return #fff as the color…

          u have 6 digit color values…

          Sam

          Create a working config
          How to add modules

          R 1 Reply Last reply Reply Quote 0
          • R
            RJDaPirate @sdetweil last edited by

            @sdetweil Understand you did not “edit”. Do not understand what I have done wrong? Cannot find examples of Calendar Module Config.js with seperate colors for different url (google) calendars. Is there a knowledge document you’d recommend I read thru that covers those config: { colored:…

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @RJDaPirate last edited by

              @RJDaPirate I wasn’t aware of color support myself til you mentioned it.

              the online doc is all I am aware of

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • R
                RJDaPirate last edited by

                @sdetweil , The lack of a “proper” symbol was my undoing.

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

                  how do you change the schedule time color and font? Mine seems to be gray even after sending the fade to false.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 3 / 3
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy