Bug 161003 - Footnote separator should offer automatic color
Summary: Footnote separator should offer automatic color
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Footnote-Endnote Automatic-Color
  Show dependency treegraph
 
Reported: 2024-05-09 10:03 UTC by ardv
Modified: 2025-10-16 14:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of issue (51.39 KB, image/png)
2024-05-27 13:36 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ardv 2024-05-09 10:03:49 UTC
Description:
when i use dark mode in LO writer the background color is shown as black and the font color shown as white. but the footnote separator also should shown as white. but in the settings there is no: automatic color for it.
and the styles of footnote separator is not shown correctly in dark mode: black in black.

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.9; UI render: default; VCL: kf6 (cairo+wayland)
Locale: ar-DZ (en_US.UTF-8); UI: en-US
24.2.2-3
Calc: threaded

OS: manjaro

Actual Results:
separator not shown

Expected Results:
separator color should be automatic and should be white when in dark mode


Reproducible: Always


User Profile Reset: No

Additional Info:
the footnoetes style should be shown correctly
Comment 1 ardv 2024-05-17 17:10:22 UTC
this problem also occurs with: table borders and frame borders.
Comment 2 Stéphane Guillou (stragu) 2024-05-27 13:34:47 UTC
Reproduced: Format > Page style > Footnote shows that the separator line uses Black by default. I think it should use the same Automatic colour as the font.

Repro in:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ae798781ef4df7a1fdef13af0bc459bf4f6e7b4c
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

...and as far back as OOo 3.3 (although back then, the colour couldn't be changed in the Page Style dialog).

Hossein, possibly an easyHack?
Comment 3 Stéphane Guillou (stragu) 2024-05-27 13:36:05 UTC
Created attachment 194378 [details]
screenshot of issue
Comment 4 Justin L 2025-10-16 13:31:49 UTC
Confirmed that Word 2010 treats the separator color as COL_AUTO - it turned white on a black page.

LO does not have the option to chose COL_AUTO for the separator color.
Comment 5 Justin L 2025-10-16 14:40:58 UTC
git grep -i "separator line"
results in sw/uiconfig/swriter/ui/footnoteareapage.ui

and git grep -20 footnoteareapage.ui
points to sw/source/ui/misc/pgfnote.cxx
where we see that this is a SwPageFootnoteInfo (sw/source/core/layout/pagedesc.cxx) where m_LineColor is never initialized, so it must be using Color's default of black (include/tools/color.hxx).
    constexpr Color()
        : mValue(0) // black

Noel just told me that COL_AUTO is the same as COL_TRANSPARENT - so it just depends on the implementation whether it is invisible or the opposite of the background. For lines (like the separator) it appears to be implemented as COL_TRANSPARENT - since I can't see the line at all when I forced it to COL_AUTO.