FirstBootPrompt: Scale the button icons.

Part of #17914.
This commit is contained in:
Augustin Cavalier 2022-09-27 18:30:59 -04:00
parent 1b72036bef
commit 1272bd2a7f

View File

@ -155,11 +155,12 @@ BootPromptWindow::BootPromptWindow()
size_t size = 0;
const uint8_t* data;
BBitmap desktopIcon(BRect(0, 0, 23, 23), B_RGBA32);
const BSize iconSize = be_control_look->ComposeIconSize(24);
BBitmap desktopIcon(BRect(BPoint(0, 0), iconSize), B_RGBA32);
data = (const uint8_t*)res->LoadResource('VICN', "Desktop", &size);
BIconUtils::GetVectorIcon(data, size, &desktopIcon);
BBitmap installerIcon(BRect(0, 0, 23, 23), B_RGBA32);
BBitmap installerIcon(BRect(BPoint(0, 0), iconSize), B_RGBA32);
data = (const uint8_t*)res->LoadResource('VICN', "Installer", &size);
BIconUtils::GetVectorIcon(data, size, &installerIcon);