• 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.

enhancing Text Readability on Bright Wallpapers: Adding Background Textures or Boxes with CSS?

Scheduled Pinned Locked Moved Custom CSS
11 Posts 3 Posters 1.0k Views 3 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.
  • S Offline
    Socrates
    last edited by sdetweil Dec 19, 2024, 12:52 AM Dec 18, 2024, 6:18 AM

    How can I add a texture behind the module to ensure readability against bright wallpapers? I’m using the Unsplash module, which offers many attractive wallpapers, but I often have to choose the darkest ones for the white text to be visible. Can this be achieved through CSS? Do I need to write CSS for each module individually, or is there a way to automatically add a texture or box behind every module?

    S 2 Replies Last reply Dec 18, 2024, 1:17 PM Reply Quote 0
    • S Offline
      sdetweil @Socrates
      last edited by sdetweil Dec 18, 2024, 1:18 PM Dec 18, 2024, 1:17 PM

      @Socrates there is no way currently to deal with this problem. i want it too.

      you can provide a background for a module in css, but it will be above the background. and the more opaque it is the more it obscures the background and starts to make MagicMirror screen like a bunch of post-it notes

      my background is pictures, so constantly changing

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Socrates
        last edited by sdetweil Dec 18, 2024, 1:44 PM Dec 18, 2024, 1:37 PM

        @Socrates maybe invert
        https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/invert

        i dont know if its live or at draw time assuming a stable background

        mixed blend mode sounds better
        https://css-tricks.com/reverse-text-color-mix-blend-mode/

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Dec 18, 2024, 11:59 PM Reply Quote 0
        • S Offline
          Socrates @sdetweil
          last edited by Dec 18, 2024, 11:59 PM

          @sdetweil said in nhancing Text Readability on Bright Wallpapers: Adding Background Textures or Boxes with CSS?:

          @Socrates maybe invert
          https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/invert

          i dont know if its live or at draw time assuming a stable background

          mixed blend mode sounds better
          https://css-tricks.com/reverse-text-color-mix-blend-mode/

          Hello and Good Evening Sam, thanks for looking into my posts and helping with your valuable tips as always.
          I found something that might interest you too.
          Check out
          MMM-Glassy module.
          https://github.com/bugsounet/MMM-Glassy

          I was able to achieve this. In this module u dont need to add css layers for each module, they will automatically show up in all the modules u have. Infact you can add exceptions to which u dont want the mmm-glassy module wrap around the module.

          mm1.JPG

          This is how i did it.

          {
            module: "MMM-Glassy",
            disabled: false,
            config: {
              debug: false,
              ignoreModules: ["MMM-Worldclock","MMM-Remote-Control","MMM-OpenmapWeather","MMM-OpenWeatherMapForecast","MMM-Mov>
              modulePadding: "10px",
              moduleRadius: "10px",
              moduleShadow: "5px",
              moduleBackgroundRGB: "0,0,0",
              moduleBackgroundOpacity: "15%",
              moduleBorderRGB: "255,255,255",
              moduleBorderOpacity: "10%",
              moduleShadowOffsetX: "-5px",
              moduleShadowOffsetY: "-5px",
              moduleShadowBlur: "8px",
              moduleShadowColor: "black",
              moduleBlur: "5px",
              moduleSpacing: "15px",
              mirrorMargin: "10px",
              mirrorBackground: false,
              mirrorBackgroundOnSuspend: true
            }
          },
          
          
          S 1 Reply Last reply Dec 19, 2024, 12:04 AM Reply Quote 0
          • S Offline
            sdetweil @Socrates
            last edited by Dec 19, 2024, 12:04 AM

            @Socrates ok, don’t see the effect and don’t know what glassy means

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Dec 19, 2024, 12:11 AM Reply Quote 0
            • S Offline
              Socrates
              last edited by Dec 19, 2024, 12:09 AM

              I will further tweak the look of the layer so to make it look smart and classy

              1 Reply Last reply Reply Quote 0
              • S Offline
                Socrates @sdetweil
                last edited by Dec 19, 2024, 12:11 AM

                Look at the calendar items on the left hand side of the screenshot for reminders and appointments, and national holidays, also ecobee module. I just added the glassy effect on the items that are hard to read

                S 1 Reply Last reply Dec 19, 2024, 12:20 AM Reply Quote 0
                • S Offline
                  sdetweil @Socrates
                  last edited by Dec 19, 2024, 12:20 AM

                  @Socrates does that mean the blur box?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Dec 19, 2024, 12:39 AM Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by sdetweil Dec 19, 2024, 12:43 AM Dec 19, 2024, 12:39 AM

                    @sdetweil ok, this is my screen with pages enabled
                    Screenshot at 2024-12-18 18-36-07.jpg

                    the date is completely washed out top left. above the time

                    using MMM-ImagesPhotos with blur(8) and fill

                    the unblurred section is the photo resized to keep aspect ratio consistent
                    (not cover or contain)
                    so it changes with every image

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Dec 19, 2024, 12:48 AM Reply Quote 0
                    • S Offline
                      sdetweil @sdetweil
                      last edited by Dec 19, 2024, 12:48 AM

                      @Socrates sometimes the blur is top and bottom
                      Screenshot at 2024-12-18 18-47-45.jpg

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Jan 22, 2025, 4:13 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/11
                        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