From 9fe85f9688c7c1b68924de10162dfde73ad2955e Mon Sep 17 00:00:00 2001 From: Zach Dykstra Date: Mon, 3 Apr 2023 22:20:03 -0500 Subject: [PATCH] mail: automatically scale toolbar icons Change-Id: I756122de2f4ee99883a53d0d2163004328660c85 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6305 Tested-by: Automation Reviewed-by: waddlesplash --- src/apps/mail/MailWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/mail/MailWindow.cpp b/src/apps/mail/MailWindow.cpp index 79aac919dd..a7d01b804a 100644 --- a/src/apps/mail/MailWindow.cpp +++ b/src/apps/mail/MailWindow.cpp @@ -51,6 +51,7 @@ of their respective holders. All rights reserved. #include #include #include +#include #include #include #include @@ -646,7 +647,8 @@ TMailWindow::_RetrieveVectorIcon(int32 id) if (!data) return NULL; - BBitmap* bitmap = new BBitmap(BRect(0, 0, 21, 21), B_RGBA32); + BBitmap* bitmap = new BBitmap(BRect(BPoint(0, 0), + be_control_look->ComposeIconSize(22)), B_RGBA32); status_t status = BIconUtils::GetVectorIcon((uint8*)data, size, bitmap); if (status == B_OK) { item = (BitmapItem*)malloc(sizeof(BitmapItem));