Skip to content

Commit

Permalink
[3.12] pythongh-121035: Further improve logging flow diagram with res…
Browse files Browse the repository at this point in the history
…pect to dark/light modes. (pythonGH-121265)

(cherry picked from commit 0898354)

Co-authored-by: Vinay Sajip <[email protected]>
  • Loading branch information
vsajip committed Jul 3, 2024
1 parent c3f393c commit 6c74b20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Doc/howto/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,13 @@ following diagram.
function updateBody(theme) {
let elem = document.body;
elem.classList.remove('dark-theme');
elem.classList.remove('light-theme');
if (theme === 'dark') {
elem.classList.add('dark-theme');
}
else {
elem.classList.remove('dark-theme');
else if (theme === 'light') {
elem.classList.add('light-theme');
}
}
Expand Down
10 changes: 10 additions & 0 deletions Doc/howto/logging_flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c74b20

Please sign in to comment.