mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-29 01:33:15 +08:00
ENH: refine text colour in filament map dialog
jira: NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I33218d7b16f150049d8078cf360a58c01594b0a7
This commit is contained in:
parent
75241aae61
commit
84786cc6a8
@ -134,6 +134,9 @@ void ColorPanel::OnPaint(wxPaintEvent &event)
|
|||||||
dc.SetTextForeground(m_color.GetLuminance() < 0.51 ? *wxWHITE : *wxBLACK); // set text color
|
dc.SetTextForeground(m_color.GetLuminance() < 0.51 ? *wxWHITE : *wxBLACK); // set text color
|
||||||
dc.DrawLabel(label, wxRect(0, 0, svg_size, svg_size), wxALIGN_CENTER);
|
dc.DrawLabel(label, wxRect(0, 0, svg_size, svg_size), wxALIGN_CENTER);
|
||||||
|
|
||||||
|
if(m_parent)
|
||||||
|
dc.SetTextForeground(this->m_parent->GetBackgroundColour().GetLuminance() < 0.51 ? *wxWHITE : *wxBLACK);
|
||||||
|
else
|
||||||
dc.SetTextForeground(*wxBLACK);
|
dc.SetTextForeground(*wxBLACK);
|
||||||
if (type_label.length() > 4) {
|
if (type_label.length() > 4) {
|
||||||
// text is too long
|
// text is too long
|
||||||
|
Loading…
x
Reference in New Issue
Block a user