diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-17 17:07:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-17 20:49:59 +0100 |
commit | b5c22a9371e22162ff7305ffaa393ed908eee610 (patch) | |
tree | 9d17e3b7197315efba01b3ea75761c47ff815cfa /svx/source | |
parent | c3c526e0192b9cf429d326b129ce9e94ec9e346b (diff) |
use ListBoxPreview size for the color shown in autofilter color list
it's used for a similar case in the color button,
GetToolbarIconSizePixel is relatively narrow and we have a hectare of
space available here.
Draw a border around the color as we do for the similar color button
case.
Change-Id: If0b24a142d47038d02a977ed88281b2de0b529fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125418
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 5a1239bdea77..04ae3e0ec4fa 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -4021,6 +4021,7 @@ void ColorListBox::LockWidthRequest() void ColorListBox::ShowPreview(const NamedColor &rColor) { + // ScGridWindow::UpdateAutoFilterFromMenu is similar const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); Size aImageSize(rStyleSettings.GetListBoxPreviewDefaultPixelSize()); |