mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.12] gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265) (GH-121321)
(cherry picked from commit 089835469d
)
This commit is contained in:
parent
c3f393c8ad
commit
10818024c8
2 changed files with 14 additions and 2 deletions
|
@ -402,11 +402,13 @@ following diagram.
|
||||||
function updateBody(theme) {
|
function updateBody(theme) {
|
||||||
let elem = document.body;
|
let elem = document.body;
|
||||||
|
|
||||||
|
elem.classList.remove('dark-theme');
|
||||||
|
elem.classList.remove('light-theme');
|
||||||
if (theme === 'dark') {
|
if (theme === 'dark') {
|
||||||
elem.classList.add('dark-theme');
|
elem.classList.add('dark-theme');
|
||||||
}
|
}
|
||||||
else {
|
else if (theme === 'light') {
|
||||||
elem.classList.remove('dark-theme');
|
elem.classList.add('light-theme');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
filter: invert(100%) hue-rotate(180deg) saturate(1.25);
|
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 {
|
body.dark-theme polygon, body.dark-theme rect, body.dark-theme polyline, body.dark-theme line {
|
||||||
stroke: #ffffff;
|
stroke: #ffffff;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +56,15 @@
|
||||||
body.dark-theme text {
|
body.dark-theme text {
|
||||||
fill: #ffffff;
|
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>
|
</style>
|
||||||
|
|
||||||
<defs />
|
<defs />
|
||||||
|
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Loading…
Add table
Add a link
Reference in a new issue