summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2024-07-02 17:57:34 (GMT)
committerGitHub <noreply@github.com>2024-07-02 17:57:34 (GMT)
commit089835469d5efbea4793cd611b43cb8387f2e7e5 (patch)
treecd134b281a321e1cb7918ca2abac0a512680873a /Doc/howto
parentb180788d4a927d23af54f4b4702ccaf254f64854 (diff)
downloadcpython-089835469d5efbea4793cd611b43cb8387f2e7e5.zip
cpython-089835469d5efbea4793cd611b43cb8387f2e7e5.tar.gz
cpython-089835469d5efbea4793cd611b43cb8387f2e7e5.tar.bz2
gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265)
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging.rst6
-rw-r--r--Doc/howto/logging_flow.svg10
2 files changed, 14 insertions, 2 deletions
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index 9c55233..cbfe933 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -403,11 +403,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');
}
}
diff --git a/Doc/howto/logging_flow.svg b/Doc/howto/logging_flow.svg
index 9807323..4974994 100644
--- a/Doc/howto/logging_flow.svg
+++ b/Doc/howto/logging_flow.svg
@@ -46,6 +46,7 @@
filter: invert(100%) hue-rotate(180deg) saturate(1.25);
}
}
+ /* These rules are for when the theme selector is used, perhaps in contrast to the browser theme. */
body.dark-theme polygon, body.dark-theme rect, body.dark-theme polyline, body.dark-theme line {
stroke: #ffffff;
}
@@ -55,6 +56,15 @@
body.dark-theme text {
fill: #ffffff;
}
+ body.light-theme polygon, body.light-theme rect, body.light-theme polyline, body.light-theme line {
+ stroke: #000000;
+ }
+ body.light-theme polygon.filled {
+ fill: #000000;
+ }
+ body.light-theme text {
+ fill: #000000;
+ }
</style>
<defs />