Opened 21 months ago
Closed 20 months ago
#18283 closed bug (fixed)
In Dark mode in Haiku API docs parts of source are invisible
Reported by: | tclaus | Owned by: | nephele |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Documentation | Version: | R1/Development |
Keywords: | Cc: | nephele | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Parts of the code samples are unreadable in dark mode. Black text on dark gray background is quite invisible.
Attachments (2)
Change History (14)
by , 21 months ago
Attachment: | Bildschirmfoto 2023-02-27 um 20.20.30.png added |
---|
comment:1 by , 21 months ago
Component: | Website → Documentation |
---|---|
Keywords: | dark_mode removed |
Owner: | changed from | to
Platform: | arm → All |
comment:2 by , 21 months ago
Cc: | added |
---|
comment:3 by , 21 months ago
Hi tclaus, can you open the web inspecter to let me know what the css class and style of that text is?
comment:4 by , 21 months ago
To be more precise: I found this in the API Documentation page: https://www.haiku-os.org/docs/api/layout_intro.html
The text has no css style, or lets say the default text as it has no assigned class:
<div class="line"> <a class="code hl_class" href="classBGroupLayout.html">BGroupLayout</a> * group = <span class="keyword">new</span> <a class="code hl_class" href="classBGroupLayout.html">BGroupLayout</a> ( <a class="code hl_enumvalue" href="InterfaceDefs_8h.html#ac5fc6e200c34376449ba20a234061eb4a01c35140b008aea2cb9eca52ecf7cd4e">B_VERTICAL</a>);</div>
Here the "* group =" - section don't change its color in dark mode.
The CSS-Styles I found are: book.css, doxygen.css, search.css and tabs.css - not sure if this is what you requested?
Buy the way, the images HaikuDark.svg and LeafDark.png are failed to found.
https://www.haiku-os.org/images/HaikuDark.svg
https://www.haiku-os.org/images/LeafDark.png
comment:5 by , 21 months ago
I ment opening the web inspector of safari, selecting the text and seeing where it computed the color from. (with a screenshot).
I can do this alternativly but only later :)
For the images please open a seperate ticket.
comment:6 by , 21 months ago
div.fragment. We have color: black
in book.css. doxygen.css uses var(--fragment-foreground-color)
, which is #C9D1D9 in dark mode, if I'm reading it correctly.
comment:7 by , 21 months ago
This should be --CanvasText, but since I am using CanvasText as it's value I'll prepare a patch to remove the variable in favor of using CanvasText directly. (also for the userguide) same for --CanvasBackground
comment:8 by , 21 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Version: | R1/beta4 → R1/Development |
by , 20 months ago
Attachment: | Bildschirmfoto 2023-04-10 um 22.32.58.png added |
---|
Darkmode view after the fix
comment:11 by , 20 months ago
Now it looks nice in the dark mode. (Safari 16.4 on MacOS) I have added a new attachment with the current look.
Ticket can be closed.
comment:12 by , 20 months ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Screenshot on docs/api from macOS Ventura on Safari browser