]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-121035: Further improve logging flow diagram with respect to dark/light...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 3 Jul 2024 10:40:26 +0000 (11:40 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2024 10:40:26 +0000 (11:40 +0100)
(cherry picked from commit 089835469d5efbea4793cd611b43cb8387f2e7e5)

Doc/howto/logging.rst
Doc/howto/logging_flow.svg

index 3f3cb55cfe9035304e515b7444549beff1ebe6db..b96ff7fd20ee20416f5232b9b00f3565fd8b23eb 100644 (file)
@@ -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');
         }
      }
 
index 9807323b7190d6acb31d6d9caadfed924fe7ddba..4974994ac6b4007f9f7cf477d4cc146891dbd587 100644 (file)
@@ -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;
     }
     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 />