Skip to content

Commit

Permalink
Fix theme customizations for ClamAV
Browse files Browse the repository at this point in the history
  • Loading branch information
micahsnyder committed Nov 9, 2023
1 parent b16b8b8 commit 740599c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 1 addition & 6 deletions theme/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,16 +327,11 @@ function playground_text(playground, hidden = true) {
function set_theme(theme, store = true) {
let ace_theme;

if (theme == 'coal' || theme == 'navy') {
if (theme == 'clamav') {
stylesheets.ayuHighlight.disabled = true;
stylesheets.tomorrowNight.disabled = false;
stylesheets.highlight.disabled = true;

ace_theme = "ace/theme/tomorrow_night";
} else if (theme == 'ayu') {
stylesheets.ayuHighlight.disabled = false;
stylesheets.tomorrowNight.disabled = true;
stylesheets.highlight.disabled = true;
ace_theme = "ace/theme/tomorrow_night";
} else {
stylesheets.ayuHighlight.disabled = true;
Expand Down
7 changes: 2 additions & 5 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@
<i class="fa fa-paint-brush"></i>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
<li role="none"><button role="menuitem" class="theme" id="clamav">Dark</button></li>
<li role="none"><button role="menuitem" class="theme" id="clamav_light">Light</button></li>
</ul>
{{#if search_enabled}}
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)"
Expand Down

0 comments on commit 740599c

Please sign in to comment.