@@ -29,6 +29,7 @@ typedef enum { COLOR_ABGR = 0, COLOR_ARGB, COLOR_RGBA } ColorFormat;
2929#define TRIMHEAD_REGEX std::regex (" 0x" , std::regex::icase)
3030#endif
3131using namespace weasel ;
32+ static bool hide_ime_mode_icon = false ;
3233
3334static RimeApi* rime_api;
3435WeaselSessionId _GenerateNewWeaselSessionId (SessionStatusMap sm, DWORD pid) {
@@ -927,6 +928,8 @@ bool RimeWithWeaselHandler::_Respond(WeaselSessionId ipc_id, EatLine eat) {
927928
928929 // style
929930 if (!session_status.__synced ) {
931+ messages.push_back (std::string (" config.hide_ime_mode_icon=" ) +
932+ std::to_string ((int )hide_ime_mode_icon) + " \n " );
930933 std::wstringstream ss;
931934 boost::archive::text_woarchive oa (ss);
932935 oa << session_status.style ;
@@ -1150,6 +1153,7 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize) {
11501153 _RimeGetIntStr (config, " style/font_point" , style.font_point );
11511154 if (style.font_point <= 0 )
11521155 style.font_point = 12 ;
1156+ _RimeGetBool (config, " hide_ime_mode_icon" , initialize, hide_ime_mode_icon);
11531157 _RimeGetIntStr (config, " style/label_font_point" , style.label_font_point ,
11541158 " style/font_point" , 0 , _abs);
11551159 _RimeGetIntStr (config, " style/comment_font_point" , style.comment_font_point ,
0 commit comments