@@ -27,6 +27,7 @@ typedef enum { COLOR_ABGR = 0, COLOR_ARGB, COLOR_RGBA } ColorFormat;
2727#define TRIMHEAD_REGEX std::regex (" 0x" , std::regex::icase)
2828#endif
2929using namespace weasel ;
30+ static bool hide_ime_mode_icon = false ;
3031
3132static RimeApi* rime_api;
3233WeaselSessionId _GenerateNewWeaselSessionId (SessionStatusMap sm, DWORD pid) {
@@ -888,6 +889,8 @@ bool RimeWithWeaselHandler::_Respond(WeaselSessionId ipc_id, EatLine eat) {
888889
889890 // style
890891 if (!session_status.__synced ) {
892+ messages.push_back (std::string (" config.hide_ime_mode_icon=" ) +
893+ std::to_string ((int )hide_ime_mode_icon) + " \n " );
891894 std::wstringstream ss;
892895 boost::archive::text_woarchive oa (ss);
893896 oa << session_status.style ;
@@ -1112,6 +1115,7 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize) {
11121115 _RimeGetIntStr (config, " style/font_point" , style.font_point );
11131116 if (style.font_point <= 0 )
11141117 style.font_point = 12 ;
1118+ _RimeGetBool (config, " hide_ime_mode_icon" , initialize, hide_ime_mode_icon);
11151119 _RimeGetIntStr (config, " style/label_font_point" , style.label_font_point ,
11161120 " style/font_point" , 0 , _abs);
11171121 _RimeGetIntStr (config, " style/comment_font_point" , style.comment_font_point ,
0 commit comments