From db28c1bdc4c49c8571dbf4107b6ce7a66644c36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kl=C3=A4hn?= <39526136+Septias@users.noreply.github.com> Date: Wed, 8 Mar 2023 21:35:15 +0100 Subject: [PATCH] Update doxygen for cffi docs (#4136) fix styling --- deltachat-ffi/Doxyfile.css | 14 ++++++++++++-- deltachat-ffi/deltachat.h | 2 +- deltachat-ffi/doxygen-dark-theme | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) create mode 160000 deltachat-ffi/doxygen-dark-theme diff --git a/deltachat-ffi/Doxyfile.css b/deltachat-ffi/Doxyfile.css index 9ff6816ed..2bf87be0c 100644 --- a/deltachat-ffi/Doxyfile.css +++ b/deltachat-ffi/Doxyfile.css @@ -1,14 +1,24 @@ +:root { + --accent: hsl(0 0% 70%); +} + +@media (prefers-color-scheme: dark) { + :root { + --accent: hsl(0 0% 30%); + } +} + /* the code snippet frame, defaults to white which tends to get badly readable in combination with explaining text around */ div.fragment { - background-color: #e0e0e0; + background-color: var(--accent); border: 0; padding: 1em; border-radius: 6px; } code { - background-color: #e0e0e0; + background-color: var(--accent); padding-left: .5em; padding-right: .5em; border-radius: 6px; diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 298664c8e..9208579c1 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -6623,7 +6623,7 @@ void dc_event_unref(dc_event_t* event); /// "You changed your email address from %1$s to %2$s. /// If you now send a message to a group, contacts there will automatically -/// replace the old with your new address.\n\nIt's highly advised to set up +/// replace the old with your new address.\n\n It's highly advised to set up /// your old email provider to forward all emails to your new email address. /// Otherwise you might miss messages of contacts who did not get your new /// address yet." + the link to the AEAP blog post diff --git a/deltachat-ffi/doxygen-dark-theme b/deltachat-ffi/doxygen-dark-theme new file mode 160000 index 000000000..101c1f915 --- /dev/null +++ b/deltachat-ffi/doxygen-dark-theme @@ -0,0 +1 @@ +Subproject commit 101c1f91523b9f2ea6932b1d7b727e67a4cd7171