Text color "Ressource tab"

Mar 30, 2023

Hi there,

I need to change the default color of the 'Resources' tab (only this one) of the Storyline 360 modern player.

Do you know if it's possible (with Java Script for example)?

Thanks !

Fred

9 Replies
Kelly Auner

Hi LARROQUE, and thanks for reaching out!

I see you've connected with my teammate, Mcgem. That was a great call!

For anyone wondering about the same question, the Modern Player colors are set by default and only change depending on the selected player color (Dark, Light, or Custom). Hopefully others in the E-Learning Heroes community can jump in with a way to achieve this using JavaScript!

Jürgen Schoenemeyer

with this script you can modify the background and the text color of the resourse panel

if( window.cssPatchResourcePanel !== "done") {
  style = document.createElement('style');
  style.textContent = `
    #resources-panel {
      background-color: red !important;
      border-color: white !important;
    }
    #resources-panel .panel-arrow-path {
      background-color: red !important;
      border-color: white !important;
    }
    #resources-panel .cs-listitem:hover {
      border-color: white !important;
    }
    #resources-panel .file-name {
      color: blue;
    }
  `

  document.body.appendChild(style);
  window.cssPatchResourcePanel = "done";
  
 console.log("Resourse Panel patched");
}

you could add a javascript trigger in the Slide Master

result:

https://360.articulate.com/review/content/e6f0aa6a-6c24-4177-a146-0be293a5ac52/review

 

Jürgen Schoenemeyer

then a script is

if( window.cssPatchResourceButton !== "done") {
  style = document.createElement('style');
  style.textContent = `
    #resources-link {
     color: yellow;
    }
  `

  document.body.appendChild(style);
  window.cssPatchResourceButton = "done";
  
  console.log("Resourse button patched");
}

https://360.articulate.com/review/content/cfb34d73-26e1-44de-bf60-cedb859c0464/review

 

Jürgen Schoenemeyer

no problem - this is the new global script for the slide master -> on timeline starts

if( window.cssPatchResourceButton !== "done") {
style = document.createElement('style');
style.textContent = `
body.green #resources-link {
color: #00AB4F;
}
body.red #resources-link {
color: #FF2E17;
}
body.yellow #resources-link {
color: #FFEB3D;
}
`

document.body.appendChild(style);
window.cssPatchResourceButton = "done";

console.log("Resourse button patched");
} else {
document.body.classList.remove('yellow');
document.body.classList.remove('red');
document.body.classList.remove('green');
}

and for the three slides -> trigger on timeline starts

 document.body.classList.add('green');
 document.body.classList.add('red');
 document.body.classList.add('yellow');

result:

https://360.articulate.com/review/content/09d03857-ac71-4322-b7bd-0d77495e7812/review