diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-17 16:26:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-17 20:49:41 +0100 |
commit | c3c526e0192b9cf429d326b129ce9e94ec9e346b (patch) | |
tree | 13f38ce1ac4cf2ab1d19cd50599d78504f83d5d3 /vcl | |
parent | 6b4b82626a30418c2d566c4fc1ecfe559557bf2b (diff) |
weld colormenu
Change-Id: I6feef72cf924865e2407a96cdd0b6e60c835dbc3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125417
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 53f5e28e6f53..4a497b84b02c 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -21,7 +21,6 @@ #include <sal/log.hxx> #include <comphelper/lok.hxx> -#include <bitmap/BitmapWriteAccess.hxx> #include <vcl/svapp.hxx> #include <vcl/mnemonic.hxx> #include <vcl/image.hxx> @@ -1022,19 +1021,6 @@ OUString Menu::GetItemText( sal_uInt16 nItemId ) const return OUString(); } -void Menu::SetItemColor(sal_uInt16 nItemId, const Color& rColor) -{ - StyleSettings aSettings = Application::GetSettings().GetStyleSettings(); - auto iconSize = aSettings.GetToolbarIconSizePixel(); - Bitmap aBmp(iconSize, vcl::PixelFormat::N24_BPP); - BitmapWriteAccess aBmpAccess(aBmp); - aBmpAccess.SetFillColor(rColor); - aBmpAccess.FillRect(tools::Rectangle(0, 0, iconSize.Width() - 1, iconSize.Height() - 1)); - BitmapEx aBmpEx(aBmp); - Image aImage(aBmpEx); - SetItemImage(nItemId, aImage); -} - void Menu::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) { size_t nPos; |