Bug 165889 - Outline view should respect font color
Summary: Outline view should respect font color
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LibreOffice-Themes
  Show dependency treegraph
 
Reported: 2025-03-24 11:52 UTC by Heiko Tietze
Modified: 2025-03-24 11:52 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2025-03-24 11:52:53 UTC
The outline view shows the slide content with minimal capabilities to view and edit. The paragraph attributes are respected as well as the character background. But not the font color nor other attributes. The font color is some highly relevant attribute though as it is being calculated against the background - and if the user inverts the text ie. black background, white font - it wont be visible anymore in the outline view.

Furthermore, the font color is always black. If the document color is set to some dark value the view is broken. The band-aid from bug 165803 may help for now but actually it would be nicer to have the app background on the outline view (besides customization).

Tried something at

OutlineView::onUpdateStyleSettings() GetColorValue( svtools::DOCCOLOR ).nColor -> APPBACKGROUND

and at the PaintingFirstLineHdl -> aColor( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor.IsDark() ? COL_WHITE : COL_BLACK ); aNewFont.SetColor( aColor ); plus pInfo->mpOutDev->SetTextColor ( aColor );

but the issue needs to be solved in the SdOutliner or some other close closer to the EditEngine maybe. 

In other words: Accepting the paragraph attributes in particular the background color in OutlineView::UpdateParagraph() requires to respect the font color (and use white/black in case of auto depending on the background).