Skip to content

Commit

Permalink
change log window theme tooltip text
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewthe2 committed May 20, 2021
1 parent df0d877 commit e77f0c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/logs.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<button onclick="loadGameScriptFromFile()" class="mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">folder</i>
</button>
<div class="mdl-tooltip mdl-tooltip--large mdl-tooltip--left" data-mdl-for="toggleDarkThemeButton">Toggle Theme</div>
<div id="toggleDarkThemeTooltip" class="mdl-tooltip mdl-tooltip--large mdl-tooltip--left" data-mdl-for="toggleDarkThemeButton">Dark Mode</div>
<button id="toggleDarkThemeButton" onclick="toggleDarkTheme()" class="mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">brightness_medium</i>
</button>
Expand Down
2 changes: 2 additions & 0 deletions web/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ function toggleDarkTheme() {
const darkThemeToggleIcon = toggleDarkThemeButton.firstElementChild;
if (document.body.classList.contains('dark-theme')) {
darkThemeToggleIcon.innerHTML = 'brightness_low';
toggleDarkThemeTooltip.innerHTML = 'Light Mode';
} else {
darkThemeToggleIcon.innerHTML = 'brightness_medium'
toggleDarkThemeTooltip.innerHTML = 'Dark Mode';
}
}

Expand Down

0 comments on commit e77f0c1

Please sign in to comment.