<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Style names become invisible if the default style used white color"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=115507#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Style names become invisible if the default style used white color"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=115507">bug 115507</a>
from <span class="vcard"><a class="email" href="mailto:tietze.heiko@gmail.com" title="Heiko Tietze <tietze.heiko@gmail.com>"> <span class="fn">Heiko Tietze</span></a>
</span></b>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=140290" name="attach_140290" title="Selection issue">attachment 140290</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=140290&action=edit" title="Selection issue">[details]</a></span>
Selection issue
Tried to solve the issue myself, and it's easy to change the background
depending on the color at templdlg.cxx with
void StyleLBoxString::Paint()
...
rRenderContext.SetDrawMode( DrawModeFlags::BlackFill );
Though I couldn't figure out how to access the font color of the current style,
perhaps something like
SfxItemSet& pItemSet = pStyleSheet->GetItemSet();
SfxPoolItem& pItem = pItemSet.GetItem( SID_ATTR_CHAR_COLOR_EXT );
But actually I tend to agree with m.a.riosv to keep it full WYSIWYG (<a href="show_bug.cgi?id=115507#c4">comment 4</a>)
since using a white font on white background (or vice versa) has been done
intentionally by the user. The alternative is to highlight the selection like
for default styles (such as Test 1 with automatic and none colors).
In case of automatic font color it's adjusted in the sidebar too but apparently
with a different formula as shown in the attachment. Test 2 in the document is
black while it's contrast seems to be calculated as enough for white in the
sidebar.
To summarize: My suggestion would be to always highlight the selection in the
system color.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>