Is there any way to change the colour of the navig...
# ask-stanley-ai
a
Is there any way to change the colour of the navigation bar when using the new Redwood UI?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that there is no direct way to change the colour of the navigation bar when using the new Redwood UI in NetSuite. The Redwood UI is a new design theme and experience that is still in development, and the scripting experience for it is also in development. However, there is a workaround to capture the current colour of the navigation bar using SuiteScript. Here is a code snippet that was shared:
Copy code
javascript
/**
   * Attempt to figure out user's selected theme colour
   *
   * @returns {string} NetSuite theme colour as hex string
   */
  function getNetSuiteThemeColour() {
    const defaultColour = "#607799";
    const $nsNavigation = document.getElementById("ns_navigation");

    if ($nsNavigation) {
      return window.getComputedStyle($nsNavigation)["background-color"];
    }

    return defaultColour;
  }
This function attempts to get the current theme colour of the NetSuite navigation bar. If it can't find the navigation bar, it returns a default colour. Please note that this code only captures the current colour of the navigation bar, it does not change it. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815927565
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801380098
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.789316952
Please provide your feedback on this answer.