summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-12-20 17:32:25 +0200
committerTor Lillqvist <tml@collabora.com>2019-12-20 18:58:05 +0100
commit18af8dc6a038d1e76274de7abc55ffa06b39a6c8 (patch)
treed89e4e12a9f0d4f0c3ac31dbd8da35efe25bd41f /svtools
parent83fedc02f2d831774c12d60097a99e968b56dc5e (diff)
tdf#126966: Make the colour swatches larger on iOS
We reduce the number of swatches per row from 12 to 4 and increase their size suitably so that the thing still fits in the sidebar in the iOS app on an iPad in portrait orientation. Change-Id: Ie81e5b54e88a02c6866de27448b5be72e97d9a16 Reviewed-on: https://gerrit.libreoffice.org/85620 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/accessibilityoptions.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index 6953d1399bfb..168e781093c9 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -263,6 +263,9 @@ sal_Int16 SvtAccessibilityOptions_Impl::GetListBoxMaximumLineCount() const
sal_Int16 SvtAccessibilityOptions_Impl::GetColorValueSetColumnCount() const
{
+#ifdef IOS
+ return 4;
+#else
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
sal_Int16 nRet = 12;
@@ -277,6 +280,7 @@ sal_Int16 SvtAccessibilityOptions_Impl::GetColorValueSetColumnCount() const
}
return nRet;
+#endif
}
bool SvtAccessibilityOptions_Impl::GetPreviewUsesCheckeredBackground() const