mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
tweak plate name location for Mac and Linux
This commit is contained in:
parent
8640025ef8
commit
26daac8958
3 changed files with 10 additions and 2 deletions
|
@ -1561,7 +1561,12 @@ void PartPlate::generate_plate_name_texture()
|
|||
m_name_texture.reset();
|
||||
auto text = m_name.empty()? _L("Untitled") : m_name;
|
||||
wxCoord w, h;
|
||||
#ifdef WIN32
|
||||
auto* font = &Label::Head_48;
|
||||
#else
|
||||
auto* font = &Label::Head_32;
|
||||
#endif
|
||||
|
||||
wxColour foreground(0xf2, 0x75, 0x4e, 0xff);
|
||||
if (!m_name_texture.generate_from_text_string(text.ToStdString(), *font, *wxBLACK, foreground))
|
||||
BOOST_LOG_TRIVIAL(error) << "PartPlate::generate_plate_name_texture(): generate_from_text_string() failed";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue