mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed a build under OSX
This commit is contained in:
parent
6ee804f466
commit
42f3bfb0f6
5 changed files with 27 additions and 25 deletions
|
@ -44,14 +44,14 @@ static std::string orange = "#ed6b21";
|
|||
|
||||
static void color_string(wxString& str, const std::string& color)
|
||||
{
|
||||
#ifdef SUPPORTS_MARKUP
|
||||
#if defined(SUPPORTS_MARKUP) && defined(wxHAS_GENERIC_DATAVIEWCTRL)
|
||||
str = from_u8((boost::format("<span color=\"%1%\">%2%</span>") % color % into_u8(str)).str());
|
||||
#endif
|
||||
}
|
||||
|
||||
static void make_string_bold(wxString& str)
|
||||
{
|
||||
#ifdef SUPPORTS_MARKUP
|
||||
#if defined(SUPPORTS_MARKUP) && defined(wxHAS_GENERIC_DATAVIEWCTRL)
|
||||
str = from_u8((boost::format("<b>%1%</b>") % into_u8(str)).str());
|
||||
#endif
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ ModelNode::ModelNode(ModelNode* parent, const wxString& text, const wxString& ol
|
|||
|
||||
void ModelNode::UpdateEnabling()
|
||||
{
|
||||
#ifdef SUPPORTS_MARKUP
|
||||
#if defined(SUPPORTS_MARKUP) && defined(wxHAS_GENERIC_DATAVIEWCTRL)
|
||||
auto change_text_color = [](wxString& str, const std::string& clr_from, const std::string& clr_to)
|
||||
{
|
||||
std::string old_val = into_u8(str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue