diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-01 13:08:02 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-01 08:02:55 +0200 |
commit | c2108dd683ec7ff0bcaac8456c6cce9610a2993a (patch) | |
tree | 64709e22cfc3e06247e1c026adb3e8ecdc6f780d | |
parent | 9f8fe00a245c279e7531e03bf38fbcab24d52bcc (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>
-rw-r--r-- | include/vcl/settings.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/settings.cxx | 5 | ||||
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 3b7e5e215104..f7be71ae5092 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -592,6 +592,7 @@ public: // be used. static sal_uInt16 GetColorValueSetMaximumRowCount(); + void SetListBoxPreviewDefaultLogicSize(Size const & rSize); const Size& GetListBoxPreviewDefaultPixelSize() const; // the default LineWidth for ListBox UI previews (LineStyle, LineDash, LineStartEnd). Default is 1. 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); |