diff --git a/book/404.html b/book/404.html index 138f61b..5f62666 100644 --- a/book/404.html +++ b/book/404.html @@ -29,6 +29,7 @@ + diff --git a/book/book.js b/book/book.js index 1cde94d..6333766 100644 --- a/book/book.js +++ b/book/book.js @@ -292,6 +292,7 @@ function playground_text(playground, hidden = true) { var stylesheets = { ayuHighlight: document.querySelector("[href$='ayu-highlight.css']"), solversLightHighlight: document.querySelector("[href$='solvers-light-highlight.css']"), + solversDarkHighlight: document.querySelector("[href$='solvers-dark-highlight.css']"), tomorrowNight: document.querySelector("[href$='tomorrow-night.css']"), highlight: document.querySelector("[href$='highlight.css']"), }; @@ -333,6 +334,7 @@ function playground_text(playground, hidden = true) { stylesheets.tomorrowNight.disabled = false; stylesheets.highlight.disabled = true; stylesheets.solversLightHighlight.disabled = true; + stylesheets.solversDarkHighlight.disabled = true; ace_theme = "ace/theme/tomorrow_night"; } else if (theme == 'ayu') { @@ -340,6 +342,7 @@ function playground_text(playground, hidden = true) { stylesheets.tomorrowNight.disabled = true; stylesheets.highlight.disabled = true; stylesheets.solversLightHighlight.disabled = true; + stylesheets.solversDarkHighlight.disabled = true; ace_theme = "ace/theme/tomorrow_night"; } @@ -348,17 +351,29 @@ function playground_text(playground, hidden = true) { stylesheets.tomorrowNight.disabled = true; stylesheets.highlight.disabled = false; stylesheets.solversLightHighlight.disabled = true; + stylesheets.solversDarkHighlight.disabled = true; ace_theme = "ace/theme/dawn"; } - else { + else if (theme == 'solvers-light') { stylesheets.ayuHighlight.disabled = true; stylesheets.tomorrowNight.disabled = true; stylesheets.highlight.disabled = false; stylesheets.solversLightHighlight.disabled = false; + stylesheets.solversDarkHighlight.disabled = true; //ace_theme = "ace/theme/tomorrow_night"; ace_theme = "ace/theme/solvers-light"; } + else { + stylesheets.ayuHighlight.disabled = true; + stylesheets.tomorrowNight.disabled = false; + stylesheets.highlight.disabled = true; + stylesheets.solversLightHighlight.disabled = true; + stylesheets.solversDarkHighlight.disabled = false; + //ace_theme = "ace/theme/tomorrow_night"; + ace_theme = "ace/theme/solvers-dark"; + } + setTimeout(function () { themeColorMetaTag.content = getComputedStyle(document.documentElement).backgroundColor; }, 1); diff --git a/book/contributors.html b/book/contributors.html index bfcf50f..e3c30af 100644 --- a/book/contributors.html +++ b/book/contributors.html @@ -28,6 +28,7 @@ + @@ -134,6 +135,7 @@