Skip to content

Commit

Permalink
Invert colors in diagrams if a dark theme is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Mar 19, 2024
1 parent be678ae commit 43f8f04
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
1 change: 1 addition & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title = "The Amaranth RFC Book"
[output.html]
no-section-label = true
git-repository-url = "https://github.com/amaranth-lang/rfcs"
additional-css = ["theme/img-color-scheme.css"]

[output.html.search]
heading-split-level = 0
Expand Down
14 changes: 12 additions & 2 deletions text/0049-soc-gpio-peripheral/overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion text/0049-soc-gpio-peripheral/reg-input.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion text/0049-soc-gpio-peripheral/reg-mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion text/0049-soc-gpio-peripheral/reg-output.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion text/0049-soc-gpio-peripheral/reg-setclr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions theme/img-color-scheme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.light, .rust {
img {
color-scheme: light;
}
}
.ayu, .coal, .navy {
img {
color-scheme: dark;
}
}

0 comments on commit 43f8f04

Please sign in to comment.