summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-04-01 13:08:02 +0900
committerTomaž Vajngerl <quikee@gmail.com>2019-04-01 08:02:55 +0200
commitc2108dd683ec7ff0bcaac8456c6cce9610a2993a (patch)
tree64709e22cfc3e06247e1c026adb3e8ecdc6f780d /vcl
parent9f8fe00a245c279e7531e03bf38fbcab24d52bcc (diff)
tdf#124150 increase size of color valueset widget
Size of the color value set can be set through settings, but there was no setter. Added a setter and set it to a bigger value so it is better suited for touch. Change-Id: I8c9b17f7379c4702b0faf7847f1e6292cd89b0d0 Reviewed-on: https://gerrit.libreoffice.org/70031 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/settings.cxx5
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 50dce10343b2..fccce19ad1f8 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -1981,6 +1981,11 @@ StyleSettings::operator !=( const StyleSettings& rSet ) const
return !(*this == rSet);
}
+void StyleSettings::SetListBoxPreviewDefaultLogicSize(Size const& rSize)
+{
+ mxData->maListBoxPreviewDefaultLogicSize = rSize;
+}
+
const Size& StyleSettings::GetListBoxPreviewDefaultPixelSize() const
{
if(0 == mxData->maListBoxPreviewDefaultPixelSize.Width() || 0 == mxData->maListBoxPreviewDefaultPixelSize.Height())
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index e3658172be2a..6124a31e21e4 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -929,6 +929,7 @@ bool FileDefinitionWidgetDraw::updateSettings(AllSettings& rSettings)
aStyleSet.SetTitleHeight(16);
aStyleSet.SetFloatTitleHeight(12);
+ aStyleSet.SetListBoxPreviewDefaultLogicSize(Size(16, 16));
rSettings.SetStyleSettings(aStyleSet);