Skip to content

Commit 4b5d83d

Browse files
Changed dark theme slightly to make code more readable in some cases (#2960)
* Changed dark theme slightly to make code more readable in some cases * Changed color of dark_functiondefinecolor in theme * Apply suggestions from code review --------- Co-authored-by: Dan Lawrence <[email protected]>
1 parent ef3ef20 commit 4b5d83d

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

docs/reST/themes/classic/static/pygame.css_t

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,15 @@ dt code {
603603
color: {{ theme_dark_codecomment }};
604604
}
605605

606+
.dark-theme .highlight .nf,
607+
.dark-theme .highlight .fm {
608+
color: {{ theme_dark_functiondefinecolor }};
609+
}
610+
611+
.dark-theme .highlight .nc {
612+
color: {{ theme_dark_classdefinecolor }}; font-weight: bold
613+
}
614+
606615
code.download span.pre {
607616
font-family: inherit;
608617
font-weight: normal;
@@ -639,17 +648,17 @@ div.body h6 {
639648
line-height: 130%;
640649
}
641650

642-
div.body h1 {
651+
div.body h1 {
643652
font-size: 1.5em; color: {{ theme_h1color }};
644653
}
645-
.dark-theme div.body h1 {
654+
.dark-theme div.body h1 {
646655
color: {{ theme_dark_h1color }};
647656
}
648-
div.body h2 {
657+
div.body h2 {
649658
font-size: 1.4em;
650659
color: {{ theme_h2color }};
651660
}
652-
.dark-theme div.body h2 {
661+
.dark-theme div.body h2 {
653662
color: {{ theme_dark_h2color }};
654663
}
655664
div.body h3 { font-size: 1.3em; }

docs/reST/themes/classic/theme.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ dark_notebgcolor = #555349
5656
dark_notebordercolor = #6e6b5e
5757
dark_cautionbgcolor = rgb(255 25 25 / 30%)
5858
dark_cautionbordercolor = rgb(255 60 60)
59+
dark_functiondefinecolor = #fee32d
60+
dark_classdefinecolor = #50b0fa
5961

6062
relbarbgcolor = #6aee28
6163
relbartextcolor = #000000

0 commit comments

Comments
 (0)