[Libreoffice-bugs] [Bug 98253] SIDEBAR: Style preview not visible if text is set to automatic color
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 8 16:32:10 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=98253
Katarina Behrens (CIB) <Katarina.Behrens at cib.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |difficultyInteresting,
| |easyHack, skillCpp
--- Comment #15 from Katarina Behrens (CIB) <Katarina.Behrens at cib.de> ---
Code pointers:
Formerly svtools, now vcl treelistbox.cxx, SvTreeListBox::PaintEntry1 func.
This chunk of code messes it up:
// if the face color is bright then the deactive color is also bright
// -> so you can't see any deactive selection
if (bHideSelection && !rSettings.GetFaceColor().IsBright()
&& aWallpaper.GetColor().IsBright() !=
rSettings.GetDeactiveColor().IsBright())
{
aNewWallColor = rSettings.GetDeactiveColor();
}
// set font color to highlight
if (!bCurFontIsSel)
{
rRenderContext.SetTextColor(aHighlightTextColor);
rRenderContext.SetFont(aHighlightFont);
bCurFontIsSel = true;
}
aWallpaper.SetColor(aNewWallColor);
Since default text hilight colour is white/light grey in Qt and deactive colour
(what?) is also light grey, things go down the drain from there.
Those colour are set in Qt5Frame::UpdateSettings, it's the StyleSettings thingy
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181108/64e4e0ed/attachment.html>
More information about the Libreoffice-bugs
mailing list