mail: automatically scale toolbar icons

Change-Id: I756122de2f4ee99883a53d0d2163004328660c85
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6305
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Zach Dykstra 2023-04-03 22:20:03 -05:00 committed by waddlesplash
parent 457e5ee245
commit 9fe85f9688

View File

@ -51,6 +51,7 @@ of their respective holders. All rights reserved.
#include <CharacterSet.h>
#include <CharacterSetRoster.h>
#include <Clipboard.h>
#include <ControlLook.h>
#include <Debug.h>
#include <E-mail.h>
#include <File.h>
@ -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));