Kaydet (Commit) c2108dd6 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

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: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 9f8fe00a
......@@ -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.
......
......@@ -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())
......
......@@ -929,6 +929,7 @@ bool FileDefinitionWidgetDraw::updateSettings(AllSettings& rSettings)
aStyleSet.SetTitleHeight(16);
aStyleSet.SetFloatTitleHeight(12);
aStyleSet.SetListBoxPreviewDefaultLogicSize(Size(16, 16));
rSettings.SetStyleSettings(aStyleSet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment