mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:Picture text adaptive height for combobox menu
jira: STUDIO-11330 Change-Id: I5948dad4811747258b96e6ac1bf95379640c9cd4 (cherry picked from commit 4824f1f5ce76bc28502cd3fc8de97e082e6f3ad1)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "BitmapComboBox.hpp"
|
||||
#include "Widgets/StaticBox.hpp"
|
||||
#include "Widgets/Label.hpp"
|
||||
|
||||
#include "../Utils/WxFontUtils.hpp"
|
||||
#ifndef __linux__
|
||||
// msw_menuitem_bitmaps is used for MSW and OSX
|
||||
static std::map<int, std::string> msw_menuitem_bitmaps;
|
||||
@@ -572,6 +572,7 @@ wxBitmap *get_extruder_color_icon(std::string color, std::string label, int icon
|
||||
wxMemoryDC dc(&cdc);
|
||||
#endif
|
||||
dc.SetFont(::Label::Body_12);
|
||||
Slic3r::GUI::WxFontUtils::get_suitable_font_size(icon_height - 2, dc);
|
||||
dc.SelectObject(*bitmap);
|
||||
if (clr.Alpha() == 0) {
|
||||
int size = icon_height * 2;
|
||||
|
||||
Reference in New Issue
Block a user