Change-Id: I197ccc8f24cae23c7056245b009f1aac90895040
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113940
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2021-04-11 09:28:31 +02:00
committed by Julien Nabet
parent bdf296526b
commit 2b24c9ee83

View File

@@ -695,7 +695,7 @@ void PushButton::ImplDrawPushButtonFrame(vcl::RenderContext& rRenderContext,
StyleSettings aStyleSettings = aSettings.GetStyleSettings();
if (nStyle & DrawButtonFlags::Highlight)
{
// with the custom background, native highlight do nothing, so code bellow mimic
// with the custom background, native highlight do nothing, so code below mimic
// native highlight by changing luminance
Color controlBackgroundColorHighlighted = GetControlBackground();
sal_uInt8 colorLuminance = controlBackgroundColorHighlighted.GetLuminance();