summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-10-19 20:46:05 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2020-10-20 08:08:28 +0200
commit0839bfaf75d3a1bc78b63c71f28a763b1b39f979 (patch)
tree7d34a3680bf1ad1560655fd43c3d55e46801133a /vcl
parent150d4c8b66a5d4e32a97a2a7e25e6fb632cfd40c (diff)
tdf#133931 Qt5 set the themed AlternatingRowColor
Change-Id: I6a4a0f90239686ff1c94e1a550540223324184e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104540 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Frame.cxx1
-rw-r--r--vcl/source/app/settings.cxx6
2 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index 41a5a5436a67..cdb7c8b510be 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -1047,6 +1047,7 @@ void Qt5Frame::UpdateSettings(AllSettings& rSettings)
style.SetFieldColor(aBase);
style.SetWindowColor(aBase);
style.SetActiveTabColor(aBase);
+ style.SetAlternatingRowColor(toColor(pal.color(QPalette::Active, QPalette::AlternateBase)));
// Buttons
style.SetDefaultButtonTextColor(aButn);
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index da23dcf9deb9..2f0495c58446 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -1547,6 +1547,12 @@ StyleSettings::GetInactiveTabColor() const
return mxData->maInactiveTabColor;
}
+void StyleSettings::SetAlternatingRowColor(const Color& rColor)
+{
+ CopyData();
+ mxData->maAlternatingRowColor = rColor;
+}
+
const Color&
StyleSettings::GetAlternatingRowColor() const
{