svx/source/tbxctrls/SvxColorIconView.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 3938465c2dd317d3bdea6045b845dc7007211f4d
Author:     Henry Castro <[email protected]>
AuthorDate: Tue Feb 17 13:43:37 2026 -0400
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Feb 18 10:30:14 2026 +0100

    lok: change default size for entry color icon view
    
    The width and height of the color picker entry are defined
    by the listBoxPreviewDefaultLogicWidth and
    listBoxPreviewDefaultLogicHeight
    properties. However, in the LOK case, it is necessary to change
    them to 24×24 to meet accessibility requirements and to avoid
    any conflict with the default listbox preview size.
    
    Change-Id: Id5591aff38ef2054a3c8057db2291823c7e990ba
    Signed-off-by: Henry Castro <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199567
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/svx/source/tbxctrls/SvxColorIconView.cxx 
b/svx/source/tbxctrls/SvxColorIconView.cxx
index b7b9da661d4e..857fc6ad3c94 100644
--- a/svx/source/tbxctrls/SvxColorIconView.cxx
+++ b/svx/source/tbxctrls/SvxColorIconView.cxx
@@ -24,9 +24,15 @@
 #include <vcl/virdev.hxx>
 #include <vcl/bitmapex.hxx>
 #include <osl/diagnose.h>
+#include <comphelper/lok.hxx>
 
 sal_uInt32 SvxColorIconView::getEntryEdgeLength()
 {
+    if (comphelper::LibreOfficeKit::isActive())
+    {
+        return 26;
+    }
+
     const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
     return rStyleSettings.GetListBoxPreviewDefaultPixelSize().Height() + 1;
 }
@@ -108,4 +114,4 @@ VclPtr<VirtualDevice> 
SvxColorIconView::createColorVirtualDevice(const Color& rC
     return pVDev;
 }
 
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to