#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)

Bildschirm­foto 2023-02-27 um 20.20.30.png (39.6 KB ) - added by tclaus 21 months ago.
Screenshot on docs/api from macOS Ventura on Safari browser
Bildschirmfoto 2023-04-10 um 22.32.58.png (42.0 KB ) - added by tclaus 20 months ago.
Darkmode view after the fix

Download all attachments as: .zip

Change History (14)

by tclaus, 21 months ago

Screenshot on docs/api from macOS Ventura on Safari browser

comment:1 by waddlesplash, 21 months ago

Component: WebsiteDocumentation
Keywords: dark_mode removed
Owner: changed from haiku-web to nielx
Platform: armAll

comment:2 by waddlesplash, 21 months ago

Cc: nephele added

comment:3 by nephele, 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 tclaus, 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 nephele, 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 madmax, 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 nephele, 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 nephele, 21 months ago

Owner: changed from nielx to nephele
Status: newassigned
Version: R1/beta4R1/Development

comment:10 by nielx, 20 months ago

@tclaus: could you review whether the problem is fixed now?

by tclaus, 20 months ago

Darkmode view after the fix

comment:11 by tclaus, 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 waddlesplash, 20 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.