@@ -286,7 +286,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
286286 ImGui::SetCursorPosY (ImGui::GetCursorPosY () + 5 );
287287
288288 ImGui::SetCursorPosX (w / 2 - 260 / 2 );
289- if (ImGui::Button (u8" \uF07C Load..." , ImVec2 (70 , 30 )))
289+ std::string load_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Load..." );
290+ if (ImGui::Button (load_str.c_str (), ImVec2 (70 , 30 )))
290291 {
291292 try
292293 {
@@ -338,7 +339,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
338339 RsImGui::CustomTooltip (" %s" , " Load calibration from file" );
339340 }
340341 ImGui::SameLine ();
341- if (ImGui::Button (u8" \uF0C7 Save As..." , ImVec2 (100 , 30 )))
342+ std::string save_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Save As..." );
343+ if (ImGui::Button (save_str.c_str (), ImVec2 (100 , 30 )))
342344 {
343345 try
344346 {
@@ -396,7 +398,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
396398 ImGui::SameLine ();
397399 if (_accept)
398400 {
399- if (ImGui::Button (u8" \uF275 Restore Factory" , ImVec2 (120 , 30 )))
401+ std::string restore_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Restore Factory" );
402+ if (ImGui::Button (restore_str.c_str (), ImVec2 (120 , 30 )))
400403 {
401404 try
402405 {
@@ -430,7 +433,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
430433 ImGui::PushStyleColor (ImGuiCol_Text, grey);
431434 ImGui::PushStyleColor (ImGuiCol_TextSelectedBg, grey);
432435
433- ImGui::Button (u8" \uF275 Restore Factory" , ImVec2 (120 , 30 ));
436+ std::string restore_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Restore Factory" );
437+ ImGui::Button (restore_str.c_str (), ImVec2 (120 , 30 ));
434438 if (ImGui::IsItemHovered ())
435439 {
436440 RsImGui::CustomTooltip (" %s" , " Write selected calibration table to the device. For advanced users" );
@@ -549,7 +553,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
549553 auto streams = depth_sensor.get_active_streams ();
550554 if (_accept && streams.size ())
551555 {
552- if (ImGui::Button (u8" \uF2DB Write Table" , ImVec2 (120 , 25 )))
556+ std::string write_str = std::string (rsutils::string::from () << textual_icons::microchip << " Write Table" );
557+ if (ImGui::Button (write_str.c_str (), ImVec2 (120 , 25 )))
553558 {
554559 try
555560 {
@@ -580,7 +585,8 @@ void calibration_model::d400_update(ux_window& window, std::string& error_messag
580585 ImGui::PushStyleColor (ImGuiCol_Text, grey);
581586 ImGui::PushStyleColor (ImGuiCol_TextSelectedBg, grey);
582587
583- ImGui::Button (u8" \uF2DB Write Table" , ImVec2 (120 , 25 ));
588+ std::string write_str = std::string (rsutils::string::from () << textual_icons::microchip << " Write Table" );
589+ ImGui::Button (write_str.c_str (), ImVec2 (120 , 25 ));
584590 if (ImGui::IsItemHovered ())
585591 {
586592 RsImGui::CustomTooltip (" %s" , " Write selected calibration table to the device. Requires \" Stereo Module\" stream to be on.For advanced users" );
@@ -656,7 +662,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
656662 ImGui::SetCursorPosY (ImGui::GetCursorPosY () + 5 );
657663
658664 ImGui::SetCursorPosX (w / 2 - 260 / 2 );
659- if (ImGui::Button (u8" \uF07C Load..." , ImVec2 (70 , 30 )))
665+ std::string load_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Load..." );
666+ if (ImGui::Button (load_str.c_str (), ImVec2 (70 , 30 )))
660667 {
661668 try
662669 {
@@ -716,7 +723,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
716723 RsImGui::CustomTooltip (" %s" , " Load calibration from file" );
717724 }
718725 ImGui::SameLine ();
719- if (ImGui::Button (u8" \uF0C7 Save As..." , ImVec2 (100 , 30 )))
726+ std::string save_str = std::string (rsutils::string::from () << textual_icons::folder_open << " Save As..." );
727+ if (ImGui::Button (save_str.c_str (), ImVec2 (100 , 30 )))
720728 {
721729 try
722730 {
@@ -775,7 +783,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
775783 ImGui::SameLine ();
776784 if (_accept)
777785 {
778- if (ImGui::Button (u8" \uF275 Restore Factory" , ImVec2 (120 , 30 )))
786+ std::string restore_str = std::string (rsutils::string::from () << textual_icons::industry << " Restore Factory" );
787+ if (ImGui::Button (restore_str.c_str (), ImVec2 (120 , 30 )))
779788 {
780789 try
781790 {
@@ -809,7 +818,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
809818 ImGui::PushStyleColor (ImGuiCol_Text, grey);
810819 ImGui::PushStyleColor (ImGuiCol_TextSelectedBg, grey);
811820
812- ImGui::Button (u8" \uF275 Restore Factory" , ImVec2 (120 , 30 ));
821+ std::string restore_str = std::string (rsutils::string::from () << textual_icons::industry << " Restore Factory" );
822+ ImGui::Button (restore_str.c_str (), ImVec2 (120 , 30 ));
813823 if (ImGui::IsItemHovered ())
814824 {
815825 RsImGui::CustomTooltip (" %s" , " Write selected calibration table to the device. For advanced users" );
@@ -899,7 +909,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
899909
900910 if (_accept)
901911 {
902- if (ImGui::Button (u8" \uF2DB Write Table" , ImVec2 (120 , 25 )))
912+ std::string write_str = std::string (rsutils::string::from () << textual_icons::microchip << " Write Table" );
913+ if (ImGui::Button (write_str.c_str (), ImVec2 (120 , 25 )))
903914 {
904915 try
905916 {
@@ -930,7 +941,8 @@ void calibration_model::d500_update( ux_window & window, std::string & error_mes
930941 ImGui::PushStyleColor (ImGuiCol_Text, grey);
931942 ImGui::PushStyleColor (ImGuiCol_TextSelectedBg, grey);
932943
933- ImGui::Button (u8" \uF2DB Write Table" , ImVec2 (120 , 25 ));
944+ std::string write_str = std::string (rsutils::string::from () << textual_icons::microchip << " Write Table" );
945+ ImGui::Button (write_str.c_str (), ImVec2 (120 , 25 ));
934946 if (ImGui::IsItemHovered ())
935947 {
936948 RsImGui::CustomTooltip (" %s" , " Write selected calibration table to the device. For advanced users" );
0 commit comments